/smda-automation:setup-smda-automationfrom smda-automation
Use when a repo needs reusable SMDA-only State-Machine-Driven Automation, when installing or refreshing autonomous issue-graph development workflows, or when wiring Codex harness context, a backlog manager, and the SMDA Scheduler product together.
Ships in smda-automation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Install or refresh a repo-local SMDA operating model; the bundled SMDA Scheduler
product runtime is the runtime truth. This skill is the Tier-3 config surface
only.
It requires the target repo to already have
engineering:setup-codex-development-harness output or an equivalent harness
contract; it does not install or refresh the generic development harness.
For an existing SMDA repo, refresh only when repo-local artifacts still point at a product checkout path, copied runtime/runner files, or old daemon scripts. Refresh updates Tier-3 config, bootloader/harness pointers, ignored env/state notes, and optional daemon controller glue so the repo consumes the installed plugin bundle. It must not rerun generic harness setup, copy runtime code, or create new adapter implementations.
Core idea:
roadmap, for multi-parent restructuring only
-> spec parent issue(s)
-> approved parent spec
-> reviewed task graph
-> child tasks in Linear or another product-supported backlog adapter
-> child phase machine: implement -> spec review -> quality review -> fix loops
-> serialized accept into parent integration branch
-> parent verification + QA/human gate
-> durable final accept / Done tracker effect
Read the references before writing:
--max-ticks default 1), the daemon controller template
(start/stop/restart/status) with a single-daemon guard, and the macOS TCC
caveat for launchd/cron. Also covers the runtime-ledger-vs-tracker-projection
status check that fresh sessions use to diagnose backlog projection lag.docs/contracts.md and docs/product-spec.md
(relative to the SMDA Scheduler product repo root — this skill is hosted from
that repo).Stop and report clearly when any required adapter is missing:
engineering:setup-codex-development-harness, or create an equivalent
harness with an index, tracker contract, domain-doc routing, and quality-gate
contract first.linear or local-ledger). GitHub/custom trackers require a product
adapter; do not invent one in setup.SPEC_FINALIZED.Read the target repo's bootloader, harness/tracker docs if present, quality gates, roadmap/spec/ADR locations, current or legacy orchestrator artifacts, and tracker evidence. Detect setup, refresh, legacy blockers, or drift repair. For refresh, specifically check for stale product-checkout invocations, copied SMDA runtime artifacts, target-repo Sandcastle runner files, and daemon scripts that bypass the plugin-bundled runtime.
Show the detected stack and the SMDA adapter plan before writing:
smda-scheduler status and the daemon controller status
are the read-only checks fresh sessions should run before judging progress.Choose one backlog adapter before writing config:
adapters.backlog.id: linear when the repo has a Linear tracker
and the operator can provide local Linear env values. Setup writes the adapter
id/scope in config and points to the gitignored env file; it does not commit
Linear secrets.adapters.backlog.id: local-ledger when the repo harness
tracker truth lives in files. Setup writes the local ledger paths
(active_path, completed_path, abandoned_path) when they differ from
docs/work-ledger/active.md, docs/work-ledger/completed.md, and
docs/work-ledger/abandoned.md.If the requested tracker is not linear or local-ledger, stop and name the
Tier-2 backlog adapter to implement; do not generate adapter code in setup.
Recommend the default stack when available: Codex harness + Linear hierarchy / blocking relations + SMDA Scheduler. For file-backed harnesses, recommend Codex harness + local-ledger + SMDA Scheduler. New repos get SMDA-only wiring. Wait for approval before first-time writes.
Create/update approved SMDA Tier-3 artifacts:
smda.config.yaml or .json with runtime version constraint, adapter ids,
sandbox provider choice, execution agent provider/model/effort, context paths,
quality gates, policy numbers, prompt override location, labels, and schema
package range;smda.config.local.* for secrets or local-only overrides;Execution: smda, Execution: smda-task, Execution: smda-roadmap,
Execution: smda-child, Execution: manual) without making Execution:
mandatory for every tracker item;smda-scheduler status
for parent/child phase and tracker_effects, and to the daemon controller
status for process liveness; do not tell agents to infer runtime truth from
Linear alone;.gitignore entries for runtime state/workspaces;.env) with the Linear adapter ids/secret —
populate per daemon-operations.md § 1 using a
read-only id fetch; never commit secrets;For refreshes, prefer the smallest diff that replaces stale runtime path references with plugin-bundled runtime/MCP references. Leave unrelated harness and tracker conventions untouched.
Do not copy product runtime code, adapter implementations, schema validators, workflow manifests, or report parsers into the target repo. Link to the product runtime and prompt/schema package instead.
Preserve user-authored content. Do not overwrite harness, tracker, or orchestrator files without diff approval.
Run non-live validation first:
smda-scheduler validate-config <config> --repo-root <repo>; for an
editable local checkout, use
uv run --project <smda-product-root> smda-scheduler validate-config <config> --repo-root <repo>;smda-scheduler validate-context <config> --repo-root <repo>; for an
editable local checkout, use
uv run --project <smda-product-root> smda-scheduler validate-context <config> --repo-root <repo>;smda-scheduler status) from Linear tracker projection and know where
pending/failed tracker effects are reported;Do not start daemons, create live tracker states, publish child issues, or run autonomous loops unless the user explicitly asks for the live step.
When the user explicitly asks for the live daemon step and validation has passed, the product command shape is:
smda-scheduler daemon <config> --repo-root <repo> --state Todo --label agent --owner smda-daemon
For an editable local checkout during product development:
uv run --project <smda-product-root> smda-scheduler daemon <config> --repo-root <repo> --state Todo --label agent --owner smda-daemon
--max-ticks defaults to 1 (one tick, then exit); continuous running is
external. For the env prerequisites, the daemon controller template
(start/stop/restart/status) with a single-daemon guard, and the macOS TCC caveat, see
daemon-operations.md. Run at most one daemon per repo —
the parent intake scan has no cross-process mutex.
Report: what was installed/refreshed;
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
2 plugins ship this exact skill · first indexed Aug 23, 2026
npx claudepluginhub hsiang-linc/smda --plugin smda-automation