automate-tests
Skill8 starsChanged 2 months agoMITView on GitHub
Discover and execute repository test commands safely with evidence-based command selection and safety guardrails.
- Reads credentials
- Deletes or force-pushes
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Beakpoint-Insights/roosttheir own version, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Beakpoint-Insights/roost★ 32same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository77 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- archive-milestoneSkill
- assess-product-opportunitySkill
- bump-versionSkill
- capture-work-itemsSkill
- commit-workSkill
- competitive-researchSkill
- consume-nats-messageSkill
- decontextualize-textSkill
- deep-researchSkill
- define-docs-normsSkill
- define-missionSkill
- define-north-starSkill
- define-roadmapSkill
- define-strategic-pillarsSkill
- define-visionSkill
- deliver-featureSkill
- design-strategic-goalsSkill
- eli5Skill
- establish-delivery-workflowSkill
- execute-delivery-workflowSkill
- generate-agent-entrySkill
- generate-github-workflowSkill
- generate-standard-readmeSkill
- inspect-artifact-stateSkill
- integrate-branchesSkill
- manage-secretSkill
- map-item-dependenciesSkill
- market-researchSkill
- orchestrate-code-reviewSkill
- orchestrate-governance-stepSkill
- orchestrate-repair-loopSkill
- orchestrate-repair-requirements-loopSkill
- orchestrate-roadmap-planningSkill
- plan-milestonesSkill
- plan-nextSkill
- policy-researchSkill
- ponytailSkill
- prepare-presales-responseSkill
- prepare-version-notesSkill
- prioritize-backlogSkill
- product-opportunity-analysisSkill
- promote-roadmap-itemsSkill
- publish-nats-messageSkill
- record-milestone-achievementSkill
- redeploy-localSkill
- refine-skill-designSkill
- review-architectureSkill
- review-codebaseSkill
- review-diffSkill
- review-dotnetSkill
- review-error-surfacingSkill
- review-functional-designSkill
- review-goSkill
- review-implementation-alignmentSkill
- review-javaSkill
- review-observabilitySkill
- review-orm-usageSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
24 rules. About 0 are common, 17 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈17
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 29
Acceptance: test: can a developer reproduce the test execution by following the test plan summary, with no extra context?
- Very specific: line 44
Test quality assessment or coverage analysis (use review-testing)
- Distinctive: line 66
Ask whether Docker is allowed, whether network access is allowed, and whether dependency installation is allowed.
- Very specific: line 69
If CLAUDE.md or .ai-cortex/config.yaml exists, prefer the test_command recorded there.
- Distinctive: line 70
Read these sources in order.
- Distinctive: line 76
Test layers and markers (unit, integration, e2e)
- Distinctive: line 79
Prefer an explicit statement in the documentation or CI over heuristic inference.
- Distinctive: line 85
If the plan needs a dependency install or a service start, ask for confirmation before continuing.
- Distinctive: line 88
Always print the exact command you are about to run, before running it.
- Very specific: line 89
Use a working directory rooted at the target repository (default .).
- Distinctive: line 90
Read the execution log or framework report before deciding whether the selected scope passed.
- Very specific: line 99
Do not run rm -rf, git clean -fdx, docker system prune, or database drop/migration commands without the user's explicit approval.
- Very specific: line 100
If the repository needs secrets, do not ask the user to paste them into the chat.
- Distinctive: line 124
Do not invent a test command when evidence exists (documentation/CI takes precedence).
- Distinctive: line 125
Do not install dependencies, run Docker, or start external services without confirmation.
- Distinctive: line 126
Do not modify repository files unless the user explicitly asks (exception: generating a report file when the user asks for an artifact).
- Distinctive: line 127
Do not leak secrets; do not request sensitive credentials in the chat.
- Distinctive: line 170
If no: the test plan summary is incomplete.
- Distinctive: line 172
If yes: the skill run is complete.
- Very specific: line 182
Check the package.json scripts and .github/workflows/*.
- Very specific: line 185
Ask: "install dependencies (npm ci) and allow network access?"
- Distinctive: line 207
Run unit tests first
- Distinctive: line 208
Start the services for the integration tests
- Distinctive: line 209
If the integration tests fail, summarize:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: Run Automated Tests
Purpose
Work out how the target repository expects automated tests to be run (commands, frameworks, prerequisites, and scope), then run the best-matching test suite under a safety-first interaction policy.
Core Objective
Primary goal: produce test execution results through evidence-based command selection and safety guardrails.
Success criteria (all must hold):
- ✅ Test plan discovered: the evidence source is identified (documentation, CI configuration, or build manifest)
- ✅ Command selected: the appropriate test command is chosen for the mode (fast/ci/full) and the constraints
- ✅ User confirmation obtained: approval received before installing dependencies, using the network, or starting services
- ✅ Tests executed: the command was run with its output and exit code captured
- ✅ Results summarized: a test plan summary with evidence, commands, execution status, and failures (if any)
Acceptance test: can a developer reproduce the test execution by following the test plan summary, with no extra context?
Scope Boundaries
This skill owns:
- Discovering the test command from repository evidence (documentation, CI, build manifests)
- Selecting the appropriate test command for the mode and the constraints
- Executing tests behind safety guardrails and user confirmation
- Summarizing test results with evidence and failure diagnostics
This skill does not own:
- Test quality assessment or coverage analysis (use
review-testing) - Fixing failing tests or debugging test failures (use
orchestrate-repair-loop) - Writing new tests or test infrastructure (use the development skills)
- Reviewing test code against best practices (use
review-testing)
Handoff point: once the tests finish (pass or fail), hand off to orchestrate-repair-loop to fix the failures, or to review-testing for a quality assessment.
Use Cases
- You cloned a repository and want the right test command without guessing.
- The repository has several test layers (unit/integration/e2e) and you need a safe default run plan.
- CI failed and you want to reproduce it locally by running the same commands the workflow uses.
Behavior
- Establish scope and constraints (ask when unclear)
- With nothing specified by the user, default to a fast, local, non-destructive run:
- Unit tests only, no external services, no Docker, no network-dependent setup.
- Where it matters, have the user pick a mode:
fast: unit tests only, minimal setup.ci: mirror the CI workflow commands as closely as possible.full: include integration/e2e tests and service dependencies.
- Ask whether Docker is allowed, whether network access is allowed, and whether dependency installation is allowed.
- With nothing specified by the user, default to a fast, local, non-destructive run:
- Discover the test plan (evidence-based)
- If
CLAUDE.mdor.ai-cortex/config.yamlexists, prefer thetest_commandrecorded there; otherwise discover it from the sources below. See docs/guides/project-config.md. - Read these sources in order; stop early once a clear, unambiguous test command turns up:
README.md,CONTRIBUTING.md,TESTING.md,docs/testing*,Makefile- CI configuration:
.github/workflows/*.yml,.gitlab-ci.yml,azure-pipelines.yml,Jenkinsfile - Build manifests:
package.json,pyproject.toml,setup.cfg,tox.ini,go.mod,pom.xml,build.gradle*,*.csproj,Cargo.toml
- Identify:
- The primary test entry point (
npm test,pnpm test,yarn test,pytest,tox,go test,dotnet test,mvn test,gradle test,cargo test, and so on) - Test layers and markers (unit, integration, e2e)
- Environment prerequisites (DB, Redis, Docker Compose, required environment variables, secrets)
- How CI sets up its dependencies (services, caches, artifacts)
- The primary test entry point (
- Prefer an explicit statement in the documentation or CI over heuristic inference.
- If
- Choose the execution plan
- In
cimode: derive the run sequence from the repository's CI workflow steps (closest match). - In
fastmode: pick the most direct unit test command, the one with the fewest prerequisites. - With several stacks present (backend + frontend, say), suggest running each stack separately in a fixed order.
- If the plan needs a dependency install or a service start, ask for confirmation before continuing.
- In
- Execute with guardrails
- Always print the exact command you are about to run, before running it.
- Use a working directory rooted at the target repository (default
.). - Read the execution log or framework report before deciding whether the selected scope passed; exit code zero alone is insufficient.
- Report passed, failed, and skipped case counts when the framework supplies them. For check scripts without case counts, retain output identifying the checks actually performed and their outcomes; do not invent counts or require a new report format.
- A selected test scope with zero executed cases or all cases skipped is not a pass. If the output does not establish what executed or whether it succeeded, report it as unverified and identify the missing evidence.
- Distinguish a build or environment failure from a test assertion failure; both prevent claiming the selected scope passed.
- Capture and summarize failures:
- The first failing command and its exit code
- The most relevant error excerpt
- Next actions (missing toolchain, missing environment variable, service not running, and so on)
- Avoid destructive operations:
- Do not run
rm -rf,git clean -fdx,docker system prune, or database drop/migration commands without the user's explicit approval.
- Do not run
- If the repository needs secrets, do not ask the user to paste them into the chat. Use a
.envfile, a secret manager, or the documented local development flow.
Input & Output
Input
- Target repository path (default
.). - Mode:
fast(default),ci, orfull. - Constraints: dependency install allowed (yes/no), network allowed (yes/no), Docker allowed (yes/no).
Output
- A short "test plan summary" containing:
- Evidence: which files/paths informed the plan
- The selected commands (in order)
- Assumptions and prerequisites
- What was executed and what was skipped (and why)
- Execution evidence: available case counts or check outcomes, with the log/report location; explicitly identify zero execution, all-skipped, or unverified results
- Enough of the command log to debug a failure (do not dump extremely long logs unless asked).
Restrictions
Hard Boundaries
- Do not invent a test command when evidence exists (documentation/CI takes precedence).
- Do not install dependencies, run Docker, or start external services without confirmation.
- Do not modify repository files unless the user explicitly asks (exception: generating a report file when the user asks for an artifact).
- Do not leak secrets; do not request sensitive credentials in the chat.
Skill Boundaries (avoid overlap)
Do not do these (other skills handle them):
- Test quality assessment: judging test coverage, test design, or testing best practices → use
review-testing - Fixing test failures: debugging failing tests, repairing broken test code, or root-causing → use
orchestrate-repair-loop - Writing tests: creating new test cases, test infrastructure, or a test framework → use the development/implementation skills
- Code review: reviewing test code for quality, maintainability, or best practices → use
review-testing - Repository analysis: full codebase structure analysis or architecture review → use
review-codebase
When to stop and hand off:
- Tests fail and the user asks "why?" or "how do I fix it?" → hand off to
orchestrate-repair-loopfor debugging and repair - The user asks "are these tests any good?" or "what is our coverage?" → hand off to
review-testingfor a quality assessment - The user asks "can you write tests for X?" → hand off to the development workflow for test implementation
- Tests pass and the user asks "what should we test next?" → hand the test strategy suggestion to
review-testing
Self-Check
Core success criteria (all must hold)
- Test plan discovered: the evidence source is identified (documentation, CI configuration, or build manifest)
- Command selected: the appropriate test command is chosen for the mode (fast/ci/full) and the constraints
- User confirmation obtained: approval received before installing dependencies, using the network, or starting services
- Tests executed: the command was run with its output and exit code captured
- Results summarized: a test plan summary with evidence, commands, execution status, and failures (if any)
Process quality checks
- Evidence-based selection: did I identify at least one authoritative source for the test command (a doc file, a CI workflow, or a build manifest)?
- Safety guardrails applied: did I ask for confirmation before installing dependencies, using the network, starting Docker/services, or any state-changing action?
- Commands printed: did I print the exact command before running it?
- Failures diagnosed: when tests failed, did I give the first failing command, the exit code, and a likely root-cause category?
- Execution evidenced: the result uses the log/report, including available counts or check outcomes; zero execution, all-skipped, and unverified results were not presented as a pass
- No destructive operations: did I avoid running destructive commands (
rm -rf,git clean,docker system prune, database drops) without explicit approval? - No secret leakage: did I avoid asking for sensitive credentials in the conversation, using a
.envfile or the documented local development flow instead?
Acceptance test
Can a developer reproduce the test execution by following the test plan summary, with no extra context?
If no: the test plan summary is incomplete. Add the missing evidence, commands, or prerequisites.
If yes: the skill run is complete. Continue to the handoff if one is needed.
Examples
Example 1: a JavaScript repo with package.json
User: "run the tests for this repository."
Agent:
- Check the
package.jsonscripts and.github/workflows/*. - Settle on
fastmode and propose:npm test(orpnpm test/yarn testif the repository standardizes on one)
- Ask: "install dependencies (
npm ci) and allow network access?" - Run:
npm cinpm test
- Summarize the results and point at the failing test output, if any.
Example 2 (edge case): a monorepo that needs Docker for integration tests
User: "mirror CI locally."
Agent:
- Parse
.github/workflows/ci.ymland identify the separate jobs:- Backend unit tests
- Frontend tests
- Integration tests with
docker compose
- Ask for confirmation:
- Docker allowed
- Network allowed
- Which jobs to run (all of them, or only the failing one)
- Execute in a controlled order:
- Install deps per job
- Run unit tests first
- Start the services for the integration tests
- If the integration tests fail, summarize:
- Service health/port conflicts
- Missing environment variables
- How the CI configuration differs from the local one
Example 3: successful command without a verified test pass
npm test exits zero but reports twelve skipped tests and none executed. Report the scope as skipped, retain the output, and investigate the selection or prerequisites before claiming a pass. If the log is incomplete and execution cannot be established, report unverified instead. A repository check script that identifies three completed checks and their successful outcomes can supply execution evidence without test-case counts.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

