Borda/AI-Rig/plugins/codex-rig/skills/develop/SKILL.md
develop
Minimal codex-native develop loop. Use for implementation tasks with linear plan-build-verify flow and measurable quality gates.
- Source repository stars
- 24
- Declared platforms
- 1
- Static risk flags
- 1
- Last source update
- 2026-08-06
- Source checked
- 2026-08-06
Decision brief
What it does—and where it fits
See the fixed recurrence and root-cause policy for repeated-obstacle handling; it governs symptom patching, escalation, and reset evidence.
Not for
- Tasks that require unconfirmed production actions or broad system permissions.
- Environments where the pinned source and install steps cannot be inspected.
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Declared | Source record | Install path and trigger |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/Borda/AI-Rig --skill "plugins/codex-rig/skills/develop"Inspect the Agent Skill "develop" from https://github.com/Borda/AI-Rig/blob/0ed1eaa2ec1f6294996f661ea1c5078fb7e49f52/plugins/codex-rig/skills/develop/SKILL.md at commit 0ed1eaa2ec1f6294996f661ea1c5078fb7e49f52. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
Workflow (Exact Commands)
Run python PLUGINROOT/shared/createrun.py --skill develop once. Retain its single printed path as and substitute that literal path into every later artifact path and helper argument. Never store or reuse the path through a shell variable; shell variables do not persist across to…
feature: define public behavior, acceptance checks, docs impact, and tests before implementation.fix: reproduce or cite the failing behavior before editing.refactor: preserve behavior with characterization tests or an equivalent safety net. - 02
09: Review the changed files and the gate output before deciding pass/fail
Review the “09: Review the changed files and the gate output before deciding pass/fail” section in the pinned source before continuing.
Review and apply the “09: Review the changed files and the gate output before deciding pass/fail” source section. - 03
Input Schema
Review the “Input Schema” section in the pinned source before continuing.
Review and apply the “Input Schema” source section. - 04
01: Create run directory
Run python PLUGINROOT/shared/createrun.py --skill develop once. Retain its single printed path as and substitute that literal path into every later artifact path and helper argument. Never store or reuse the path through a shell variable; shell variables do not persist across to…
Run python PLUGINROOT/shared/createrun.py --skill develop once. Retain its single printed path as and substitute that literal path into every later artifact path and helper argument. Never store or reuse the path throug… - 05
02: Record baseline diff and branch
Run git rev-parse --abbrev-ref HEAD as an argv command and write stdout to /branch.txt.
Run git rev-parse --abbrev-ref HEAD as an argv command and write stdout to /branch.txt.Inspect python PLUGINROOT/shared/collectdiff.py --help; collect working-tree into /baseline.
Permission review
Static risk signals and limitations
Writes files
The documentation asks the agent to create, modify, or delete local files.
### 01: Create run directoryWrites files
The documentation asks the agent to create, modify, or delete local files.
Run `git rev-parse --abbrev-ref HEAD` as an argv command and write stdout to `<run-directory>/branch.txt`.Evidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 93/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 24 | Source | Repository attention, not individual Skill quality |
| Compatibility | 1 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- Borda/AI-Rig
- Skill path
- plugins/codex-rig/skills/develop/SKILL.md
- Commit
- 0ed1eaa2ec1f6294996f661ea1c5078fb7e49f52
- License
- Apache-2.0
- Collected
- 2026-08-06
- Default branch
- main
View the original SKILL.md
Develop
See the fixed recurrence and root-cause policy for repeated-obstacle handling; it governs symptom patching, escalation, and reset evidence.
Run linear implementation with strict gates.
Input Schema
{
"goal": "required implementation objective",
"mode": "feature|fix|refactor|config|spike",
"constraints": [
"optional constraints"
],
"done_when": "required acceptance statement"
}
Workflow (Exact Commands)
01: Create run directory
Run python PLUGIN_ROOT/shared/create_run.py --skill develop once. Retain its single printed path as
<run-directory> and substitute that literal path into every later artifact path and helper argument. Never store or
reuse the path through a shell variable; shell variables do not persist across tool calls.
02: Record baseline diff and branch
Run git rev-parse --abbrev-ref HEAD as an argv command and write stdout to <run-directory>/branch.txt.
Inspect python PLUGIN_ROOT/shared/collect_diff.py --help; collect working-tree into <run-directory>/baseline.
03: Route the change type and define ownership
Modes:
feature: define public behavior, acceptance checks, docs impact, and tests before implementation.fix: reproduce or cite the failing behavior before editing.refactor: preserve behavior with characterization tests or an equivalent safety net.config: inventory references and calibration/routing impact before editing.spike: read-only or disposable probe; do not present as completed implementation.
Define narrowest reversible change, owners, acceptance. For 3+ steps/design tradeoffs, update plan before edit.
Structural context (optional): once a target module/symbol is scoped, also probe codemap-py once for callers,
coupling, and test impact before implementation: python PLUGIN_ROOT/shared/codemap_adapter.py context --category develop --target <qname> --out <run-directory>/codemap-context.json. Per ../../shared/codemap-contract.md,
absence/incompatibility is non-fatal — continue with the routing above. Persist the result once here, before step 05
implementation; step 06 specialist fan-out consumes <run-directory>/codemap-context.json, never a fresh query.
04: Run the anti-rationalization gate before editing
- Existing code and tests for the target surface have been read.
- Failure mode or new behavior is captured by a failing doctest, pytest, or explicit acceptance check.
- Coding changes have a project coding-principles plan from the applicable
AGENTS.mdlayers: simple/readable/reproducible structure first, short reusable units without low-value argument-remapping wrappers, guard clauses or earlyreturn/yield/continuefor invalid or terminal cases, project docstring-style detection, concise purpose docstrings, and inline comments only for non-trivial implementation blocks. featuremode has a feature demo contract before production edits:- simple public API: inline doctest or focused pytest that shows the intended call and result
- multi-step behavior: minimal example or pytest exercising the user-visible workflow end to end
- the demo must be automatically executable and must fail against current code for the intended missing behavior
- if the demo passes before implementation, stop and re-scope; do not silently proceed unless the user explicitly overrides the gate
- Review the demo contract for goal alignment, API shape, missing scenarios, and automatic verifiability before implementation.
- If the task starts from a symptom, failing test, failing CI, flaky behavior, regression, tool/environment error, or unexplained metric shift, run
investigatefirst or document equivalent root-cause evidence before editing. - Root-cause evidence includes the claim, supporting logs/code, a falsification check, and at least one rejected alternative. A workaround-only change is a temporary mitigation, not completion, unless explicitly requested by the user.
- Behavior-preserving refactors have characterization tests or an equivalent current-behavior safety net.
- The next edit is the smallest reversible step, not a speculative refactor.
05: Implement minimal change
While implementing, keep the code understandable from the code itself:
- Apply the consolidated project coding principles from the applicable
AGENTS.mdlayers. - Refactor long, dense, or deeply nested blocks into named helpers/classes before adding explanatory text.
- Avoid tiny rarely used helpers that only remap arguments; keep the logic inline, use a local helper, or use
functools.partialwhen only binding arguments. - Match the project's configured or established docstring style, and keep function/class purpose in docstrings rather than comments directly above definitions.
- Refactor instead of writing long docstrings or comments when a block needs a long explanation to be understandable.
06: Orchestrate specialists when the change crosses a domain boundary
Apply ../../shared/specialist-orchestration.md. Stay single-agent for narrow implementation that fits in one to three files and one domain. Use specialist orchestration when the task crosses domains, benefits from independent verification, or can split into parallel context packs.
Before spawning or substituting specialists, write <run-directory>/specialist-plan.md with one row per planned pass:
| role | trigger | context pack | expected output | mode |
|---|
Required orchestration patterns:
- public API or architecture:
solution-architectfor API contract/migration shape,sw-engineerfor implementation,qa-specialistfor acceptance matrix, anddoc-scribefor public docs/docstrings when applicable. - bug fix or regression:
investigateor equivalent root-cause evidence first, thensw-engineerfor the fix andqa-specialistfor failure-before/pass-after proof. - CI/tooling:
cicd-stewardfor workflow behavior andlinting-expertfor ruff/mypy/pre-commit or suppression policy. - security-sensitive code: read-only
security-auditorbefore implementation; pair withsw-engineerandqa-specialistonly after risk is scoped. - ML/data/research behavior:
data-stewardfor data contracts,scientistfor method/metric validity,squeezerfor performance claims, plusqa-specialistfor tensor boundary tests. - docs-impacting behavior:
doc-scribegets only the verified public behavior, API signatures, examples, and migration notes; do not send unrelated implementation details. - high-risk or broad changes:
challengerruns after the draft plan or diff to stress-test assumptions and residual risk.
Each specialist context pack must include only relevant files, hunks, logs, and questions. Do not give every specialist the full task history. If specialist fan-out is unavailable, record the in-main substitute in <run-directory>/specialist-notes.md and lower confidence when independence mattered.
07: Write <run-directory>/development-notes.md before running gates
Required sections:
ScopeAcceptance CriteriaEvidenceSpecialist PolicyGates
08: Run shared quality gates
Inspect python PLUGIN_ROOT/shared/run_gates.py --help, then run all project-relevant gates with explicit commands or skip reasons.
09: Review the changed files and the gate output before deciding pass/fail
10: Classify findings using ../../shared/severity-map.md
11: Run confidence calibration and recovery before any user-facing output
Write <run-directory>/confidence-calibration.md with these sections:
Initial Confidence: starting score and the concrete uncertainty sources.Objective Evidence: code paths read, tests/checks run, reproduction or acceptance evidence, and artifacts inspected.Confidence Gaps: missing evidence, unverified assumptions, risky substitutions, or unavailable checks.Recovery Actions: internal loops already performed to increase confidence, such as reading more source, running focused checks, adding/adjusting tests, consulting specialist policy, or reducing scope.Recomputed Confidence: final score after recovery, with why it is objectively supported.Remaining Limits: residual uncertainty and why it is acceptable or blocking.
Shared confidence policy:
Apply the shared confidence band policy from ../../shared/quality-gates.md. This skill records the required evidence in confidence-calibration.md and mirrors it in DEVELOP_METADATA.confidence_recovery before output.
Confidence must be honest and objectively verifiable. Do not inflate it to pass a gate; if the evidence is missing, keep the lower score and fail or time out with the missing evidence named.
12: Write and validate the mandatory result artifact
Follow ../../shared/helper-cli-contract.md and authoritative help. Write with DEVELOP_METADATA, validate as skill develop, and promote only the validated candidate.
DEVELOP_METADATA.confidence_recovery must mirror confidence-calibration.md and include initial_confidence, final_confidence, status, evidence, recovery_actions, and remaining_limits. DEVELOP_METADATA.confidence_gap_closures must include one closure record per non-empty confidence_gaps entry, with status=closed|unresolved|deferred and matching evidence or rationale.
Fail-fast Rules
- Missing
goalordone_when=> fail. - Shared gate script missing => fail.
- Any critical finding => fail.
- Ambiguous scope or missing ownership => fail.
- Missing failing doctest, pytest, or explicit acceptance check for changed behavior => fail.
featuremode without an executable failing demo contract before production edits => fail.- Feature demo passes before implementation without explicit user override and re-scope note => fail.
- Symptom-first task edited without
investigateoutput or equivalent root-cause evidence => fail. - Workaround-only fix presented as completion without explicit temporary-mitigation instruction => fail.
- Behavior-changing config/agent/skill edit without calibration/routing decision => fail.
- Specialist-required domain change without specialist output or labeled substitute => fail.
- Missing
development-notes.mdsections => fail. - Result artifact validator failure => fail.
- Result artifact missing => fail.
- New or materially changed function/method without a purpose docstring in the configured, established, or fallback project style => fail unless it is generated or third-party code explicitly outside the edited ownership.
- Non-trivial new or changed code block without an explanatory inline comment => fail unless the code was refactored until the rationale is obvious from names and structure.
- Explanatory inline comment immediately before a new or changed function/class definition => fail; move that explanation into the docstring.
- Long, dense, or deeply nested new/changed code block that could be split into clear helpers/classes or simplified with guard clauses => fail unless the local project pattern requires the structure.
- Low-value tiny function/class that only remaps arguments, wraps one call without a semantic purpose, or is rarely used => fail unless it materially improves readability, testability, or API stability.
- Missing
confidence-calibration.mdsections => fail. - Shared confidence policy violation from
../../shared/quality-gates.md=> fail.
Quality Gates
Required checks:
review:git diff --check, changed-file inspection, acceptance criteria trace, simplicity/readability/reproducibility inspection, project docstring-style detection, and docstring/comment policy inspection for changed code.tests: failing-then-passing check or explicit acceptance probe for changed behavior;featuremode must include the demo failure before edits and demo pass after implementation.artifact: shared validator confirmsdevelopment-notes.md, gate logs, and result JSON shape.confidence:confidence-calibration.mdandDEVELOP_METADATA.confidence_recoverysatisfy the shared confidence band policy from../../shared/quality-gates.md.
Conditional checks:
lint/format/types: run project-configured commands when code or typed config changed.calibration: run when workflow skills, role/agent routing,.codex/config.toml, or calibration fixtures changed; Codex Rig source usesruntime/calibration/run.py --layout plugin.
Calibration Hooks
Update calibration when implementation routing or output expectations change:
- benchmark patterns:
develop - behavioral cases: symptom-first routing, specialist substitution, config behavior changes, missing acceptance probe, feature demo gate bypass, missing project docstring-style detection, missing function docstrings, overlong docstrings masking complex code, long code blocks not factored, deep branching without guard clauses, low-value argument-remapping wrappers, pre-definition comments that should be docstrings, missing explanatory inline comments, low-confidence recovery loop, objective confidence evidence, artifact validator bypass
Output Contract
Use shared gate schema from ../../shared/quality-gates.md.
Final chat output must include the confidence score, confidence band status, recovery actions, remaining limits, and the concrete confidence gaps or degradation reasons plus closure status from metadata.confidence_gaps and metadata.confidence_gap_closures.
Minimum artifact payload template: result-template.json.
Alternatives
Compare before choosing
wanshuiyin/Auto-claude-code-research-in-sleep
auto-paper-improvement-loop
Use it for operations tasks; the detail page covers purpose, installation, and practical steps.
cameronfreer/lean4-skills
lean4
Use when editing .lean files, debugging Lean 4 builds (type mismatch, sorry, failed to synthesize instance, axiom warnings, lake build errors), searching mathlib for lemmas, formalizing mathematics in Lean, finding a counterexample to, refuting, or disproving a Lean statement, or learning Lean 4 concepts. Also trigger when the user asks for help with Lean 4, mathlib, or lakefile. Do NOT trigger for Coq/Rocq, Agda, Isabelle, HOL4, Mizar, Idris, Megalodon, or other non-Lean theorem provers.
PramodDutta/qaskills
RAG Regression Testing
Gate RAG pipelines in CI with versioned golden eval sets, per-metric thresholds, baseline drift detection, and a build that fails when retrieval or answer quality regresses.
PramodDutta/qaskills
State Machine Test Generator
Generate comprehensive test cases from state machine models covering all states, transitions, guard conditions, and invalid transition attempts for workflow-heavy features