/daedalus:scaffold <endpoint|component|job|migration|model> <name> [details]from daedalus
Scaffold a new endpoint, component, job, migration or model in the project's own framework (from the project profile and stack packs), with tests and implementation notes. Replaces /api-new.
Ships in daedalus. Installing the plugin adds it to Claude Code.
Mode: AGENT (Code) per ${CLAUDE_PLUGIN_ROOT}/skills/workflow-contract/rules/claude-code.md. Create the new unit and its tests in the detected stack; don't expand scope. Don't commit or push.
${CLAUDE_PLUGIN_ROOT}/skills/workflow-contract/rules/token-policy.md. Refine the request into a one-paragraph brief first.${CLAUDE_PLUGIN_ROOT}/skills/workflow-contract/rules/stack-knowledge.md. The profile decides the root and framework; the pack's ## Build and ## Test sections decide the idioms.api-design skill for endpoints, the test-strategy skill for tests.docs/plans/, implement to that plan; otherwise treat the request as minimal scope.$ARGUMENTS
Interpret the arguments as: <kind> <name> [details], where kind is one of:
| Kind | Typical layer | What it creates (in the project's framework) |
|---|---|---|
endpoint | api | route or controller + request/response schema + service call + tests |
component | ui | component + its states (loading, empty, error) + tests |
job | worker | handler, consumer or scheduled job + idempotency + tests |
migration | data | a new migration in the repo's migration tool + rollback notes |
model | api / data | entity or schema type + persistence mapping + tests |
Missing kind or name → ask once and stop.
.workflow/profile.json, choose the root whose layer fits the kind; if several fit, ask which. If the profile is missing, run detect-stack.py --stdout --root <repo> and use the output.## Build, ## Test; _generic.md if none).endpoint: follow api-design (status codes, one error shape, auth, pagination when it lists).job: make it idempotent, give external calls timeouts, and handle partial failure per the pack.migration: name and number it per the repo's tool; include down or rollback steps where the tool supports them. Never run it: migration commands are unsafe.test-strategy, in the root's framework.typecheck, lint, then the narrowest test. Run only the commands workflow.py config commands --json reports trusted: true and unsafe: false (the project-profile skill); ask the user before any other, or run /setup. Print each command first./argus --local to review, or /test-gen <target> for more tests."What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub iamjcabalejo/daedalus --plugin daedalus15 commands in this plugin
/apply-ticketTicket id (mandatory)Read one ticket (Linear, Jira or GitHub Issues, through the ticket adapter; read-only) and write a repo plan with one task block per detected layer. Stops after PLAN; Code and Review run via /project-manager after /clear. Never changes the ticket./argusRules to followReview a PR (or the current branch before a PR exists) with Argus, in any language or stack. Material findings only, graded critical / important / consider with Fix / Where / Cost, checked against the linked ticket. Stack packs come from the project profile plus the diff, and .workflow/config.yml (or the legacy .argus.yml) configures it. Saves docs/reviews/<repo>-<N>-<sha7>.md and its .json record; posts to GitHub only with --post./argus-scanRules to followScan a repo (or paths in it), in any language or stack, for exploitable security and business-logic issues with Argus (codebase-scan format). Writes docs/scans/<repo>-<date>.md with rule ids, exploitability, blast radius and a paste-ready fix brief. Read-only. Creates tickets only when you confirm./code-cleanupRules to followRefactor and clean up code following the project's own conventions and the stack pack for its language/code-optimizeCode to optimizeAnalyze and optimize code for performance, memory and efficiency in the project's own stack (measure first)/create-ticketWorkflowCreate one ticket (Linear, Jira or GitHub Issues, through the ticket adapter) with a crystal-clear description; clarify vague input first.Other plugins' commands for the same job