rea-analysis-optimization
MOmorluto/rea486k8,943 new stars in the last 7 days
Start coding or resume the approved current feature or fix on its branch, testing each step and presenting review. Use for /implement or building current-feature.md.
Context reuse: Reuse any required file already loaded in project instructions or the current session. Read it again only if absent, changed, or exact current bytes or line references are needed.
The approved blueprint/context/current-feature.md is the authoritative feature
packet. Implement it and stop before the work-level commit or merge.
First action: Before project inspection, preflight, or any other tool call,
publish the implement activity as running when blueprint/.state/ exists.
From the project root, run the first helper that exists,
node .agents/skills/blueprint-doctor/scripts/run-state.mjs or
node .claude/skills/blueprint-doctor/scripts/run-state.mjs, with start --command <skill> --summary "<truthful summary>" --boundary <read-only|reviewed|local-only>. Use update at milestones, with --status blocked --resume <command> for a blocker, and finish --status ready|completed
at the end; --help lists every option and blueprint/workflow.md has the full
activity contract. A missing or failing helper is a warning, not a blocker.
Combine it with the first preflight tool batch when supported.
In one preflight batch, read:
blueprint/config.jsonblueprint/context/current-feature.mdAGENTS.mdStop for /blueprint-doctor on invalid config. Stop for /feature or /fix
when the active spec is empty. Preserve unrelated worktree changes.
Do not reread the full project overview, coding standards, interaction guide, history, findings, or review ledger before coding. The approved spec already contains the product contract and applicable conventions. Read one targeted section only when the spec explicitly depends on a missing detail. Read findings and review state once at the final handoff.
Inspect the implementation surface in one targeted, batched read before editing. Use one additional read batch only when an exact dependency remains unknown and blocks the next change. Do not list or survey the repository, inspect unrelated examples, or run scratch environment probes. Follow the declared runtime and existing target-area patterns, then let the narrow check expose incompatibilities.
If the spec says Type: Rollback, it predates the removal of the rollback
workflow. Stop without changing product files and suggest removing the feature
through /fix instead.
Resolve the work branch before editing. Use the exact **Branch:** value in the
spec when present. For an older spec without it, combine the configured prefix
for its type with the work title: lowercase ASCII letters and digits, replace
each run of other characters with one hyphen, and trim edge hyphens. Feature
titles come from the named build-plan item; fix titles come from their spec
heading. Stop if the type or title is ambiguous. Create or
switch to that exact branch and never implement on the default branch. On
resume, start at the first unchecked build step and use git status plus the
checked boxes to distinguish finished work from unfinished work.
Follow build steps in order. Build only what the spec says. If a step requires an unresolved product decision, unsafe action, missing prerequisite, or material scope expansion, stop and revise the spec instead of improvising.
Add an abstraction, dependency, service, configuration surface, compatibility layer, or security mechanism only when the approved spec or an established repository requirement needs it now. Prefer existing code, the standard library, native platform features, and installed dependencies. If the simplest complete implementation conflicts with the spec, stop and revise the spec instead of silently building a larger design.
For each step:
Done when.workflow.stepReview is feature; run it once
after all steps. Run Verify earlier only when the step explicitly requires it
or later work cannot proceed without it.fixed, never closed.With verification.logicTests: required, any logic-bearing step stops and
points to /tests when no test runner is configured. Its focused logic tests
must pass before the step can be checked. With verification.uiEvidence: required, a UI done-when cannot pass on build output alone. Capture the
configured browser evidence, or stop and ask the user to start the required
server when live evidence cannot run automatically.
With workflow.stepReview: feature, continue through passing steps and present
one final review packet, with no per-step choices. With workflow.stepReview: every, stop after each step with the diff, a short explanation, evidence, and a
manual try path when one exists, then offer these choices:
workflow.checkpointCommits is enabled.Continue only after the user picks continue or a checkpoint. A reply asking for
changes revises this step, then the choices return. A step walkthrough is a
read-only tour of this step's diff: its purpose, key files and symbols, and
non-obvious decisions; offer the choices again afterward. Stop here leaves the
finished step checked so a later /implement resumes at the next one.
The user's checkpoint pick is the commit approval for that step only. Before
committing, run Verify, or the fallback build and tests, and stop if it fails.
Commit the step's code, tests, and updated current-feature.md checkbox on the
work branch with a conventional message such as feat: checkpoint <step>. Never
commit without current approval. /complete owns the final work-level commit
and merge.
Do not create a separate tool round merely to narrate a passing internal step. Keep the durable checkbox current and continue. Split a step when its diff is too large to review.
Before final verification, compare every In scope item and Done when against
the finished diff. For user-facing work, inspect the reachability and error
classification of each required state. Catch only known expected errors at a
boundary; unexpected failures must reach the unexpected-error path. Fix any
missing or contradicted contract before marking the spec verified.
Run a proportionality check before final verification: every new abstraction, dependency, service, configuration surface, compatibility layer, and security mechanism must trace to the approved spec or an established repository requirement. Remove speculative machinery this work added without weakening real trust-boundary validation, data-loss prevention, accessibility, or configured verification.
After all steps pass, run the project's final automated gate once. If
AGENTS.md declares a Verify command, run that exact command. Otherwise run
the fallback build and tests that are actually declared. Never claim a check
passed without its output.
Apply configured regular gates:
qualityGates.regular; when-sensitive
selects them for authentication, authorization, payments, secrets, personal
or user data, migrations, destructive operations, external side effects,
security boundaries, or unusually broad changes.always, for behavioral work under when-behavioral, or when
explicitly requested./check guide follows qualityGates.regular.tryGuide: it runs for always,
for user-facing work under when-user-facing, for work with a safe meaningful
direct observation under when-testable, or when explicitly requested.After final Verify and required Check pass, apply the selected try-guide policy.
For when-testable, follow only ../check/reference/try-it-now.md for its
conservative classification; the full guide is not needed. Other selected
policies run /check guide. Keep the generated ## Try it now section for the
final packet. When no safe, meaningful direct observation exists, record that
the gate was skipped and do not fabricate a section. Guide output never counts
as verification or user acceptance.
Do not start a dev server. When a required runtime check needs one, ask the user to start it. Build output does not prove visual, persisted-data, authenticated, or end-to-end behavior.
If Verify or a required gate fails, repair only in-scope defects, rerun the narrow failing check, then rerun the final gate. Stop on repeated failure, missing infrastructure, or a product decision.
After final Verify and required Check pass, set the active spec to verified
with every completed box checked. Then resolve independent review before the
final packet:
qualityGates.regular.independentReview does not select review and no
request already exists, proceed directly to the final review packet.Spec snapshot contract without changing visibility. Obtain explicit
commit approval when the exact checkpoint does not already exist, then create
or use it. Configuration, including review.independentExecution: "automatic",
never grants commit permission, even when normal checkpoint commits are disabled.
A local-spec-only revision may reuse the same approved product HEAD after
normal spec and verification gates, with a new snapshot/request and full
fresh review. Do not create an empty commit for ignored spec changes./audit independent current to prepare or reuse the request and record
Requested execution. For requested automatic, start and wait for the
generic isolated current-runtime child instructed from the project-local
Audit skill, then validate the receipt. For requested manual, or when
automatic capability or access to the same local spec/snapshot is unavailable,
preserve the request and stop with the manual fresh-session handoff. Treat an
existing request without Requested execution as legacy manual-only:
never add execution fields or run a subagent against it.Read blueprint/context/findings.md and blueprint/context/review.md once.
Open or fixed P0/P1 findings block /complete. Repair an open blocker as a new
spec checklist step, mark it fixed after its check passes, then send it back to
/audit for closure. Only the user can accept a finding.
When all steps and required gates pass:
ready with /complete as the resume command./complete as the next action.## Try it now section verbatim when guide mode produced
one. Do not replace it with a vague summary or a pointer. When the selected
policy found no safe direct path, omit the section and state that outcome with
the gate results.After the final packet, always offer these choices:
The final walkthrough is available with either workflow.stepReview value and
regardless of workflow.checkpointCommits. It is a read-only code tour, not the
manual product-review path produced by /check guide, and it is not verification.
When the user chooses the walkthrough, begin with a short map of the completed feature, then follow the spec's build steps. For each step, explain its purpose, key files and symbols, important data or control flow, and non-obvious decisions. Use file and line links when the client supports them. Do not narrate every line or reload broad project context. End by offering a focused deep dive into one named area. If the feature spans too many distinct areas for one useful pass, name the sections first and let the user choose where to begin. Remain read-only unless the user separately requests changes.
The only commits this skill may make are an approved step checkpoint from the Build loop and exactly one immutable independent-review checkpoint after showing its exact candidate and receiving current explicit commit approval. Configuration never supplies either approval. Never create any other commit, including a product or work-level commit, and never merge, push, deploy, publish, or start unrelated work from this skill.
MOmorluto/rea486k8,943 new stars in the last 7 days
Diagnose hard bugs and performance regressions by building a feedback loop with tests or scripts.
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days