[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M786AGTRKAMRYSY6F1TQXG1T":3,"skill-same:01M786AGTRKAMRYSY6F1TQXG1T":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":48},"01M786AGTRKAMRYSY6F1TQXG1T","sp-constitution",null,"Use when project principles or development rules need to be created, revised, or realigned before further specification or planning work.","chenziyang110\u002Flaunchdeck","chenziyang110","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43693913?v=4","01M7863EBWK1D0P6A29YGEMAS4","Robin11","01M7863ECM1VB6RXDMHTW90D2T",0,"MIT","https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Flaunchdeck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsp-constitution\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: \"sp-constitution\"\ndescription: \"Use when project principles or development rules need to be created, revised, or realigned before further specification or planning work.\"\nargument-hint: \"Principles or values for the project constitution\"\ncompatibility: \"Requires spec-kit project structure with .specify\u002F directory\"\nmetadata:\n  author: \"github-spec-kit\"\n  source: \"templates\u002Fcommands\u002Fconstitution.md\"\nuser-invocable: true\n---\n## Invocation Syntax\n\n- In this integration, invoke workflow skills with `\u002Fsp-plan`-style syntax.\n- References such as `\u002Fsp.plan`, `\u002Fsp.tasks`, or `next_command: \u002Fsp.plan` are canonical workflow-state identifiers and handoff values.\n- Preserve those canonical state tokens exactly in artifacts and workflow state; do not rewrite them to this integration's invocation syntax.\n\n\n\n## Workflow Contract Summary\n\n- **When to use**: The project's governing principles need to be created or updated before downstream workflow work should continue.\n- **Primary objective**: Update `.specify\u002Fmemory\u002Fconstitution.md` after understanding the current project context.\n- **Primary outputs**: A finalized constitution plus a report of any dependent templates, shared-memory, docs, or workflow artifacts that may need separate follow-up.\n- **Default handoff**: \u002Fsp-specify for new work, or recommend the highest affected downstream stage (\u002Fsp-plan, \u002Fsp-tasks, or \u002Fsp-analyze) when a midstream amendment invalidates active artifacts.\n- **Execution note**: This summary is routing metadata only. Follow the full contract below end-to-end rather than inferring behavior from the description alone.\n\n## Blocked Exit Contract\n\nIf blocked after safe recovery, read and follow\n`.specify\u002Ftemplates\u002Fworkflow-blocker-template.md` and its JSON schema. Never\nreturn only an error or “ask a human”; preserve state and keep agent-capable\nrepair agent-owned. Set `human_action_required: true` only for authority,\ncredentials, protected systems, human decisions\u002Freviews, or physical access.\nTailor steps, expected results, failure paths, evidence, and resume action to\nCI, visual review, or product decisions. Never claim completion.\n\n## User Input\n\n```text\n$ARGUMENTS\n```\n\nYou **MUST** consider the user input before proceeding (if not empty).\n\n## Objective\n\nCreate or update the project constitution as the authoritative rule layer for\ndownstream specification, planning, and execution work.\n\n## Constitution-Only Write Boundary\n\nThis workflow writes only `.specify\u002Fmemory\u002Fconstitution.md`.\n\nUse templates, command files, docs, project rules, learning files,\nworkflow-state files, project cognition artifacts, generated assets, and active\nfeature artifacts as read-only context. Do not modify them, synchronize them,\nor run mutation commands for them unless the user explicitly expands the write\nscope in the same request.\n\nIf the amended constitution appears to require downstream changes, report those\nchanges as pending follow-up in the Sync Impact Report. The report is the\nhandoff mechanism; this command does not apply the follow-up work.\n\n## Context\n\n- Primary inputs: the current constitution, the user's requested principle\n  changes, the consume-only Learning CLI intake, and the smallest repository\n  context needed to derive missing values.\n- Constitution amendments may invalidate downstream planning artifacts, active\n  workflow state, or lower-order project memory. Treat those as re-entry\n  signals to report, not as permission to edit additional files.\n- Versioning and governance metadata are part of the contract, not optional\n  decoration.\n\n## Process\n\n- Run `uvx --from git+https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Fspec-kit-plus.git@4a631657f75460886dbd12ebe48b14fc11cfe0bf specify learning start --command constitution --format json`\n  and expand only selected matching Learning through `show_argv`.\n- Load the current constitution before broader repository context. Do not parse\n  Learning storage files directly.\n- If the repository already has code and repo-derived evidence is needed, read\n  `.specify\u002Fproject-cognition\u002Fstatus.json` plus the smallest relevant\n  query-backed cognition artifact first to assess map freshness as advisory\n  navigation before trusting any compatibility\u002Fexport artifact.\n- If cognition is stale or weak for an ordinary existing-baseline touched area,\n  continue from live repository evidence and recommend `\u002Fsp-map-update` only as\n  external\u002Fmanual map maintenance when the user asks for map maintenance or\n  before a separate map-maintenance pass. Use `\u002Fsp-map-scan` followed by\n  `\u002Fsp-map-build` only for first\u002Fmissing\u002Funusable baseline, schema failure,\n  zero active-generation `path_index` rows, `explicit_rebuild_requested`, or\n  `baseline_identity_invalid`.\n- Load the current constitution and identify unresolved placeholders or\n  requested changes.\n- Derive the right version bump and updated governance metadata.\n- Rewrite only `.specify\u002Fmemory\u002Fconstitution.md`.\n- If a principle change appears to invalidate active `spec.md`, `plan.md`,\n  `tasks.md`, or `workflow-state.md`, report the highest affected downstream\n  stage instead of editing those artifacts.\n\n## Output Contract\n\n- Write a finalized constitution with a Sync Impact Report.\n- Record dependent templates, guidance, lower-order project memory, workflow\n  state, and cognition artifacts as pending follow-up items when they need\n  alignment.\n- Surface the exact downstream re-entry path (`\u002Fsp-specify`, `\u002Fsp-plan`,\n  `\u002Fsp-tasks`, or `\u002Fsp-analyze`) when an amendment invalidates active work.\n- Surface any follow-up items if a value must remain intentionally deferred.\n\n## Guardrails\n\n- Do not leave unexplained placeholders behind.\n- Respect the semantic-versioning rules for constitution changes.\n- Do not partially update downstream guidance. Report pending follow-up instead.\n- Do not always hand off directly to `\u002Fsp-specify`; use the highest affected\n  downstream stage when the amendment is midstream.\n- Do not leave project rules or learnings that conflict with the amended\n  constitution unreported in the Sync Impact Report.\n\n## Mandatory Subagent Execution\n\nAll substantive tasks in ordinary `sp-*` workflows default to and must use subagents.\n\nThe leader orchestrates: route, split tasks, prepare task contracts, dispatch\nsubagents, wait for structured handoffs, integrate results, verify, and keep\nall writes within the constitution-only scope defined below.\n\nBefore dispatch, every subagent lane needs a task contract with objective, authoritative inputs, allowed read\u002Fwrite scope, forbidden paths, acceptance checks, verification evidence, and structured handoff format.\n\nUse `execution_model: subagent-mandatory`.\nUse `dispatch_shape: one-subagent | parallel-subagents`.\nUse `execution_surface: native-subagents`.\n\n\n## Outline\n\nYou are updating the project constitution at `.specify\u002Fmemory\u002Fconstitution.md`.\nThis file may already contain a fully initialized default constitution, or it\nmay still contain legacy placeholder tokens in square brackets (for example\n`[PROJECT_NAME]`). Your job is to refine the document into a concrete project\nconstitution based on the user's request and the current project context.\n\n**Write scope**: This command writes only `.specify\u002Fmemory\u002Fconstitution.md`.\nDo not modify templates, command files, docs, project rules, learning files,\nworkflow-state files, project cognition artifacts, or active feature artifacts\nunless the user explicitly asks for those additional edits in the same request.\nWhen the amended constitution appears to require changes elsewhere, record them\nas pending follow-up items in the Sync Impact Report instead of applying them.\n\n**Note**: If `.specify\u002Fmemory\u002Fconstitution.md` does not exist yet, it should\nhave been initialized from `.specify\u002Ftemplates\u002Fconstitution-template.md`\nduring project setup. That project-local template may be the default product\nconstitution or a built-in profile selected during `uvx --from git+https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Fspec-kit-plus.git@4a631657f75460886dbd12ebe48b14fc11cfe0bf specify init`. If it is\nmissing, copy the template first.\n\n## Project Learning\n\nThe CLI is the only agent-facing Learning read surface:\n\n1. Run `uvx --from git+https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Fspec-kit-plus.git@4a631657f75460886dbd12ebe48b14fc11cfe0bf specify learning start --command \u003Cclassic-command-name> --format json` before deeper non-trivial work.\n2. Select summaries by applicability and triggers; use `uvx --from git+https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Fspec-kit-plus.git@4a631657f75460886dbd12ebe48b14fc11cfe0bf specify learning list --command \u003Cclassic-command-name> --format json` only to filter or page.\n3. Execute one matching card's `show_argv`. Do not parse Learning storage.\n\n`start`, `list`, and `show` are read-only. Current repository evidence,\n`.specify\u002Fmemory\u002Fconstitution.md`, and explicit user direction override stale or\ncandidate Learning.\n\nAt closeout, corrections, retries, route changes, recovery, false leads, hidden\ndependencies, validation\u002Ftooling\u002Fstate\u002Fcognition gaps, constraints, and near\nmisses are capture signals. Prefer `uvx --from git+https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Fspec-kit-plus.git@4a631657f75460886dbd12ebe48b14fc11cfe0bf specify learning capture-auto`\nfrom owning state; manual capture includes summary, problem, action, triggers,\nsuccess criteria, avoid items, exceptions, and evidence.\n\n- `fast`: skip unless the task escalates.\n- `accept`, `analyze`, `ask`, `auto`, `constitution`, `explain`,\n  `implement-teams`, `taskstoissues`, and `team`: consume-only; do not violate\n  their write boundaries to capture.\n- Other non-trivial workflows: consume before deeper work; capture reusable\n  signals at closeout or record a no-learning decision.\n\nThe `policy` returned by the CLI is authoritative when prompt wording drifts.\n\nWhen constitution work exposes a reusable signal, record it as a pending\nLearning follow-up in the Sync Impact Report. This consume-only command must not\ncapture or promote lower-order Learning inline.\nReport project rules or learnings that conflict with the amended constitution\nas pending follow-up work with explicit owners.\n\n## Repository Context and Navigation Freshness\n\n- If repo-derived evidence is needed, read `.specify\u002Fproject-cognition\u002Fstatus.json` plus the smallest relevant query bundle or graph artifact first to assess map freshness as advisory navigation before trusting any compatibility\u002Fexport artifact.\n- If the navigation system is stale or weak for an existing usable baseline, continue with live repository evidence and recommend `\u002Fsp-map-update` only as external\u002Fmanual map maintenance when the user asks for map maintenance or before a separate map-maintenance pass rather than fabricating repository context. That route is external map maintenance, not constitution closeout ownership. Use `\u002Fsp-map-scan` followed by `\u002Fsp-map-build` only for first\u002Fmissing\u002Funusable baseline, schema failure, schema v1 or old broad-schema rebuild-required readiness, zero active-generation `path_index` rows, missing or invalid `alias_index`, `explicit_rebuild_requested`, or `baseline_identity_invalid`.\n- A constitution-only amendment does not own project cognition mutation closeout.\n  Do not run `project-cognition update`, `project-cognition mark-dirty`, or\n  related mutation commands from this workflow unless the user explicitly asked\n  for project cognition maintenance. If the amendment may affect cognition\n  coverage or compatibility\u002Fexport output, report that follow-up instead.\n- sp-map-update is for manual\u002Fexternal maintenance and follow-up repair, not\n  routine cleanup for constitution-only changes.\n- If the amendment changes structure, ownership, workflows, testing strategy, integrations, or operator expectations, mark the related project cognition compatibility\u002Fexport surface for refresh in the Sync Impact Report even if the constitution update itself is complete. Use this exact framing: mark the related project cognition compatibility\u002Fexport surface for refresh.\n\n## Downstream Re-entry Contract\n\n- Inspect active downstream artifacts and phase locks before finalizing the\n  amendment. At minimum, review any active `spec.md`, `plan.md`, `tasks.md`,\n  or `workflow-state.md` package that relies on the current constitution.\n- If a principle change appears to invalidate active `spec.md`, `plan.md`,\n  `tasks.md`, or `workflow-state.md`, record the highest affected downstream\n  stage and exact re-entry path in the Sync Impact Report.\n- Do not always hand off directly to `\u002Fsp-specify`. Midstream amendments may\n  require `\u002Fsp-plan`, `\u002Fsp-tasks`, or `\u002Fsp-analyze` when higher-order feature\n  artifacts already exist.\n\n## Workflow Phase Lock (When an Active Feature Is Affected)\n\n- If the amendment changes an active feature package, treat the affected\n  `FEATURE_DIR\u002Fworkflow-state.md` as read-only context for determining the\n  downstream re-entry path.\n- Read `.specify\u002Ftemplates\u002Fworkflow-state-template.md`.\n- When an active feature package is affected, do not update or create\n  `FEATURE_DIR\u002Fworkflow-state.md`. Instead, report the recommended state values:\n  - `active_command: sp-constitution`\n  - `phase_mode: planning-only`\n  - a `next_action` that points to the highest affected downstream stage after\n    the constitution amendment lands\n  - a `next_command` of `\u002Fsp-specify`, `\u002Fsp-plan`, `\u002Fsp-tasks`, or\n    `\u002Fsp-analyze` as required by the affected artifacts\n- Before final handoff from a constitution amendment that affects an active\n  feature package, verify the amended `.specify\u002Fmemory\u002Fconstitution.md` and\n  list any downstream `workflow-state.md` follow-up needed for resume safety.\n- Before any compaction-risk transition during a constitution amendment that\n  affects an active feature package, keep the downstream re-entry path in the\n  Sync Impact Report so it survives session recovery without mutating feature\n  artifacts.\n\nFollow this execution flow:\n\n1. Load the existing constitution at `.specify\u002Fmemory\u002Fconstitution.md`.\n   - Identify every unresolved placeholder token of the form\n     `[ALL_CAPS_IDENTIFIER]`, if any remain.\n   - Treat existing concrete principles as the current baseline unless the user\n     asks to replace them.\n   - **IMPORTANT**: The user might require fewer or more principles than the\n     ones used in the default constitution. If a number is specified, respect\n     that and update the document accordingly.\n\n2. Collect or derive missing and revised values:\n   - If user input (conversation) supplies a value, use it.\n   - Otherwise infer from existing repo context (README, docs,\n     project cognition runtime truth, compatibility\u002Fexport references when explicitly relevant, prior constitution versions if embedded).\n   - For governance dates: `RATIFICATION_DATE` is the original adoption date\n     (if unknown ask or mark TODO), `LAST_AMENDED_DATE` is today if changes\n     are made, otherwise keep the previous value.\n   - `CONSTITUTION_VERSION` must increment according to semantic versioning\n     rules:\n     - MAJOR: Backward incompatible governance\u002Fprinciple removals or\n       redefinitions.\n     - MINOR: New principle\u002Fsection added or materially expanded guidance.\n     - PATCH: Clarifications, wording, typo fixes, non-semantic refinements.\n   - If the version bump type is ambiguous, propose reasoning before\n     finalizing.\n\n3. Draft the updated constitution content:\n   - Replace every unresolved placeholder with concrete text. No unexplained\n     bracketed tokens should remain.\n   - Preserve heading hierarchy. Remove stale instructional comments once they\n     no longer add value.\n   - Ensure each Principle section has a succinct name, concrete rules, and\n     explicit rationale where helpful.\n   - Ensure Governance lists amendment procedure, versioning policy, and\n     compliance review expectations.\n\n4. Consistency review checklist (read\u002Freport only):\n   - Read `.specify\u002Ftemplates\u002Fplan-template.md` and ensure any\n     \"Constitution Check\" or rules align with updated principles.\n   - Read `.specify\u002Ftemplates\u002Fspec-template.md` for scope and requirements\n     alignment. Report it if the constitution adds or removes mandatory\n     sections or constraints that the template does not reflect.\n   - Read `.specify\u002Ftemplates\u002Ftasks-template.md` and ensure task\n     categorization reflects new or removed principle-driven task types\n     (for example observability, versioning, or testing discipline).\n   - Read each command file in `.specify\u002Ftemplates\u002Fcommands\u002F*.md` (including\n     this one) to verify no outdated references remain when generic guidance is\n     required.\n   - Use the consume-only Learning CLI intake and selected `show` records to\n     report any lower-order guidance that now conflicts with the amended constitution.\n- If the amendment changes navigation, structure, ownership, workflow,\n  testing, integration, or operations expectations, mark the runtime\n  handbooks for refresh and include `.specify\u002Fproject-cognition\u002Fstatus.json`\n  in the propagation review.\n   - Read any runtime guidance docs (for example `README.md`,\n     `docs\u002Fquickstart.md`, or agent-specific guidance files if present). Report\n     references to principles that changed instead of updating those files.\n\n5. Produce a Sync Impact Report (prepend as an HTML comment at the top of the\n   constitution file after update):\n   - Version change: old -> new\n   - List of modified principles (old title -> new title if renamed)\n   - Added sections\n   - Removed sections\n   - Templates, docs, shared memory, workflow-state, or project cognition\n     surfaces requiring separate follow-up (`pending`) with file paths\n   - Downstream re-entry path: `\u002Fsp-specify`, `\u002Fsp-plan`, `\u002Fsp-tasks`, or\n     `\u002Fsp-analyze`, with the highest affected downstream stage called out\n     explicitly\n   - Follow-up TODOs if any placeholders are intentionally deferred\n\n6. Validation before final output:\n   - No remaining unexplained bracket tokens\n   - Version line matches the report\n   - Dates use ISO format `YYYY-MM-DD`\n   - Principles are declarative, testable, and free of vague language\n     (`should` -> replace with MUST\u002FSHOULD rationale where appropriate)\n\n7. Write the completed constitution back to\n   `.specify\u002Fmemory\u002Fconstitution.md` (overwrite).\n\n   This is the only file this command may write unless the user explicitly\n   expanded the write scope in the same request.\n\n8. Output a final summary to the user with:\n   - New version and bump rationale\n   - The highest affected downstream stage and why that is the correct\n     re-entry point\n   - Any files flagged for manual follow-up\n   - Suggested commit message (for example\n     `docs: amend constitution to vX.Y.Z (principle additions + governance update)`)\n\nFormatting and Style Requirements:\n\n- Use Markdown headings exactly as in the template (do not demote or promote\n  levels).\n- Wrap long rationale lines to keep readability (under 100 chars ideally) but\n  do not hard enforce with awkward breaks.\n- Keep a single blank line between sections.\n- Avoid trailing whitespace.\n\nIf the user supplies partial updates (for example only one principle revision),\nstill perform validation and version decision steps.\n\nIf critical info is missing (for example the ratification date is truly\nunknown), insert `TODO(\u003CFIELD_NAME>): explanation` and include it in the Sync\nImpact Report under deferred items.\n\nDo not create a new template; always operate on the existing\n`.specify\u002Fmemory\u002Fconstitution.md` file.\n\n## Claude Code Subagent Capability Discovery\n\n- Execution model: preserve the workflow's existing `subagent-mandatory`, `subagents-first`, `adaptive`, or `subagent-assisted` policy.\n- Dispatch shape: preserve the workflow's existing dispatch shape; use `subagent-blocked` only after the discovery step below fails or is unsafe.\n- Execution surface: prefer `native-subagents` when the current runtime supports it; use `none` only after recording the unavailable or unsafe surface.\n- Native subagent capability discovery: Before recording `subagent-blocked`, check the active tool surface for the integration-native subagent or task-dispatch entrypoint and record the exact missing surface if unavailable.\n- Do not record `subagent-blocked` until this capability discovery step is complete and the exact unavailable or unsafe surface is recorded.\n- Native subagent dispatch: Dispatch subagents through the integration's native subagent support using the shared prompt contract.\n- Join behavior: Use the integration-native join point, then integrate results back on the leader path.\n- Preserve this workflow's existing packet, handoff, artifact, and result schema; this section only governs capability discovery before dispatch or blocked-state recording.\n","## Invocation Syntax\n\n- In this integration, invoke workflow skills with `\u002Fsp-plan`-style syntax.\n- References such as `\u002Fsp.plan`, `\u002Fsp.tasks`, or `next_command: \u002Fsp.plan` are canonical workflow-state identifiers and handoff values.\n- Preserve those canonical state tokens exactly in artifacts and workflow state; do not rewrite them to this integration's invocation syntax.\n\n\n\n## Workflow Contract Summary\n\n- **When to use**: The project's governing principles need to be created or updated before downstream workflow work should continue.\n- **Primary objective**: Update `.specify\u002Fmemory\u002Fconstitution.md` after understanding the current project context.\n- **Primary outputs**: A finalized constitution plus a report of any dependent templates, shared-memory, docs, or workflow artifacts that may need separate follow-up.\n- **Default handoff**: \u002Fsp-specify for new work, or recommend the highest affected downstream stage (\u002Fsp-plan, \u002Fsp-tasks, or \u002Fsp-analyze) when a midstream amendment invalidates active artifacts.\n- **Execution note**: This summary is routing metadata only. Follow the full contract below end-to-end rather than inferring behavior from the description alone.\n\n## Blocked Exit Contract\n\nIf blocked after safe recovery, read and follow\n`.specify\u002Ftemplates\u002Fworkflow-blocker-template.md` and its JSON schema. Never\nreturn only an error or “ask a human”; preserve state and keep agent-capable\nrepair agent-owned. Set `human_action_required: true` only for authority,\ncredentials, protected systems, human decisions\u002Freviews, or physical access.\nTailor steps, expected results, failure paths, evidence, and resume action to\nCI, visual review, or product decisions. Never claim completion.\n\n## User Input\n\n```text\n$ARGUMENTS\n```\n\nYou **MUST** consider the user input before proceeding (if not empty).\n\n## Objective\n\nCreate or update the project constitution as the authoritative rule layer for\ndownstream specification, planning, and execution work.\n\n## Constitution-Only Write Boundary\n\nThis workflow writes only `.specify\u002Fmemory\u002Fconstitution.md`.\n\nUse templates, command files, docs, project rules, learning files,\nworkflow-state files, project cognition artifacts, generated assets, and active\nfeature artifacts as read-only context. Do not modify them, synchronize them,\nor run mutation commands for them unless the user explicitly expands the write\nscope in the same request.\n\nIf the amended constitution appears to require downstream changes, report those\nchanges as pending follow-up in the Sync Impact Report. The report is the\nhandoff mechanism; this command does not apply the follow-up work.\n\n## Context\n\n- Primary inputs: the current constitution, the user's requested principle\n  changes, the consume-only Learning CLI intake, and the smallest repository\n  context needed to derive missing values.\n- Constitution amendments may invalidate downstream planning artifacts, active\n  workflow state, or lower-order project memory. Treat those as re-entry\n  signals to report, not as permission to edit additional files.\n- Versioning and governance metadata are part of the contract, not optional\n  decoration.\n\n## Process\n\n- Run `uvx --from git+https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Fspec-kit-plus.git@4a631657f75460886dbd12ebe48b14fc11cfe0bf specify learning start --command constitution --format json`\n  and expand only selected matching Learning through `show_argv`.\n- Load the current constitution before broader repository context. Do not parse\n  Learning storage files directly.\n- If the repository already has code and repo-derived evidence is needed, read\n  `.specify\u002Fproject-cognition\u002Fstatus.json` plus the smallest relevant\n  query-backed cognition artifact first to assess map freshness as advisory\n  navigation before trusting any compatibility\u002Fexport artifact.\n- If cognition is stale or weak for an ordinary existing-baseline touched area,\n  continue from live repository evidence and recommend `\u002Fsp-map-update` only as\n  external\u002Fmanual map maintenance when the user asks for map maintenance or\n  before a separate map-maintenance pass. Use `\u002Fsp-map-scan` followed by\n  `\u002Fsp-map-build` only for first\u002Fmissing\u002Funusable baseline, schema failure,\n  zero active-generation `path_index` rows, `explicit_rebuild_requested`, or\n  `baseline_identity_invalid`.\n- Load the current constitution and identify unresolved placeholders or\n  requested changes.\n- Derive the right version bump and updated governance metadata.\n- Rewrite only `.specify\u002Fmemory\u002Fconstitution.md`.\n- If a principle change appears to invalidate active `spec.md`, `plan.md`,\n  `tasks.md`, or `workflow-state.md`, report the highest affected downstream\n  stage instead of editing those artifacts.\n\n## Output Contract\n\n- Write a finalized constitution with a Sync Impact Report.\n- Record dependent templates, guidance, lower-order project memory, workflow\n  state, and cognition artifacts as pending follow-up items when they need\n  alignment.\n- Surface the exact downstream re-entry path (`\u002Fsp-specify`, `\u002Fsp-plan`,\n  `\u002Fsp-tasks`, or `\u002Fsp-analyze`) when an amendment invalidates active work.\n- Surface any follow-up items if a value must remain intentionally deferred.\n\n## Guardrails\n\n- Do not leave unexplained placeholders behind.\n- Respect the semantic-versioning rules for constitution changes.\n- Do not partially update downstream guidance. Report pending follow-up instead.\n- Do not always hand off directly to `\u002Fsp-specify`; use the highest affected\n  downstream stage when the amendment is midstream.\n- Do not leave project rules or learnings that conflict with the amended\n  constitution unreported in the Sync Impact Report.\n\n## Mandatory Subagent Execution\n\nAll substantive tasks in ordinary `sp-*` workflows default to and must use subagents.\n\nThe leader orchestrates: route, split tasks, prepare task contracts, dispatch\nsubagents, wait for structured handoffs, integrate results, verify, and keep\nall writes within the constitution-only scope defined below.\n\nBefore dispatch, every subagent lane needs a task contract with objective, authoritative inputs, allowed read\u002Fwrite scope, forbidden paths, acceptance checks, verification evidence, and structured handoff format.\n\nUse `execution_model: subagent-mandatory`.\nUse `dispatch_shape: one-subagent | parallel-subagents`.\nUse `execution_surface: native-subagents`.\n\n\n## Outline\n\nYou are updating the project constitution at `.specify\u002Fmemory\u002Fconstitution.md`.\nThis file may already contain a fully initialized default constitution, or it\nmay still contain legacy placeholder tokens in square brackets (for example\n`[PROJECT_NAME]`). Your job is to refine the document into a concrete project\nconstitution based on the user's request and the current project context.\n\n**Write scope**: This command writes only `.specify\u002Fmemory\u002Fconstitution.md`.\nDo not modify templates, command files, docs, project rules, learning files,\nworkflow-state files, project cognition artifacts, or active feature artifacts\nunless the user explicitly asks for those additional edits in the same request.\nWhen the amended constitution appears to require changes elsewhere, record them\nas pending follow-up items in the Sync Impact Report instead of applying them.\n\n**Note**: If `.specify\u002Fmemory\u002Fconstitution.md` does not exist yet, it should\nhave been initialized from `.specify\u002Ftemplates\u002Fconstitution-template.md`\nduring project setup. That project-local template may be the default product\nconstitution or a built-in profile selected during `uvx --from git+https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Fspec-kit-plus.git@4a631657f75460886dbd12ebe48b14fc11cfe0bf specify init`. If it is\nmissing, copy the template first.\n\n## Project Learning\n\nThe CLI is the only agent-facing Learning read surface:\n\n1. Run `uvx --from git+https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Fspec-kit-plus.git@4a631657f75460886dbd12ebe48b14fc11cfe0bf specify learning start --command \u003Cclassic-command-name> --format json` before deeper non-trivial work.\n2. Select summaries by applicability and triggers; use `uvx --from git+https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Fspec-kit-plus.git@4a631657f75460886dbd12ebe48b14fc11cfe0bf specify learning list --command \u003Cclassic-command-name> --format json` only to filter or page.\n3. Execute one matching card's `show_argv`. Do not parse Learning storage.\n\n`start`, `list`, and `show` are read-only. Current repository evidence,\n`.specify\u002Fmemory\u002Fconstitution.md`, and explicit user direction override stale or\ncandidate Learning.\n\nAt closeout, corrections, retries, route changes, recovery, false leads, hidden\ndependencies, validation\u002Ftooling\u002Fstate\u002Fcognition gaps, constraints, and near\nmisses are capture signals. Prefer `uvx --from git+https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Fspec-kit-plus.git@4a631657f75460886dbd12ebe48b14fc11cfe0bf specify learning capture-auto`\nfrom owning state; manual capture includes summary, problem, action, triggers,\nsuccess criteria, avoid items, exceptions, and evidence.\n\n- `fast`: skip unless the task escalates.\n- `accept`, `analyze`, `ask`, `auto`, `constitution`, `explain`,\n  `implement-teams`, `taskstoissues`, and `team`: consume-only; do not violate\n  their write boundaries to capture.\n- Other non-trivial workflows: consume before deeper work; capture reusable\n  signals at closeout or record a no-learning decision.\n\nThe `policy` returned by the CLI is authoritative when prompt wording drifts.\n\nWhen constitution work exposes a reusable signal, record it as a pending\nLearning follow-up in the Sync Impact Report. This consume-only command must not\ncapture or promote lower-order Learning inline.\nReport project rules or learnings that conflict with the amended constitution\nas pending follow-up work with explicit owners.\n\n## Repository Context and Navigation Freshness\n\n- If repo-derived evidence is needed, read `.specify\u002Fproject-cognition\u002Fstatus.json` plus the smallest relevant query bundle or graph artifact first to assess map freshness as advisory navigation before trusting any compatibility\u002Fexport artifact.\n- If the navigation system is stale or weak for an existing usable baseline, continue with live repository evidence and recommend `\u002Fsp-map-update` only as external\u002Fmanual map maintenance when the user asks for map maintenance or before a separate map-maintenance pass rather than fabricating repository context. That route is external map maintenance, not constitution closeout ownership. Use `\u002Fsp-map-scan` followed by `\u002Fsp-map-build` only for first\u002Fmissing\u002Funusable baseline, schema failure, schema v1 or old broad-schema rebuild-required readiness, zero active-generation `path_index` rows, missing or invalid `alias_index`, `explicit_rebuild_requested`, or `baseline_identity_invalid`.\n- A constitution-only amendment does not own project cognition mutation closeout.\n  Do not run `project-cognition update`, `project-cognition mark-dirty`, or\n  related mutation commands from this workflow unless the user explicitly asked\n  for project cognition maintenance. If the amendment may affect cognition\n  coverage or compatibility\u002Fexport output, report that follow-up instead.\n- sp-map-update is for manual\u002Fexternal maintenance and follow-up repair, not\n  routine cleanup for constitution-only changes.\n- If the amendment changes structure, ownership, workflows, testing strategy, integrations, or operator expectations, mark the related project cognition compatibility\u002Fexport surface for refresh in the Sync Impact Report even if the constitution update itself is complete. Use this exact framing: mark the related project cognition compatibility\u002Fexport surface for refresh.\n\n## Downstream Re-entry Contract\n\n- Inspect active downstream artifacts and phase locks before finalizing the\n  amendment. At minimum, review any active `spec.md`, `plan.md`, `tasks.md`,\n  or `workflow-state.md` package that relies on the current constitution.\n- If a principle change appears to invalidate active `spec.md`, `plan.md`,\n  `tasks.md`, or `workflow-state.md`, record the highest affected downstream\n  stage and exact re-entry path in the Sync Impact Report.\n- Do not always hand off directly to `\u002Fsp-specify`. Midstream amendments may\n  require `\u002Fsp-plan`, `\u002Fsp-tasks`, or `\u002Fsp-analyze` when higher-order feature\n  artifacts already exist.\n\n## Workflow Phase Lock (When an Active Feature Is Affected)\n\n- If the amendment changes an active feature package, treat the affected\n  `FEATURE_DIR\u002Fworkflow-state.md` as read-only context for determining the\n  downstream re-entry path.\n- Read `.specify\u002Ftemplates\u002Fworkflow-state-template.md`.\n- When an active feature package is affected, do not update or create\n  `FEATURE_DIR\u002Fworkflow-state.md`. Instead, report the recommended state values:\n  - `active_command: sp-constitution`\n  - `phase_mode: planning-only`\n  - a `next_action` that points to the highest affected downstream stage after\n    the constitution amendment lands\n  - a `next_command` of `\u002Fsp-specify`, `\u002Fsp-plan`, `\u002Fsp-tasks`, or\n    `\u002Fsp-analyze` as required by the affected artifacts\n- Before final handoff from a constitution amendment that affects an active\n  feature package, verify the amended `.specify\u002Fmemory\u002Fconstitution.md` and\n  list any downstream `workflow-state.md` follow-up needed for resume safety.\n- Before any compaction-risk transition during a constitution amendment that\n  affects an active feature package, keep the downstream re-entry path in the\n  Sync Impact Report so it survives session recovery without mutating feature\n  artifacts.\n\nFollow this execution flow:\n\n1. Load the existing constitution at `.specify\u002Fmemory\u002Fconstitution.md`.\n   - Identify every unresolved placeholder token of the form\n     `[ALL_CAPS_IDENTIFIER]`, if any remain.\n   - Treat existing concrete principles as the current baseline unless the user\n     asks to replace them.\n   - **IMPORTANT**: The user might require fewer or more principles than the\n     ones used in the default constitution. If a number is specified, respect\n     that and update the document accordingly.\n\n2. Collect or derive missing and revised values:\n   - If user input (conversation) supplies a value, use it.\n   - Otherwise infer from existing repo context (README, docs,\n     project cognition runtime truth, compatibility\u002Fexport references when explicitly relevant, prior constitution versions if embedded).\n   - For governance dates: `RATIFICATION_DATE` is the original adoption date\n     (if unknown ask or mark TODO), `LAST_AMENDED_DATE` is today if changes\n     are made, otherwise keep the previous value.\n   - `CONSTITUTION_VERSION` must increment according to semantic versioning\n     rules:\n     - MAJOR: Backward incompatible governance\u002Fprinciple removals or\n       redefinitions.\n     - MINOR: New principle\u002Fsection added or materially expanded guidance.\n     - PATCH: Clarifications, wording, typo fixes, non-semantic refinements.\n   - If the version bump type is ambiguous, propose reasoning before\n     finalizing.\n\n3. Draft the updated constitution content:\n   - Replace every unresolved placeholder with concrete text. No unexplained\n     bracketed tokens should remain.\n   - Preserve heading hierarchy. Remove stale instructional comments once they\n     no longer add value.\n   - Ensure each Principle section has a succinct name, concrete rules, and\n     explicit rationale where helpful.\n   - Ensure Governance lists amendment procedure, versioning policy, and\n     compliance review expectations.\n\n4. Consistency review checklist (read\u002Freport only):\n   - Read `.specify\u002Ftemplates\u002Fplan-template.md` and ensure any\n     \"Constitution Check\" or rules align with updated principles.\n   - Read `.specify\u002Ftemplates\u002Fspec-template.md` for scope and requirements\n     alignment. Report it if the constitution adds or removes mandatory\n     sections or constraints that the template does not reflect.\n   - Read `.specify\u002Ftemplates\u002Ftasks-template.md` and ensure task\n     categorization reflects new or removed principle-driven task types\n     (for example observability, versioning, or testing discipline).\n   - Read each command file in `.specify\u002Ftemplates\u002Fcommands\u002F*.md` (including\n     this one) to verify no outdated references remain when generic guidance is\n     required.\n   - Use the consume-only Learning CLI intake and selected `show` records to\n     report any lower-order guidance that now conflicts with the amended constitution.\n- If the amendment changes navigation, structure, ownership, workflow,\n  testing, integration, or operations expectations, mark the runtime\n  handbooks for refresh and include `.specify\u002Fproject-cognition\u002Fstatus.json`\n  in the propagation review.\n   - Read any runtime guidance docs (for example `README.md`,\n     `docs\u002Fquickstart.md`, or agent-specific guidance files if present). Report\n     references to principles that changed instead of updating those files.\n\n5. Produce a Sync Impact Report (prepend as an HTML comment at the top of the\n   constitution file after update):\n   - Version change: old -> new\n   - List of modified principles (old title -> new title if renamed)\n   - Added sections\n   - Removed sections\n   - Templates, docs, shared memory, workflow-state, or project cognition\n     surfaces requiring separate follow-up (`pending`) with file paths\n   - Downstream re-entry path: `\u002Fsp-specify`, `\u002Fsp-plan`, `\u002Fsp-tasks`, or\n     `\u002Fsp-analyze`, with the highest affected downstream stage called out\n     explicitly\n   - Follow-up TODOs if any placeholders are intentionally deferred\n\n6. Validation before final output:\n   - No remaining unexplained bracket tokens\n   - Version line matches the report\n   - Dates use ISO format `YYYY-MM-DD`\n   - Principles are declarative, testable, and free of vague language\n     (`should` -> replace with MUST\u002FSHOULD rationale where appropriate)\n\n7. Write the completed constitution back to\n   `.specify\u002Fmemory\u002Fconstitution.md` (overwrite).\n\n   This is the only file this command may write unless the user explicitly\n   expanded the write scope in the same request.\n\n8. Output a final summary to the user with:\n   - New version and bump rationale\n   - The highest affected downstream stage and why that is the correct\n     re-entry point\n   - Any files flagged for manual follow-up\n   - Suggested commit message (for example\n     `docs: amend constitution to vX.Y.Z (principle additions + governance update)`)\n\nFormatting and Style Requirements:\n\n- Use Markdown headings exactly as in the template (do not demote or promote\n  levels).\n- Wrap long rationale lines to keep readability (under 100 chars ideally) but\n  do not hard enforce with awkward breaks.\n- Keep a single blank line between sections.\n- Avoid trailing whitespace.\n\nIf the user supplies partial updates (for example only one principle revision),\nstill perform validation and version decision steps.\n\nIf critical info is missing (for example the ratification date is truly\nunknown), insert `TODO(\u003CFIELD_NAME>): explanation` and include it in the Sync\nImpact Report under deferred items.\n\nDo not create a new template; always operate on the existing\n`.specify\u002Fmemory\u002Fconstitution.md` file.\n\n## Claude Code Subagent Capability Discovery\n\n- Execution model: preserve the workflow's existing `subagent-mandatory`, `subagents-first`, `adaptive`, or `subagent-assisted` policy.\n- Dispatch shape: preserve the workflow's existing dispatch shape; use `subagent-blocked` only after the discovery step below fails or is unsafe.\n- Execution surface: prefer `native-subagents` when the current runtime supports it; use `none` only after recording the unavailable or unsafe surface.\n- Native subagent capability discovery: Before recording `subagent-blocked`, check the active tool surface for the integration-native subagent or task-dispatch entrypoint and record the exact missing surface if unavailable.\n- Do not record `subagent-blocked` until this capability discovery step is complete and the exact unavailable or unsafe surface is recorded.\n- Native subagent dispatch: Dispatch subagents through the integration's native subagent support using the shared prompt contract.\n- Join behavior: Use the integration-native join point, then integrate results back on the leader path.\n- Preserve this workflow's existing packet, handoff, artifact, and result schema; this section only governs capability discovery before dispatch or blocked-state recording.\n",{"name":5,"metadata":24,"description":7,"argument-hint":27,"compatibility":28,"user-invocable":29},{"author":25,"source":26},"github-spec-kit","templates\u002Fcommands\u002Fconstitution.md","Principles or values for the project constitution","Requires spec-kit project structure with .specify\u002F directory",true,"main","021f5cbe02157229460a577e9a585f2da6d78cb0",".claude\u002Fskills\u002Fsp-constitution","https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Flaunchdeck","https:\u002F\u002Fgithub.com\u002Fchenziyang110","2026-08-07 18:10:54",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":29},[38,41,44],{"tool":39,"command":40},"npx","npx skills add chenziyang110\u002Flaunchdeck --skill sp-constitution",{"tool":42,"command":43},"bunx","bunx skills add chenziyang110\u002Flaunchdeck --skill sp-constitution",{"tool":45,"command":46},"pnpm","pnpm dlx skills add chenziyang110\u002Flaunchdeck --skill sp-constitution","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Flaunchdeck\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsp-constitution\u002FSKILL.md",[],[50,57,63,69,76,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7875F3HQ1GF5F6BR36KY3JE","launchdeck-agent","Codex host adapter contract fixture for Launchdeck.","https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Flaunchdeck\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fagent-hosts\u002Fcodex\u002Fskill\u002FSKILL.md",[],[],{"skillNo":58,"name":52,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7875DV2DQR33K1NFJHKAMZP","Claude host adapter contract fixture for Launchdeck.","https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Flaunchdeck\u002Fblob\u002Fmain\u002Ftest\u002Ffixtures\u002Fagent-hosts\u002Fclaude\u002Fskill\u002FSKILL.md",[],[],{"skillNo":64,"name":52,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M78759JQ7A6FQ8KDQTNYS3X9","Use this skill aggressively for local project lifecycle operations even when the user does not mention Launchdeck: start this project, run the dev server, dev, build, test, restart service, stop service, show logs, inspect ports, port is occupied, clean cache; and when the user explicitly asks to configure this local project for Launchdeck or create or generate a project-adapted `.launchdeck.yml`, including 为这个项目生成 Launchdeck 配置. Do not use for ordinary code edits, docs-only work, general explanations, API design discussion, or production deployment unless the user also asks to operate or configure a local project or service.","https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Flaunchdeck\u002Fblob\u002Fmain\u002Fagent\u002Finstaller-payload\u002Fskill\u002Flaunchdeck-agent\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M78753ZJQ7G2CZT1W1G8WRJV","zig-testing","Use ONLY when user explicitly requests Zig test code, built-in test runner configuration,\ntest failure diagnosis, or coverage for Zig projects.\n\nTriggers: \"write test zig\", \"zig test\", \"testing.allocator\", \"zig coverage\",\n\"comptime test\", \"zig expectError\", \"zig snapshot test\", \"zig fuzz\".\n\nDo NOT activate for: general Zig coding without test context, build.zig configuration\nfor non-test targets, Zig compiler errors, or Zig build system setup.","https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Flaunchdeck\u002Fblob\u002Fmain\u002F.specify\u002Ftemplates\u002Fpassive-skills\u002Fzig-testing\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":81,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M78750JXY4Z5D5W1EX3PQ31Z","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Flaunchdeck\u002Fblob\u002Fmain\u002F.specify\u002Ftemplates\u002Fpassive-skills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Flaunchdeck\u002Fblob\u002Fmain\u002F.specify\u002Ftemplates\u002Fpassive-skills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7874X2T83EQQFRCEY5SJJVC","verification-before-completion","Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always","https:\u002F\u002Fgithub.com\u002Fchenziyang110\u002Flaunchdeck\u002Fblob\u002Fmain\u002F.specify\u002Ftemplates\u002Fpassive-skills\u002Fverification-before-completion\u002FSKILL.md",[],[]]