Skip to content

Commit 8c783f5

Browse files
committed
feat: first optimization
1 parent 05e646a commit 8c783f5

30 files changed

+1971
-1680
lines changed

β€Ž.kiro/steering/rules.mdβ€Ž

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,10 @@
1-
# Interactive Coding Agent Rules
1+
# Interactive Coding Agent: Entry Point
22

3-
🚨 **MANDATORY: YOU MUST IMMEDIATELY OPEN AND READ THE COMPLETE RULES** 🚨
3+
## 🚨 MANDATORY: START HERE
44

5-
**BEFORE ANY CODING SESSION, YOU ARE REQUIRED TO:**
5+
**BEFORE ANY ACTION, YOU ARE REQUIRED TO:**
66

7-
1. **OPEN** β†’ **[rules/index.rules.md](./rules/index.rules.md)**
8-
2. **READ** β†’ All mandatory standards and core principles
9-
3. **IMPLEMENT** β†’ Every rule and compliance checklist
7+
1. **OPEN** β†’ **[../../rules/index.rules.md](../../rules/index.rules.md)**
8+
2. **FOLLOW** β†’ The mandatory onboarding process described within.
109

11-
**FAILURE TO FOLLOW THESE RULES = CRITICAL VIOLATION**
12-
13-
## Complete Interactive Rules
14-
15-
@./rules/index.rules.md
16-
17-
## Key Requirements
18-
19-
This file contains:
20-
- ⚠️ **MANDATORY** stop points and question triggers
21-
- πŸ›‘ **REQUIRED** interactive command usage
22-
- βœ… **ESSENTIAL** compliance checklists
23-
- 🚨 **CRITICAL** violation protocols
24-
25-
**NO EXCEPTIONS. NO ASSUMPTIONS. FOLLOW THE RULES.**
26-
27-
---
28-
29-
*Single source of truth for maintainability - MUST be followed by all agents.*
30-
31-
---
32-
33-
*Created by [@matscode](https://www.tiktok.com/@matscode) | [LinkedIn](https://www.linkedin.com/in/matscode)*
10+
**FAILURE TO DO SO = CRITICAL VIOLATION**

β€Ž.trae/rules/project_rules.mdβ€Ž

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,10 @@
1-
# Interactive Coding Agent Rules
1+
# Interactive Coding Agent: Entry Point
22

3-
🚨 **MANDATORY: YOU MUST IMMEDIATELY OPEN AND READ THE COMPLETE RULES** 🚨
3+
## 🚨 MANDATORY: START HERE
44

5-
**BEFORE ANY CODING SESSION, YOU ARE REQUIRED TO:**
5+
**BEFORE ANY ACTION, YOU ARE REQUIRED TO:**
66

7-
1. **OPEN** β†’ **[rules/index.rules.md](../../rules/index.rules.md)**
8-
2. **READ** β†’ All mandatory standards and core principles
9-
3. **IMPLEMENT** β†’ Every rule and compliance checklist
7+
1. **OPEN** β†’ **[../../rules/index.rules.md](../../rules/index.rules.md)**
8+
2. **FOLLOW** β†’ The mandatory onboarding process described within.
109

11-
**FAILURE TO FOLLOW THESE RULES = CRITICAL VIOLATION**
12-
13-
This file contains:
14-
- ⚠️ **MANDATORY** stop points and question triggers
15-
- πŸ›‘ **REQUIRED** interactive command usage
16-
- βœ… **ESSENTIAL** compliance checklists
17-
- 🚨 **CRITICAL** violation protocols
18-
19-
**NO EXCEPTIONS. NO ASSUMPTIONS. FOLLOW THE RULES.**
20-
21-
---
22-
23-
*Single source of truth for maintainability - MUST be followed by all agents.*
24-
25-
---
26-
27-
*Created by [@matscode](https://www.tiktok.com/@matscode) | [LinkedIn](https://www.linkedin.com/in/matscode)*
10+
**FAILURE TO DO SO = CRITICAL VIOLATION**
Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,13 @@
11
---
22
trigger: always_on
33
---
4+
# Interactive Coding Agent: Entry Point
45

5-
# Interactive Coding Agent Rules
6+
## 🚨 MANDATORY: START HERE
67

7-
🚨 **MANDATORY: YOU MUST IMMEDIATELY OPEN AND READ THE COMPLETE RULES** 🚨
8+
**BEFORE ANY ACTION, YOU ARE REQUIRED TO:**
89

9-
**BEFORE ANY CODING SESSION, YOU ARE REQUIRED TO:**
10+
1. **OPEN** β†’ **[../../rules/index.rules.md](../../rules/index.rules.md)**
11+
2. **FOLLOW** β†’ The mandatory onboarding process described within.
1012

11-
1. **OPEN** β†’ **[rules/index.rules.md](../rules/index.rules.md)**
12-
2. **READ** β†’ All mandatory standards and core principles
13-
3. **IMPLEMENT** β†’ Every rule and compliance checklist
14-
15-
**FAILURE TO FOLLOW THESE RULES = CRITICAL VIOLATION**
16-
17-
This file contains:
18-
- ⚠️ **MANDATORY** stop points and question triggers
19-
- πŸ›‘ **REQUIRED** interactive command usage
20-
- βœ… **ESSENTIAL** compliance checklists
21-
- 🚨 **CRITICAL** violation protocols
22-
23-
**NO EXCEPTIONS. NO ASSUMPTIONS. FOLLOW THE RULES.**
24-
25-
---
26-
27-
*Single source of truth for maintainability - MUST be followed by all agents.*
28-
29-
---
30-
31-
*Created by [@matscode](https://www.tiktok.com/@matscode) | [LinkedIn](https://www.linkedin.com/in/matscode)*
13+
**FAILURE TO DO SO = CRITICAL VIOLATION**

β€ŽAGENTS.mdβ€Ž

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,10 @@
1-
# Interactive Coding Agent Rules
1+
# Interactive Coding Agent: Entry Point
22

3-
🚨 **MANDATORY: YOU MUST IMMEDIATELY OPEN AND READ THE COMPLETE RULES** 🚨
3+
## 🚨 MANDATORY: START HERE
44

5-
**BEFORE ANY CODING SESSION, YOU ARE REQUIRED TO:**
5+
**BEFORE ANY ACTION, YOU ARE REQUIRED TO:**
66

7-
1. **OPEN** β†’ **[rules/index.rules.md](./rules/index.rules.md)**
8-
2. **READ** β†’ All mandatory standards and core principles
9-
3. **IMPLEMENT** β†’ Every rule and compliance checklist
7+
1. **OPEN** β†’ **[rules/index.rules.md](./rules/index.rules.md)**
8+
2. **FOLLOW** β†’ The mandatory onboarding process described within.
109

11-
**FAILURE TO FOLLOW THESE RULES = CRITICAL VIOLATION**
12-
13-
## Complete Interactive Rules
14-
15-
@./rules/index.rules.md
16-
17-
## Key Requirements
18-
19-
This file contains:
20-
- ⚠️ **MANDATORY** stop points and question triggers
21-
- πŸ›‘ **REQUIRED** interactive command usage
22-
- βœ… **ESSENTIAL** compliance checklists
23-
- 🚨 **CRITICAL** violation protocols
24-
25-
**NO EXCEPTIONS. NO ASSUMPTIONS. FOLLOW THE RULES.**
26-
27-
---
28-
29-
*Single source of truth for maintainability - MUST be followed by all agents.*
30-
31-
---
32-
33-
*Created by [@matscode](https://www.tiktok.com/@matscode) | [LinkedIn](https://www.linkedin.com/in/matscode)*
10+
**FAILURE TO DO SO = CRITICAL VIOLATION**

β€ŽREADME.mdβ€Ž

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,15 @@ Watch how the Interactive Coding Agent works:
2929

3030
## Benefits
3131

32-
- **Proactive Clarification**: Agents must seek clarification on vague requirements before implementation
33-
- **Mandatory Stop Points**: Built-in triggers for ambiguous requirements, multiple approaches, and feature additions
34-
- **Interactive Terminal Input**: Standardized question protocols using terminal commands for user input
35-
- **User Persona Adaptation**: Communication style adapts based on detected user experience level (none to expert)
36-
- **Specification Management**: Automatic creation and maintenance of project specifications for architectural decisions
37-
- **Scope Preservation**: Prevents removal of existing working components during refactoring
38-
- **Session Closure Protocol**: Always ends with explicit user confirmation before closing sessions
39-
- **Violation Prevention**: Stops scope creep, unrequested features, and silent assumptions with critical failure protocols
32+
- **Holistic Workflow**: A master guide that orchestrates all other rules, ensuring a flexible and iterative process.
33+
- **Proactive Clarification**: Agents must seek clarification on vague requirements before implementation.
34+
- **Mandatory Stop Points**: Built-in triggers for ambiguous requirements, multiple approaches, and feature additions.
35+
- **Interactive Terminal Input**: Standardized "one question, one answer" protocols using terminal commands for user input.
36+
- **User Persona Adaptation**: Communication style adapts based on your detected experience level.
37+
- **Specification Management**: Automatic creation and maintenance of project specifications for significant decisions.
38+
- **Scope Preservation**: Prevents removal of existing working components during refactoring.
39+
- **Session Closure Protocol**: Always ends with explicit user confirmation before closing sessions.
40+
- **Violation Prevention**: Stops scope creep, unrequested features, and silent assumptions with critical failure protocols.
4041

4142
## Setup
4243

@@ -49,21 +50,20 @@ Want just the essentials? Copy these:
4950
**Required Files and Folders:**
5051
- `AGENTS.md` (put in your project root)
5152
- `rules/` folder (the main rules)
52-
- `project-specs/` folder
53-
- `specs/` folder
53+
- `specs/` folder (for user persona and other specs)
5454

5555
**Your Editor Config:**
5656
- **Trae AI**: Copy `.trae/` folder
57-
- **Cursor**: Copy `.cursor/` folder
57+
- **Cursor**: Copy `.cursor/` folder
5858
- **Windsurf**: Copy `.windsurf/` folder
5959
- **Kiro**: Copy `.kiro/` folder
6060

6161
### Rule Activation
6262
- Close and reopen project (optional but recommended)
6363
- Start a new chat
64-
- Prompt your agent to "Read workspace rules"
64+
- The agent should automatically read the rules and begin the onboarding process.
6565

66-
**First Time Expectation:** Once rules are read, the user persona creation workflow should be triggered to create your `user-persona.spec.md`
66+
**First Time Expectation:** The agent will guide you through creating a `user-persona.spec.md` file, which will tailor its communication style to your preferences.
6767

6868
## πŸ‘€ User Persona System
6969

@@ -78,7 +78,7 @@ The agent will automatically ask you to set up a user persona by answering a few
7878
- Present technical trade-offs and performance implications
7979
- Assume familiarity with design patterns and best practices
8080

81-
**πŸ“Š Product Manager**
81+
**πŸ“Š Product Manager**
8282
- Emphasize user impact and business value
8383
- Focus on feature scope and timeline implications
8484
- Translate technical decisions into business outcomes
@@ -162,4 +162,4 @@ The persona system ensures you get exactly the right level of detail and communi
162162

163163
---
164164

165-
*Created by [@matscode](https://www.tiktok.com/@matscode) | [LinkedIn](https://www.linkedin.com/in/matscode)*
165+
*Created by [@matscode](https://www.tiktok.com/@matscode) | [LinkedIn](https://www.linkedin.com/in/matscode)*
File renamed without changes.

0 commit comments

Comments
Β (0)