tractorjuice/arc-kit/arckit-build

Claude Code and agent skill by tractorjuice/arc-kit

Trust tier 2
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Bulk-builds a project's ArcKit artefacts in parallel from a YAML recipe: computes the artefact dependency DAG, dispatches one subagent per target per wave, validates each output, commits the wave and persists progress to .arckit/state.json so a build can resume. Manual only: run /arckit:arckit-build with --plan, --resume, --target, --refresh or --recipe. Not needed for a single artefact; run that /arckit:* command directly.

Install

npx vskill@latest install tractorjuice/arc-kit/arckit-build

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as tractorjuice/arc-kit/arckit-build.

ArcKit Build Harness (v0.4)

You are running the ArcKit build harness. Your job is orchestration only — never read or write artefact content yourself. Spawn subagents for that.

Operating principles

  • Never read or write artefact content in main context. That's what subagents are for.
  • One commit per wave, not per artefact (atomic units of progress, clean history).
  • Halt-on-fail by default — if any agent in a wave reports failure, stop and surface to user.
  • State is sacred — update projects/{P}-{NAME}/.arckit/state.json after every wave, before moving on.
  • Single message, multiple Agent calls for parallelism within a wave. Never loop sequential Agent calls.
  • Idempotency: if state says complete, every file the entry records exists (§ "Recorded paths"), AND every input file's SHA-256 matches the hash recorded at build time, skip. Otherwise the target is stale — rebuild it (and propagate staleness through the DAG). See § "Input-hash change detection".
  • Trust the path-allocation hook. ArcKit's validate-arc-filename.mjs PreToolUse hook is the authoritative path normalizer — it allocates sequence numbers, applies subfolders, pads project IDs at write time. The orchestrator and workers never construct paths by string substitution or call generate-document-id.mjs directly. Read the corrected path back from the Write tool result.

Args

ArgEffect
<project>Project directory name or numeric ID (e.g. 001 or 001-arckit-saas). If absent, prompt user.
--planDry run. Print the wave plan, do not dispatch any Agents, exit.
--resumeRead state.json; continue from last incomplete wave.
--target NAMEBuild only NAME and its missing dependencies.
--refresh NAMEForce-rebuild NAME and everything downstream. An adopted NAME is re-read, never built; everything downstream of it rebuilds.
--no-commitSkip the per-wave git commit.
--recipe NAMERecipe name (default uk-saas). Resolved against the precedence list below.
--enable IDBuild an optional target (e.g. --enable AIP), even when the project already has an artefact of its type; existing evidence is then not adopted.
--exclude IDExclude an optional target: neither build it nor read an existing artefact of its type (e.g. --exclude SVCASS).
--skip-hash-checkTreat any complete target whose recorded files are all present as up-to-date; skip SHA-256 staleness detection. Fast resume; risks missing edits to inputs.

Recipe loading

Recipes are external YAML files. Lookup precedence for --recipe NAME (first hit wins):

  1. Project override: .arckit/recipes/{NAME}.yaml — user customizations preserved across plugin updates.
  2. Core plugin: ${CLAUDE_PLUGIN_ROOT}/skills/arckit-build/recipes/{NAME}.yaml — recipes shipped with the arckit core plugin (uk-saas, uk-mod-sovereign).
  3. Community overlay plugins: recipes shipped with installed overlays (e.g. arckit-uae's recipes/uae-federal-ai.yaml, arckit-ca's recipes/ca-federal-fitaa.yaml). Overlays are separate plugins beside the core, so glob, in order, and take the first match:
  • ${CLAUDE_PLUGIN_ROOT}/../../arckit-*/*/recipes/{NAME}.yaml: a marketplace install, where Claude Code caches each plugin as <marketplace>/<plugin>/<version>/. If more than one version matches, use the highest
  • ${CLAUDE_PLUGIN_ROOT}/../**/recipes/{NAME}.yaml: a checkout of the published repo (plugins/uae/recipes/, plugins/uk/finance/recipes/) or of the source repo (plugins/arckit-uae/recipes/)

