iikit-clarify
Resolve ambiguities in any project artifact — auto-detects the most recent artifact (spec, plan, checklist, testify, tasks, or constitution), asks targeted questions with option tables, and writes answers back into the artifact's Clarifications section. Use when requirements are unclear, a plan has trade-off gaps, checklist thresholds feel wrong, test scenarios are imprecise, task dependencies seem off, or constitution principles are vague.
- License 许可
- MIT
- 最近更新
- 2026-10-12
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- iikit-clarify
- license
- MIT
- metadata
- { "version": "2.10.0" }
- description
- Resolve ambiguities in any project artifact — auto-detects the most recent artifact (spec, plan, checklist, testify, tasks, or constitution), asks targeted questions with option tables, and writes answers back into the artifact's Clarifications section. Use when requirements are unclear, a plan has trade-off gaps, checklist thresholds feel wrong, test scenarios are imprecise, task dependencies seem off, or constitution principles are vague.
02 资源文件 31
- 参考文档references/ambiguity-taxonomies.md2.5 KB
- 参考文档references/clarification-format.md2.0 KB
- 参考文档references/constitution-loading.md1.5 KB
- 参考文档references/conversation-guide.md2.2 KB
- 参考文档references/model-recommendations.md2.5 KB
- 脚本scripts/bash/check-prerequisites.sh29.2 KB
- 脚本scripts/bash/common.sh25.3 KB
- 脚本scripts/bash/generate-dashboard-safe.sh2.0 KB
- 脚本scripts/bash/next-step.sh14.3 KB
- 脚本scripts/bash/post-phase.sh2.8 KB
- 脚本scripts/bash/set-active-feature.sh3.2 KB
- 脚本scripts/dashboard/public/index.html218.8 KB
- 脚本scripts/dashboard/src/analyze.js7.0 KB
- 脚本scripts/dashboard/src/board.js3.2 KB
- 脚本scripts/dashboard/src/bugs.js4.9 KB
- 脚本scripts/dashboard/src/checklist.js2.5 KB
- 脚本scripts/dashboard/src/generate-dashboard.js10.2 KB
- 脚本scripts/dashboard/src/integrity.js1.7 KB
- 脚本scripts/dashboard/src/parser.js48.5 KB
- 脚本scripts/dashboard/src/pipeline.js7.2 KB
- 脚本scripts/dashboard/src/planview.js9.2 KB
- 脚本scripts/dashboard/src/public/index.html218.8 KB
- 脚本scripts/dashboard/src/storymap.js1.4 KB
- 脚本scripts/dashboard/src/testify.js6.2 KB
- 脚本scripts/dashboard/template.js226.5 KB
- 脚本scripts/powershell/check-prerequisites.ps123.3 KB
- 脚本scripts/powershell/common.ps114.3 KB
- 脚本scripts/powershell/generate-dashboard-safe.ps11.8 KB
- 脚本scripts/powershell/next-step.ps110.7 KB
- 脚本scripts/powershell/set-active-feature.ps12.6 KB
- 参考文档templates/plan-template.md3.3 KB
03 SKILL.md 正文
Intent Integrity Kit Clarify (Generic Utility)
Ask targeted clarification questions to reduce ambiguity in the detected (or user-specified) artifact, then encode answers back into it.
User Input
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
If the user provides a target argument (e.g., plan, spec, checklist, testify, tasks, constitution), use that artifact instead of auto-detection.
Constitution Loading
Load constitution per constitution-loading.md (soft mode — parse if exists, continue if not).
Prerequisites Check
-
Run:
bash .tessl/tiles/tessl-labs/intent-integrity-kit/skills/iikit-clarify/scripts/bash/check-prerequisites.sh --phase clarify --jsonWindows:pwsh .tessl/tiles/tessl-labs/intent-integrity-kit/skills/iikit-clarify/scripts/powershell/check-prerequisites.ps1 -Phase clarify -Json -
Parse JSON. If
needs_selection: true: present thefeaturesarray as a numbered table (name and stage columns). Follow the options presentation pattern in conversation-guide.md. After user selects, run:bash .tessl/tiles/tessl-labs/intent-integrity-kit/skills/iikit-clarify/scripts/bash/set-active-feature.sh --json <selection>Windows:
pwsh .tessl/tiles/tessl-labs/intent-integrity-kit/skills/iikit-clarify/scripts/powershell/set-active-feature.ps1 -Json <selection>Then re-run the prerequisites check from step 1.
-
Determine the target artifact (see "Target Detection" below).
Target Detection
If the user provided a target argument, map it:
| Argument | Artifact file |
|---|---|
spec |
{FEATURE_DIR}/spec.md |
plan |
{FEATURE_DIR}/plan.md |
checklist |
{FEATURE_DIR}/checklists/*.md (all files) |
testify |
{FEATURE_DIR}/tests/features/*.feature (read for scanning), {FEATURE_DIR}/tests/clarifications.md (write Q&A) |
tasks |
{FEATURE_DIR}/tasks.md |
constitution |
{REPO_ROOT}/CONSTITUTION.md |
If no argument, auto-detect by checking artifacts in reverse phase order. Pick the first that exists:
{FEATURE_DIR}/tasks.md{FEATURE_DIR}/tests/features/*.feature{FEATURE_DIR}/checklists/*.md{FEATURE_DIR}/plan.md{FEATURE_DIR}/spec.md{REPO_ROOT}/CONSTITUTION.md
If no clarifiable artifact exists: ERROR with No artifacts to clarify. Run /iikit-01-specify first or /iikit-00-constitution.
Execution Steps
1. Scan for Ambiguities
Load the target artifact and perform a structured scan using the taxonomy for that artifact type from ambiguity-taxonomies.md. Mark each area: Clear / Partial / Missing.
2. Generate Question Queue
Constraints:
- Each answerable with multiple-choice (2-5 options) OR short phrase (<=5 words)
- Identify related artifact items for each question:
- Spec: FR-xxx, US-x, SC-xxx
- Plan: section headers or decision IDs
- Checklist: check item IDs
- Testify: scenario names
- Tasks: task IDs (T-xxx)
- Constitution: principle names or section headers
- Only include questions that materially impact downstream phases
- Balance category coverage, exclude already-answered, favor downstream rework reduction
3. Sequential Questioning
Present ONE question at a time.
For multiple-choice: follow the options presentation pattern in conversation-guide.md. Analyze options, state recommendation with reasoning, render options table. User can reply with letter, "yes"/"recommended", or custom text.
After answer: validate against constraints, record, move to next.
Stop when: all critical ambiguities resolved or user signals done.
4. Integration After Each Answer
- Ensure
## Clarificationssection exists in the target artifact with### Session YYYY-MM-DDsubheading - Append:
- Q: <question> -> A: <answer> [<refs>]- References MUST list every affected item in the artifact
- If cross-cutting, reference all materially affected items
- Apply clarification to the appropriate section of the artifact
- Save artifact after each integration to minimize context loss
Testify exception: .feature files are Gherkin syntax — do NOT add markdown sections to them. Instead:
- Scan
.featurefiles for ambiguities (step 1) - Write Q&A to
{FEATURE_DIR}/tests/clarifications.md(create if missing) - Apply changes to the
.featurefiles themselves (update scenarios, add/remove steps)
See clarification-format.md for format details.
5. Validation
After each write and final pass:
- One bullet per accepted answer, each ending with
[refs] - All referenced IDs exist in the artifact
- No vague placeholders or contradictions remain
6. Report
Output: questions asked/answered, target artifact and path, sections touched, traceability summary table (clarification -> referenced items), coverage summary (category -> status), suggested next command.
Next command logic: run check-prerequisites.sh --json status and use its next_step field to determine the actual next phase based on feature state.
Behavior Rules
- No meaningful ambiguities found: "No critical ambiguities detected." and suggest proceeding
- Avoid speculative tech stack questions unless absence blocks functional clarity
- Respect early termination signals ("stop", "done", "proceed")
- For non-spec artifacts, adapt reference format to the artifact's native ID scheme
Commit, Dashboard & Next Steps
Run post-phase to commit, refresh dashboard, and compute next step in a single call:
bash .tessl/tiles/tessl-labs/intent-integrity-kit/skills/iikit-clarify/scripts/bash/post-phase.sh --phase clarify --commit-files "-u" --commit-msg "clarify: <target-artifact> Q&A"
Windows: pwsh .tessl/tiles/tessl-labs/intent-integrity-kit/skills/iikit-clarify/scripts/powershell/post-phase.ps1 -Phase clarify -CommitFiles "-u" -CommitMsg "clarify: <target-artifact> Q&A"
Parse next_step from JSON. Present per model-recommendations.md:
Clarification complete!
Next: [/clear → ] <next_step> (model: <tier>)
[- <alt_step> — <reason> (model: <tier>)]
- Dashboard: file://$(pwd)/.specify/dashboard.html
Recommend /clear before proceeding to the next phase.
04 同仓库更多 Skills
swiss-design
Apply a Swiss International Style design system using Tailwind CSS. Use when asked to style a webpage, clean up a UI, apply a design system, make something look great, or when the user references Swiss design, grotesque fonts, Helvetica, grid systems, modernist typography, or 1960s/1950s design aesthetics. Implements IBM Plex Sans typography, stone color palette, opacity-based hierarchy, generous whitespace, and structured grid layouts.
karpathy-guidelines
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria.
iikit-core
Initialize an IIKit (Intent Integrity Kit) project, check IIKit feature progress, select the active IIKit feature, and display the IIKit workflow command reference. Use when starting a new IIKit project, running IIKit init or setup, checking IIKit status, switching between IIKit features, looking up IIKit available commands and phases, or asking for help with the IIKit workflow.
iikit-clarify
Resolve ambiguities in any project artifact — auto-detects the most recent artifact (spec, plan, checklist, testify, tasks, or constitution), asks targeted questions with option tables, and writes answers back into the artifact's Clarifications section. Use when requirements are unclear, a plan has trade-off gaps, checklist thresholds feel wrong, test scenarios are imprecise, task dependencies seem off, or constitution principles are vague.
iikit-bugfix
Report a bug against an existing feature — creates a structured bugs.md record, generates fix tasks in tasks.md, and optionally imports from or creates GitHub issues. Use when fixing a bug, reporting a defect, importing a GitHub issue into the workflow, or triaging an error without running the full specification process.
iikit-08-taskstoissues
Convert tasks from tasks.md into GitHub Issues with labels and dependencies. Use when exporting work items to GitHub, setting up project boards, or assigning tasks to team members.