agentsclimarketplace

Scafld

Skill runxhq/runx/skills/issue-to-pr/graph/scafld

Run existing scafld v2 lifecycle commands under runx governance.From its SKILL.md

Install
npx -y skills add runxhq/runx --skill scafld

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

4.0 KB, ~1.0k tokens by cl100k_base, as published. Nobody here has run it

scafld

Use this skill when runx needs to govern an existing scafld lifecycle or projection command.

The skill does not replace scafld. It calls the scafld 2.4.0+ CLI with explicit argv, requires native JSON output for machine-readable commands, records the runx receipt for the hop, and lets the graph define which command is allowed at each step.

Lifecycle

scafld v2 manages code-change work through a linear lifecycle:

draft -> approved -> active -> review -> completed/failed/cancelled

Specs are Markdown files under .scafld/specs/:

  • drafts/ - draft specs
  • approved/ - approved specs ready to build
  • active/ - active or review-stage specs
  • archive/YYYY-MM/ - completed, failed, or cancelled specs

The supported commands are:

  1. init - bootstrap a scafld workspace.
  2. plan <task-id> - create .scafld/specs/drafts/<task-id>.md.
  3. harden <task-id> - open a hardening round before approval.
  4. harden <task-id> --mark-passed - close the current hardening round.
  5. validate <task-id> - validate the Markdown spec shape.
  6. approve <task-id> - move a draft into the approved lane.
  7. build <task-id> - activate approved work, run acceptance, and write evidence.
  8. build_to_review <task-id> - repeatedly run native scafld build <task-id> --json until scafld reports status review, stopping on the first native build failure or blocker.
  9. exec <task-id> - run the execution path for the current task.
  10. review <task-id> - run scafld's native adversarial review gate.
  11. complete <task-id> - archive reviewed work after the native gate passes.
  12. status <task-id> - inspect native task state.
  13. list - list native task specs.
  14. report - aggregate native run/spec metrics.
  15. handoff <task-id> - render model-facing Markdown transport.
  16. fail <task-id> and cancel <task-id> - archive incomplete work.

Branch creation, issue updates, PR creation, and CI publication are wrapper responsibilities. scafld owns the local lifecycle, spec projection, session evidence, and review gate.

Spec Shape

The spec file (.scafld/specs/.../<task-id>.md) is Markdown with YAML front matter:

  • spec_version: "2.0"
  • task_id, created, updated, status, harden_status
  • size, risk_level
  • # Title, plus sections such as ## Summary, ## Objectives, ## Scope, ## Acceptance, ## Phase N: ..., ## Review, and ## Planning Log
  • executable acceptance criteria use Command and Expected kind

Inputs

  • command (required): one of init, plan, harden, validate, approve, build, build_to_review, exec, review, complete, fail, cancel, status, list, report, or handoff.
  • task_id: scafld task id. Required for all commands except init, list, and report.
  • fixture: workspace root containing .scafld/; used as scafld working directory.
  • title, summary, size, risk, acceptance_command: forwarded to plan.
  • mark_passed: forwarded to harden --mark-passed.
  • provider, provider_command, provider_binary, model: forwarded to review.
  • max_builds: optional cap for build_to_review; defaults to 12 native build advances.
  • scafld_bin: explicit scafld executable path. Defaults to SCAFLD_BIN or scafld on PATH.
  • scafld_min_version: optional minimum accepted scafld version; defaults to 2.4.0.

Structured Output

runx does not rebuild scafld state locally. For commands with native JSON contracts, the wrapper forwards the scafld payload directly after argv/env sanitization. scafld 2.4.0 command providers may print provider progress before the final JSON envelope; the runner extracts and forwards that native envelope. build_to_review is a bounded lifecycle driver over native scafld build outputs, not a local state reconstruction. handoff is the exception: it forwards native Markdown because handoff is model transport, not lifecycle state.

What ships with it: 4 files

19.0 KB alongside SKILL.md, 2 of them executable

fixtures/

tools/

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.