Default recipe is uk-saas. To customize, copy the core default to .arckit/recipes/uk-saas.yaml and edit there:

bash
mkdir -p .arckit/recipes
cp "${CLAUDE_PLUGIN_ROOT}/skills/arckit-build/recipes/uk-saas.yaml" .arckit/recipes/uk-saas.yaml

Built-in recipes:

RecipePluginUse case
uk-saasarckit (core)UK Government managed multi-tenant SaaS — civilian departments
uk-mod-sovereignarckit (core)UK MOD / sovereign / air-gapped — mod-secure + jsp-936, no SVCASS, sealed-media distribution
uae-federal-aiarckit-uaeUAE Federal AI — full Cabinet agentic AI decree compliance with all 12 UAE community commands, integrated research wave (general AI + AWS / Azure UAE region availability), plus core ArcKit governance
uae-agentic-transformationarckit-uaeUAE Federal Agentic AI Transformation — focused 24-month playbook for the 23 April 2026 Cabinet framework's 50%-of-services-by-April-2028 target; ADRs reshaped around agentic architecture (orchestration, human-in-the-loop, observability, kill-switch); PLAN + ROADMAP timeboxed to the 24-month window
ca-federal-fitaaarckit-caCanadian Federal — FITAA, ITSG-33, GC Digital Standards
au-federalarckit-auAustralian Federal / DISP-supplier — ASD Essential Eight, ISM, DTA DSS, Privacy Act 1988, OAIC NDB, PSPF, AI Assurance, DISP attestation (35 targets, 9 waves)
au-energyarckit-au-energy (composes arckit-au baseline)Australian Energy Sector — AESCSF maturity, AER ring-fencing, AEMC NER/NGR, AEMO interfaces, DERMS/DOE, CSIP-AUS layered on the AU federal baseline (Essential Eight, ISM, OT security, SOCI/CIRMP, Privacy Act/NDB). Optional default-off SERVICE_INVENTORY (servicenow). 23 targets. First Australian sector overlay.
uk-nhs-clinical-safetyarckit (core, references arckit-uk-nhs commands)UK NHS Clinical Safety + UK/EU MDR — NHS DCB0129 (manufacturer) + DCB0160 (deployer) clinical safety case (Marcus Baw SAFETY.md 3-file spec), NHS DTAC (form v2.0), UK MDR 2002 + EU MDR 2017/745 SaMD/AIaMD classification. Composes with UK SaaS baseline (no swaps; adds clinical safety + medical-device regulation on top). 44 targets across 8 waves. Second sector overlay, after UK Finance Payments.
uk-food-sfbbarckit-uk-foodUK food safety for a small caterer in England or Wales, from the FSA's Safer food, better business for caterers pack: business profile, the five sections of safe methods, the business's own methods, the allergen information, the cleaning schedule, the suppliers and contacts, the blank diary and record sheets, and the completion record (12 targets, 4 waves), each target with a min_lines that suits its document. No ArcKit baseline. A build has nobody to answer, and its prompts give no named person's answers, so it confirms nothing: it makes the worksheets that are missing and writes each document that does not exist yet as a draft, from the answers a named person has already confirmed, and it never signs anything off.
Recipe schema (v1)

See ${CLAUDE_PLUGIN_ROOT}/skills/arckit-build/recipes/uk-saas.yaml for an annotated reference. Top-level keys:

  • recipe — recipe name (string, must match filename stem)
  • schema_version — recipe schema version (currently 1)
  • description — free text
  • defaults.version — default version stamp for outputs (e.g. "1.0")
  • optional_targets — map of target ID → {description, default}
  • post_build_hooks — list of {skill, args} to run after final wave (parallel)
  • targets — list of target entries

Each targets[] entry:

