Generate foundational steering documents (product.md, tech.md, structure.md) for current workspace by analyzing codebase. Use when starting new projects or documenting existing ones.
Generates foundational steering documents for the current workspace and saves them to both local .kiro/steering/ and the knowledge base for searchability.
ALL three generated files (product.md, tech.md, structure.md) MUST:
Update Context section automatically when:
Three foundational documents:
Documents are saved to TWO locations:
.kiro/steering/ (local to current project)~/.kiro/knowledge/steering/{workspace-name}/Format:
{workspace-name} = name of the current workspace (e.g., my-api-service, user-dashboard)Gather information about the current workspace:
Create a comprehensive product document WITHOUT Context section (for local workspace):
# Product: {Project Name}
## Purpose
[What problem does this project solve?]
## Features and Business Logic
- [Feature 1]: [Description and business value]
- [Feature 2]: [Description and business value]
- [Feature 3]: [Description and business value]
## Goals
- [Primary goal 1]
- [Primary goal 2]
- [Primary goal 3]
## Target Users
[Who uses this project?]
## Business Value
[Why does this project matter?]
## Current Status
[Development stage, maturity level]
Create a detailed technology stack document WITHOUT Context section (for local workspace):
# Tech: {Project Name}
## Technology Stack and Conventions
### Programming Languages
- [Language 1]: [Version and usage]
- [Language 2]: [Version and usage]
### Frameworks & Libraries
- [Framework 1]: [Version and purpose]
- [Framework 2]: [Version and purpose]
### Build Tools
- [Tool 1]: [Version and purpose]
- [Tool 2]: [Version and purpose]
### Testing Frameworks
- [Framework 1]: [Version and purpose]
- [Framework 2]: [Version and purpose]
### Infrastructure & Deployment
- [Service/Tool 1]: [Purpose]
- [Service/Tool 2]: [Purpose]
### Development Tools
- [Tool 1]: [Purpose]
- [Tool 2]: [Purpose]
### Key Dependencies
- [Dependency 1]: [Version and purpose]
- [Dependency 2]: [Version and purpose]
### AWS Services (if applicable)
- [Service 1]: [Purpose]
- [Service 2]: [Purpose]
### Coding Conventions
- [Convention 1]: [Description]
- [Convention 2]: [Description]
Create a project structure document WITHOUT Context section (for local workspace):
# Structure: {Project Name}
## How Your Codebase is Organized
### Directory Layout
\`\`\`
{root}/
├── {dir1}/ # [Purpose]
│ ├── {subdir}/ # [Purpose]
│ └── {file} # [Purpose]
├── {dir2}/ # [Purpose]
├── {config-file} # [Purpose]
└── README.md
\`\`\`
## Key Components
### {Component 1}
- **Location**: {path}
- **Purpose**: {description}
- **Key Files**: {list}
### {Component 2}
- **Location**: {path}
- **Purpose**: {description}
- **Key Files**: {list}
## Configuration Files
- **{file1}**: {purpose}
- **{file2}**: {purpose}
## Entry Points
- **{entry1}**: {description}
- **{entry2}**: {description}
## Build Artifacts
- **{artifact1}**: {location and purpose}
- **{artifact2}**: {location and purpose}
Save clean versions (WITHOUT Context sections) to:
.kiro/steering/product.md.kiro/steering/tech.md.kiro/steering/structure.mdCRITICAL: This happens AUTOMATICALLY without asking for permission.
For each file (product.md, tech.md, structure.md):
~/.kiro/knowledge/steering/{workspace-name}/Context Section Template (ONLY for knowledge base copies):
## Context
### Timeline
- **{Date/Time}**: Initial generation - Created {filename}
- **{Date/Time}**: Synced from local workspace
- **{Date/Time}**: [Future updates will be logged here]
### CONVERSATION SUMMARY
═════════════════════════════════════════════════════════════════════
#### OBJECTIVE
Document the {product/tech/structure} for {Project Name}
#### USER GUIDANCE
- [Key requests and clarifications from user]
- [Important decisions made]
#### COMPLETED
- Generated initial {filename} document
- Synced to knowledge base
- [Future completions will be logged here]
#### TECHNICAL CONTEXT
- Workspace: {workspace path}
- Workspace name: {workspace-name}
- [Other relevant technical details]
#### TOOLS EXECUTED
1. Workspace analysis - Examined project structure
2. File generation - Created {filename}
3. Automatic sync - Synced to knowledge base
4. [Future tool executions will be logged here]
#### NEXT STEPS
1. Review and update as project evolves
2. Automatic sync will keep knowledge base current
#### TODO LIST
[Outstanding items or updates needed]
**CRITICAL**: Update this CONVERSATION SUMMARY and timeline automatically after every significant interaction without being asked. This enables session recovery and tracks document history.
CRITICAL: Sync happens AUTOMATICALLY without asking whenever:
Sync Process:
.kiro/steering/ filesWhat Gets Synced:
What Stays in Knowledge Base Only:
Provide clear feedback on what was done:
✅ Generated Project Steering Documents
Created/Updated:
- product.md (clean version in workspace)
- tech.md (clean version in workspace)
- structure.md (clean version in workspace)
Locations:
📁 Workspace: .kiro/steering/ (clean, no Context sections)
📁 Knowledge Base: ~/workplace/.../knowledge/steering/{workspace-name}/ (with Context sections)
Status:
- [Created/Updated] product.md
- [Created/Updated] tech.md
- [Created/Updated] structure.md
Automatic Sync:
✅ All files synced to knowledge base with Context sections
✅ Context sections updated automatically
✅ Future changes will sync automatically without asking
These documents are now searchable via /search in Kiro.
After Generation:
Add this skill to your agent configuration:
{
"resources": [
"skill://.kiro/skills/generate-steering/SKILL.md"
]
}
Once added to your agent, simply ask to generate steering documents:
# Generate project steering documents for current workspace
kiro "Generate steering documents"
# Or with explicit instruction
kiro "Generate the project documentation"
The agent will automatically invoke this skill when it detects you want to generate steering documents.
/searchSearch for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer