Closing the intent-to-code chasm - specification-driven development with BDD verification chain
95
Does it follow best practices?
Validation for skill structure
Ask targeted clarification questions to reduce ambiguity in the detected (or user-specified) artifact, then encode answers back into it.
$ARGUMENTSYou 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.
Load constitution per constitution-loading.md (soft mode — parse if exists, continue if not).
Run: bash .tessl/tiles/tessl-labs/intent-integrity-kit/skills/iikit-clarify/scripts/bash/check-prerequisites.sh --phase clarify --json
Windows: 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 the features array 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).
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.mdIf no clarifiable artifact exists: ERROR with No artifacts to clarify. Run /iikit-01-specify first or /iikit-00-constitution.
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.
Constraints:
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.
## Clarifications section exists in the target artifact with ### Session YYYY-MM-DD subheading- Q: <question> -> A: <answer> [<refs>]
Testify exception: .feature files are Gherkin syntax — do NOT add markdown sections to them. Instead:
.feature files for ambiguities (step 1){FEATURE_DIR}/tests/clarifications.md (create if missing).feature files themselves (update scenarios, add/remove steps)See clarification-format.md for format details.
After each write and final pass:
[refs]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. This returns the actual next phase based on feature state (which artifacts exist), not what was just clarified. Clarify can run at any point — the next step depends on where the feature is, not where clarify was invoked.
bash .tessl/tiles/tessl-labs/intent-integrity-kit/skills/iikit-clarify/scripts/bash/generate-dashboard-safe.shWindows: pwsh .tessl/tiles/tessl-labs/intent-integrity-kit/skills/iikit-clarify/scripts/powershell/generate-dashboard-safe.ps1
Run: bash .tessl/tiles/tessl-labs/intent-integrity-kit/skills/iikit-clarify/scripts/bash/next-step.sh --phase clarify --json
Windows: pwsh .tessl/tiles/tessl-labs/intent-integrity-kit/skills/iikit-clarify/scripts/powershell/next-step.ps1 -Phase clarify -Json
Parse the JSON and present:
clear_after is true: suggest /clear before proceeding (always true for clarify — Q&A sessions consume significant context)next_step as the primary recommendationalt_steps non-empty: list as alternativesnext_step and each alt_step, include the model_tier from the JSON so the user knows which model is best for each option. Look up tiers in model-recommendations.md for agent-specific switch commands.Format:
Clarification complete!
Next: /clear → <next_step>
[- <alt_step> — <reason> (model: <tier>)]
- Dashboard: file://$(pwd)/.specify/dashboard.html (resolve the path)Install with Tessl CLI
npx tessl i tessl-labs/intent-integrity-kit@2.7.12rules
skills
iikit-00-constitution
scripts
iikit-01-specify
iikit-02-plan
iikit-03-checklist
scripts
dashboard
iikit-04-testify
iikit-05-tasks
iikit-06-analyze
iikit-07-implement
iikit-08-taskstoissues
iikit-bugfix
scripts
dashboard
iikit-clarify
iikit-core
scripts
bash
dashboard
powershell
templates