Create a scoped implementation area with decomposed specs and local CLAUDE.md
Creates a scoped implementation directory with decomposed specs and local CLAUDE.md for TDD workflows.
/plugin marketplace add lessuselesss/todo-ware/plugin install lessuselesss-kiro-scaffold@lessuselesss/todo-wareCreates a scoped implementation directory with:
/kiro-scope <path> [--from-task=<task-id>] [--description="scope description"]
path (required): Directory path for the new scope (e.g., src/auth, lib/database)--from-task: Task ID from master tasks.md to decompose--description: Brief description of what this scope implementsCreate scope for authentication module:
/kiro-scope src/auth --from-task=AUTH-001 --description="JWT-based authentication with refresh tokens"
Create scope for database layer:
/kiro-scope lib/database --description="PostgreSQL connection pool and query builder"
<path>/
├── CLAUDE.md # Implementation workflow
└── .kiro-scope/ # Scoped specifications
├── scoped-tasks.md # Decomposed tasks from master
├── assertions.md # TDD assertions (RED-GREEN-REFACTOR)
├── context.md # How module fits in project
└── contracts/ # Nickel type definitions (optional)
└── (mirrors parent directory structure)
This structure follows the kiro structural invariant:
Any directory containing source files MUST have:
CLAUDE.md- Implementation workflow.kiro-scope/directory with required files
When you run /kiro-scope, Claude will:
Create Directory Structure
<path>/ directory<path>/CLAUDE.md<path>/.kiro-scope/ directoryGenerate scoped-tasks.md
.kiro/spec/tasks.md matching --from-taskdecomposed_from, parent_tasks, moduleGenerate assertions.md
TASK-###--A# (double-dash!)Generate context.md
Generate CLAUDE.md
.kiro-scope/ filesValidate Structure
TASK-###--A# patternAfter generating scope files, the command automatically validates:
.contracts/schema/scope-directory.ncl)CLAUDE.md exists in parent directory.kiro-scope/ directory existsscoped-tasks.md, assertions.md, context.md.contracts/validation/assertion-ids.ncl)TASK-###--A# pattern (double-dash!)MODULE-### patternscoped-tasks.md has required frontmatter fieldsassertions.md has parent_task frontmattercontext.md has all 7 required sectionsUse Nushell to validate manually:
# Validate entire scope
nu -c "use tools/kiro.nu *; validate-scope-full 'src/auth'"
# Validate just assertion IDs
nu -c "use tools/kiro.nu *; validate-assertion-id 'AUTH-001--A3'"
# Find all scoped directories
nu -c "use tools/kiro.nu *; find-scoped-directories"
Each scoped area follows RED-to-GREEN:
/kiro-new - Create new kiro project/kiro-spec - Update spec files/kiro-eval - Evaluate project standards