FieldRequiredNotes
idyesUnique target ID (e.g. PRIN, ADR-001, DIAG-C4). Never contains :, which separates the dep ID from the path in an input-hash key
skillyesArcKit skill name (e.g. arckit:requirements)
argsyesArgs string passed to the skill, after substitution
output.projectyes"000-global" or "{P}-{NAME}"
output.typeyesArcKit doc-type code (PRIN, REQ, ADR, DIAG, …) — used for state.json keys, NOT for path construction
output.subfoldernoOrientation hint shown in --plan and worker prompts; the actual subfolder is enforced by validate-arc-filename.mjs's SUBDIR_MAP at write time
output.multi_instancenoOrientation hint; the hook's MULTI_INSTANCE_TYPES list is authoritative
topicnoUsed in commit messages and {TOPIC} substitution
min_linesnoThe fewest lines the written document may have, a whole number of 1 or more, for a document that is short by nature. The worker's check (worker step 3) and the orchestrator's validation (per-wave step 4) both use it. Absent, the document must have more than 100 lines, as before, the same as min_lines: 101. scripts/check_recipes.py rejects any other value
depsyesList of target IDs, may include glob "ADR-*"

The output.subfolder / output.multi_instance fields document recipe author intent for human readers and --plan output, but the path-allocation hook is the source of truth at write time. If a recipe says subfolder: decisions for a single-instance type the hook doesn't recognise, the file lands wherever the hook decides — debug via the hook, not the recipe.

Variable substitution

The orchestrator substitutes these placeholders in args and output.project before dispatching to workers (workers never see placeholders):

PlaceholderSource
{P}Project ID, zero-padded (e.g. "001")
{NAME}Project slug (e.g. "arckit-saas")
{V}defaults.version from the recipe
{TOPIC}target.topic (multi-instance ADR/DIAG topics)
Dep resolution

deps: ["ADR-*"] matches all targets whose ID begins with ADR-. Exact IDs take precedence; globs expand at wave-computation time against the resolved target list (after optional-target filtering).

An exact-ID dep naming an optional target orders the build only while that target is enabled. A disabled optional target is resolved in one of two ways (run step 6):

  • Adopted. When it is disabled only because its default is false (it was named in neither --enable nor --exclude), and the project already has an artefact of its output type, the harness adopts that artefact instead of building it. The target is recorded complete with source: "pre-existing" and adopted: true, it stays in its dependents' deps, and they read the existing artefact: for a multi-instance type, the latest version of every instance. A recipe can therefore declare evidence a target should read when it exists but never generate just to satisfy a dependency, such as an existing backlog or codebase audit. An adopted target is never dispatched, on a first run, a --resume or a --refresh; it is re-resolved from the project's files on every run.
  • Pruned. Otherwise (no existing artefact, or named in --exclude), its ID is removed from every remaining target's deps. A recipe may therefore declare the true ordering — OAGOV deps [OAAL, OASEC] in oaa-full — without --exclude OASEC leaving OAGOV waiting forever on a target that will never run.

--exclude ID therefore means "neither build nor read": the target is not dispatched, existing artefacts of its type are not adopted, and no worker receives their paths. --enable ID turns adoption off: the target is built like a default-on one. For a single-instance type its worker reads the latest existing artefact as its previous version and writes the next version; a multi-instance type gets a new instance. A dep naming a non-optional target that doesn't exist in the recipe is still an error.

Input-hash change detection

The orchestrator records the SHA-256 of every input artefact at build time and compares against the live filesystem on the next run. This catches the "user edited REQ after the build completed but never re-ran" case that pure test -f idempotency misses.

Recorded paths

A state entry records the files it stands for in one of two shapes. Every rule in this skill (completion, the work list, --resume, --skip-hash-check, hashing, staleness and the paths a worker may read) reads an entry through paths(t):

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
2,228
Repository forks
279
7-day trend score
39

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/tractorjuice/arc-kit/arckit-build/badge)](https://verified-skill.com/skills/tractorjuice/arc-kit/arckit-build)

Something wrong with this skill or its page? Tell us.