Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,39 @@ If you do not see the `aws-aidlc-rules` rules loaded, please check the directory

![AI-DLC Rules in Kiro CLI](./assets/images/kiro-cli-aidlc-rules-loaded.png?raw=true "AI-DLC Rules in Kiro CLI")

### Kiro CLI (Knowledge Base Mode)

For larger projects or when you want better token efficiency, you can use AI-DLC as a custom agent with Knowledge Base support. This mode indexes the rule details and loads them on-demand instead of including everything in context.

Copy the custom agent configuration to your Kiro CLI agents directory:

```bash
# Global installation (available in all projects)
mkdir -p ~/.kiro/agents
cp ../aidlc-workflows/agents/ai-dlc.yaml ~/.kiro/agents/

# Or project-specific installation
mkdir -p .kiro/agents
cp ../aidlc-workflows/agents/ai-dlc.yaml .kiro/agents/
```

Also copy the rule files to the expected location:

```bash
cp -R ../aidlc-workflows/aidlc-rules .kiro/
```

To use the AI-DLC agent:

```bash
kiro-cli --agent ai-dlc
```

Benefits of Knowledge Base mode:
- Better token efficiency (rule details loaded on-demand)
- Faster context loading for large rule sets
- Auto-indexing keeps knowledge current

### Usage

1. Start any software development project by stating your intent starting with the phrase "Using AI-DLC, ..." in the chat.
Expand Down
15 changes: 15 additions & 0 deletions agents/ai-dlc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: ai-dlc
description: AI-Driven Development Life Cycle - Adaptive software development workflow that guides you through inception, construction, and operations phases.

resources:
# Core workflow (always loaded as steering)
- type: context
source: file://./aidlc-rules/aws-aidlc-rules/core-workflow.md

# Rule details (indexed for efficient search)
- type: knowledgeBase
source: file://./aidlc-rules/aws-aidlc-rule-details
name: AI-DLC Rule Details
description: Detailed rules for each phase including common rules, inception, construction, and operations
indexType: best
autoUpdate: true
6 changes: 5 additions & 1 deletion aidlc-rules/aws-aidlc-rules/core-workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ The AI model intelligently assesses what stages are needed based on:
4. Risk and impact assessment

## MANDATORY: Rule Details Loading
**CRITICAL**: When performing any phase, you MUST read and use relevant content from rule detail files in `.kiro/aws-aidlc-rule-details/` or `.amazonq/aws-aidlc-rule-details/` directory.
**CRITICAL**: When performing any phase, you MUST read and use relevant content from rule detail files.

**Loading Method**:
- **Steering mode**: Read from `.kiro/aws-aidlc-rule-details/` or `.amazonq/aws-aidlc-rule-details/` directory
- **Knowledge Base mode**: Search the "AI-DLC Rule Details" knowledge base for the relevant file by name

**Common Rules**: ALWAYS load common rules at workflow start:
- Load `common/process-overview.md` for workflow overview
Expand Down