بنقرة واحدة
curdx-core
Use when handling curdx-flow flags, state files, delegation, execution loops, or skill entrypoint rules.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use when handling curdx-flow flags, state files, delegation, execution loops, or skill entrypoint rules.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use when a spec has tasks.md and should enter autonomous task execution.
Use when starting curdx-flow, creating a spec, resuming work, or routing intent.
Use when curdx-flow needs user decisions after codebase facts are discovered.
Use when a spec has design.md and needs implementation tasks.
Use when showing curdx-flow slash skills, options, workflow, or troubleshooting.
Fixture help skill
| name | curdx-core |
| description | Use when handling curdx-flow flags, state files, delegation, execution loops, or skill entrypoint rules. |
| when_to_use | Use when user mentions curdx-flow flags, quick mode, commit spec, max iterations, .curdx-state.json, execution loop, coordinator behavior, or subagent delegation. |
| version | 0.2.0 |
| user-invocable | false |
Core skill for curdx-flow plugin. Defines common arguments, execution modes, shared behaviors, and coordinator delegation rules.
The plugin ships a Bash-visible executable: curdx-flow.
Use it instead of repeating fragile shell snippets:
curdx-flow route --goal "$GOAL" --flags "$ARGUMENTS"
curdx-flow snapshot --spec "$SPEC" --goal "$GOAL"
curdx-flow snapshot --session-id "$CLAUDE_SESSION_ID"
curdx-flow specs bind-session "$SPEC" --session-id "$CLAUDE_SESSION_ID"
curdx-flow state merge "$SPEC_PATH/.curdx-state.json" '{"phase":"tasks"}'
curdx-flow tasks count "$SPEC_PATH/tasks.md"
curdx-flow dev detect
curdx-flow dev up
curdx-flow dev health
curdx-flow dev verify
curdx-flow dev down
curdx-flow verify run --phase execution --command "npm test" --spec "$SPEC_PATH"
curdx-flow doctor
The CLI is a thin wrapper around bundled TypeScript helpers under
${CLAUDE_PLUGIN_ROOT}/hooks/scripts/lib/. It is the default source of truth
for route facts, active spec facts, task counts, and state merge operations.
When Claude Code provides a session id, active spec resolution is session-aware:
session binding under .curdx/sessions/ wins over the global .current-spec
marker, while explicit --spec always wins over both.
curdx-flow verify run is the preferred way to perform final task/spec
verification because it runs the command and records the resulting
verificationBlocks.<phase> evidence in one step.
curdx-flow dev detect/up/health/verify/down is the preferred runtime surface
for last-mile local evidence. It detects frontend/backend roots, starts only
project-declared dev commands, checks health endpoints, runs baseline
verification commands, and stops processes that curdx-flow started.
curdx-flow doctor also reports browser verification readiness: detected E2E
scripts, Playwright dependencies/config files, chrome-devtools-mcp dependency
declaration, and local Chrome availability.
All curdx-flow public entrypoint skills support these standard arguments:
| Argument | Short | Description | Default |
|---|---|---|---|
--quick | -q | Skip interactive phases, auto-generate artifacts, start execution immediately | false |
--mode | Execution policy override: auto, fast, or deep | auto | |
--commit-spec | Commit and push spec files after each phase | true (normal), false (quick) | |
--no-commit-spec | Explicitly disable committing spec files | - | |
--max-task-iterations | -m | Max retries per failed task before stopping | 5 |
--max-global-iterations | Max whole-spec loop iterations before stopping | 30 | |
--fresh | -f | Force new spec/feature, overwrite if exists | false |
--task-granularity | Task granularity override: auto, coarse, standard, or fine | auto | |
--review | Review override: minimal, standard, or strict | policy-derived |
Argument precedence: --no-commit-spec > --commit-spec > mode default.
Every new spec runs deterministic policy classification before expensive model work:
curdx-flow route --goal "$GOAL" --flags "$ARGUMENTS"
Persist the JSON as .curdx-state.json::autoPolicy. Later phases must obey it
instead of asking the user to choose fast/deep. Policy controls:
/goal turn driver and deterministic Stop-hook gates/curdx-flow:* skill invocationawaitingApproval: true--quick)--commit-spec to override)curdx-flow uses .curdx-state.json for execution state. New state files use
version: 2; legacy state may be reinitialized rather than migrated. See
references/state-file-schema.md for the current schema.
Key fields: phase, taskIndex, totalTasks, taskIteration, maxTaskIterations, awaitingApproval.
Phase skills must start by running curdx-flow snapshot. Treat the snapshot's
gates list as blocking unless the current skill explicitly owns that gate.
Snapshots also carry recovery facts from .curdx/brain.jsonl: recent verifier
failures and the last official PostCompact summary. Hooks inject only compact
CURDX SPEC DATA capsules with pointers and state; they do not inject full
artifact bodies as instructions.
When commitSpec is true:
chore(<plugin>): commit spec files before implementationWhen commitSpec is false:
curdx-flow v3.0.0+ has a self-contained execution loop via the stop-hook. Companion plugins and MCPs improve routing, memory, docs, UI, browser proof, reasoning, and recovery, but the stop-hook loop itself does not delegate to an external orchestrator.
Key signals:
TASK_COMPLETE - executor finished taskALL_TASKS_COMPLETE - coordinator ends loopWhen taskIteration > maxTaskIterations: block task, suggest manual intervention.
If state file missing/invalid: output error, suggest re-running /curdx-flow:implement.
curdx-flow follows a consistent branch strategy:
The main agent is a coordinator, not an implementer. Delegate all work to subagents.
The coordinator's default disposition is fan out unless a cheaper path is provably sufficient. This implements Anthropic's canonical guidance — "Use [a subagent] when a side task would flood your main conversation with search results, logs, or file contents you won't reference again" (code.claude.com/docs/en/sub-agents).
Fan out by default when ANY of these hold:
${CLAUDE_PLUGIN_ROOT}/references/bounded-parallel-dispatch.md) all hold.Do NOT fan out when:
grep and Edit beat 30-60s subagent overhead.curdx-flow route told you).Hard rules when you do fan out:
Agent(...) calls in ONE message for true parallelism (anti-pattern #3, research domain).${CLAUDE_PLUGIN_ROOT}/references/prompt-optimization.md and ${CLAUDE_PLUGIN_ROOT}/references/agent-output-contract.md).Pre-spec coordinator default (the most common gap):
For product-inception, greenfield-spec, prototype, import-spec, or blocked-ask-user with non-empty intent.missingFacts, fan out a Discovery batch (1 claude-mem search + 1 Explore at .planning//docs//CLAUDE.md + N research-analyst, one per candidate stack or prior-art topic) BEFORE asking the user any question or writing any product-context artifact. See ${CLAUDE_PLUGIN_ROOT}/references/bounded-parallel-dispatch.md Discovery domain and ${CLAUDE_PLUGIN_ROOT}/skills/start/SKILL.md Pre-Question Discovery section.
curdx-flow is skills-only at the plugin surface.
/curdx-flow:* entries live in skills/<name>/SKILL.md.spec-workflow, curdx-core, and interview-framework.disable-model-invocation: true; let support skills handle automatic guidance.| Work Type | Delegate To |
|---|---|
| Research | Bounded parallel direct Agent(...) dispatch to research-analyst / Explore-style research |
| Requirements | product-manager subagent |
| Design | architect-reviewer subagent |
| Task planning | task-planner subagent |
| Task execution | spec-executor subagent |
Quick mode still requires delegation.