Skip to main content
skill CX Codex

run-tests-on-the-unmodified-codebase-before-starting-to-establis skill

run-tests-on-the-unmodified-codebase-before-starting-to-establis is a Claude Code skill that requires running tests on untouched code before edits, recording failures to distinguish them from new regressions.

MIT ★ 539 updated 2026-10-29

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add ZaxbyHub/opencode-swarm --skill run-tests-on-the-unmodified-codebase-before-starting-to-establis -a claude-code
Open on GitHub

What run-tests-on-the-unmodified-codebase-before-starting-to-establis does

This skill enforces a baseline protocol before any code modification begins. The agent must execute the project test runner on untouched files and record broken tests. This log serves as the reference point for the entire session.

The prompt explicitly forbids labeling failures after a patch as pre-existing unless an initial run confirmed them. Reviewer steps inside the rule direct inspectors to verify that baseline runs actually occurred in the diff history.

What it helps with

  • capture test suite failures on clean code before editing
  • prevent agents from mislabeling new breakages as pre-existing
  • verify baseline execution during code review checks

Example prompts for the agent

  • Run the existing test suite before modifying the database layer
  • Establish a failure baseline on clean code before starting

How to install run-tests-on-the-unmodified-codebase-before-starting-to-establis

1Skills CLI (Vercel)

npx skills add ZaxbyHub/opencode-swarm --skill run-tests-on-the-unmodified-codebase-before-starting-to-establis -a claude-code

2Manually: put the files in place

~/.claude/skills/run-tests-on-the-unmodified-codebase-before-starting-to-establis/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/run-tests-on-the-unmodified-codebase-before-starting-to-establis/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about run-tests-on-the-unmodified-codebase-before-starting-to-establis

How to install this skill in Claude Code?

Run npx skills add ZaxbyHub/opencode-swarm --skill run-tests-on-the-unmodified-codebase-before-starting-to-establis -a claude-code. The file will be placed in ~/.claude/skills/.

What does this skill do?

It forces coding agents to run tests on untouched code first. That prevents confusion over whether failures predated the session.

What shortcut does this skill prohibit?

It bars the model from excusing post-change failures as pre-existing issues without having run an initial test baseline.

Source text

SKILL.md · MIT
---
name: run-tests-on-the-unmodified-codebase-before-starting-to-establis
description: run tests on the unmodified codebase before starting to establish a failure baseline
metadata:
  triggers: '["pre-existing test failures","baseline before change"]'
  generated_from_knowledge: '[]'
  source_knowledge_ids: '[]'
  generated_at: "2026-07-02T02:35:49.911Z"
  confidence: "0.60"
  status: active
  version: "2"
  skill_origin: generated
---

<!-- generated by opencode-swarm skill-generator. Do not edit by hand; edits will be preserved on regeneration only with controlled update mode. -->

# run tests on the unmodified codebase before starting to establish a failure baseline

## Trigger

- pre-existing test failures
- baseline before change

## Required Procedure

- run tests on the unmodified codebase before starting to establish a failure baseline

## Forbidden Shortcuts

- label post-change test failures as 'pre-existing' without running tests before the change

## Delegation Template

When delegating a task affected by this skill, include:

```
SKILLS: file:.opencode/skills/generated/run-tests-on-the-unmodified-codebase-before-starting-to-establis/SKILL.md
```

## Reviewer Checks

- Verify each required action above appears in the diff.

## Test Engineer Checks

- Add or update tests covering the trigger condition and the forbidden shortcut.

© ZaxbyHub · MIT · ZaxbyHub/opencode-swarm

Similar skills

All skills for Testing and QA →

From the same set121

The whole set →
ensure-all-tests-pass-after-code-changes ensure-all-tests-pass-after-code-changes — a skill that keeps the agent honest about tests: run them after an edit, and don't hand a failing branch to review. Test updates ship with the code. CX Codex +1 ★ 539repo stars codebase-review-swarm codebase-review-swarm executes quote-grounded codebase audits across security, QA, and performance. Suitable for full-repository assessments where no source files may be touched. CX Codex +1 ★ 539repo stars add-path-type-assertions-or-realpath-resolve-calls-in-path-joini add-path-type-assertions-or-realpath-resolve-calls-in-path-joini is a Claude Code skill that adds path-type checks or realpath/resolve calls to path-joining utilities. It activates around path.join, realpath, and fs path work. CX Codex +1 ★ 539repo stars run-failing-tests-immediately-after-test-gate-failure run-failing-tests-immediately-after-test-gate-failure is a Claude Code skill that makes the agent rerun failing tests when test_gate fails and repair the root cause before claiming the task is done. CX Codex +1 ★ 539repo stars engineering-conventions The engineering-conventions skill sets a workflow for changes that could affect opencode-swarm’s engineering invariants. Use it when editing architecture, tests, or session state. CX Codex +1 ★ 539repo stars include-test-files-that-assert-on-behavior-being-changed-in-decl include-test-files-that-assert-on-behavior-being-changed-in-decl is a Claude Code skill that puts tests for changed behaviour in scope, so an agent fixes code alongside its checks. CX Codex +1 ★ 539repo stars run-relevant-tests-after-logic-changes run-relevant-tests-after-logic-changes enforces running target test suites after code changes and forbids reporting completion until all checks pass. CX Codex +1 ★ 539repo stars pr-review-fix The pr-review-fix skill checks PR review findings against the current branch and fixes confirmed issues. Use it to work through reviewer comments, bot feedback, or a CI review summary. CX Codex +1 ★ 539repo stars

Project sponsors

Companies that keep this analytics open