بنقرة واحدة
orchestratetests
Add test infrastructure and initial test coverage to a target repo
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Add test infrastructure and initial test coverage to a target repo
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use this skill when you need to create clear, concise summaries of information. This includes summarizing long documents, articles, meeting notes, technical documentation, research papers, or any text that needs to be condensed while preserving key information. The skill provides techniques for extractive and abstractive summarization, bullet-point formatting, and executive summaries.
Add comprehensive CI workflows to a target repo - lint, test, build, security scanning, dependabot, scorecard, action pinning
Brainstorm and create phased enhancement plan for a target repo - PR sizing, phase selection, task breakdown
Add pre-commit hooks, linting, CLAUDE.md, and foundational .claude/ setup to a target repo
Review all orchestration PRs before merge - per-PR checks, cross-PR consistency, and coordinated approval
Scan and assess a target repository - tech stack, CI maturity, security posture, test coverage, supply chain health
| name | orchestrate:tests |
| description | Add test infrastructure and initial test coverage to a target repo |
flowchart TD
START(["/orchestrate:tests"]) --> READ["Read plan"]:::orch
READ --> DETECT["Detect test framework"]:::orch
DETECT --> CONFIG["Create test config"]:::orch
CONFIG --> CRITICAL["Identify critical paths"]:::orch
CRITICAL --> WRITE["Write initial tests"]:::orch
WRITE --> BRANCH["Create branch"]:::orch
BRANCH --> SIZE{Under 700 lines?}
SIZE -->|Yes| PR["Commit + open PR"]:::orch
SIZE -->|No| SPLIT["Split into sub-PRs"]:::orch
SPLIT --> PR
PR --> DONE([Phase complete])
classDef orch fill:#FF9800,stroke:#333,color:white
Follow this diagram as the workflow.
Add test infrastructure and initial test coverage. This is Phase 3 and produces PR #2. Tests come before CI and security — good test coverage is a safety net for the code refactoring that security/quality fixes require.
orchestrate:plan identifies tests as a needed phase.repos/<target>/| Marker | Language | Framework | Assertion |
|---|---|---|---|
pyproject.toml | Python | pytest | built-in assert |
go.mod | Go | testing (stdlib) | testify |
package.json | Node | jest or vitest | built-in expect |
requirements.yml | Ansible | molecule | testinfra |
Check existing tests:
find .repos/<target> -type f \( -name "test_*.py" -o -name "*_test.go" -o -name "*.test.*" \) 2>/dev/null
tests/conftest.py — shared fixturestests/__init__.py — package markerpyproject.toml — add [tool.pytest.ini_options] with testpaths = ["tests"]*_test.go files alongside sourcetestdata/ for fixturesinternal/testutil/ for shared helpersjest.config.ts or vitest.config.ts at root__tests__/ directory or *.test.ts alongside sourcemolecule/default/ with molecule.yml, converge.yml, verify.ymlFrom the scan report, find highest-impact areas:
Prioritize smoke tests across areas over exhaustive coverage of one area.
| Language | Convention | Example |
|---|---|---|
| Python | test_<what>_<condition> | test_create_user_returns_201 |
| Go | Test<What><Condition> | TestCreateUserReturns201 |
| Node | describe/it blocks | it('returns 201 when creating user') |
git -C .repos/<target> checkout -b orchestrate/tests
git -C .repos/<target> diff --stat | tail -1
If over 700 lines, split: framework setup in PR #3a, tests in PR #3b.
git -C .repos/<target> add -A
git -C .repos/<target> commit -s -m "feat: add test infrastructure and initial test coverage"
git -C .repos/<target> push -u origin orchestrate/tests
Set tests to complete in phase-status.md.
orchestrate — Parent routerorchestrate:precommit — Previous phase (linting foundation)orchestrate:plan — Defines test phase tasksorchestrate:ci — Next phase (automates running these tests)