telos-framework 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/commands/telos/init.md +73 -18
- package/.claude/commands/telos/quick.md +4 -4
- package/.claude/commands/telos/reset.md +6 -6
- package/.claude/commands/telos/status.md +4 -4
- package/.claude/commands/telos/validate.md +3 -3
- package/lib/commands/init.js +3 -1
- package/package.json +1 -1
- package/templates/AGENTS.md +10 -10
- package/templates/CLAUDE.md +11 -11
|
@@ -148,7 +148,7 @@ Reasoning: [Based on detected linters, formatters, and quality standards]
|
|
|
148
148
|
═══════════════════════════════════════════════════════════════════════════
|
|
149
149
|
```
|
|
150
150
|
|
|
151
|
-
### Auto-generation Guidelines for L1-L4
|
|
151
|
+
### Auto-generation Guidelines for L1-L4
|
|
152
152
|
|
|
153
153
|
**L1 (Syntax-Linter)** - Based on detected tools:
|
|
154
154
|
|
|
@@ -185,6 +185,7 @@ After presenting the table, say:
|
|
|
185
185
|
**Strategic layers (L9-L5) define your project's purpose and require your input.**
|
|
186
186
|
|
|
187
187
|
**Technical layers (L1-L4) are auto-generated based on your detected tooling:**
|
|
188
|
+
|
|
188
189
|
- L1: [List detected linters]
|
|
189
190
|
- L2: [List detected test frameworks]
|
|
190
191
|
- L3: [List detected component frameworks]
|
|
@@ -193,11 +194,13 @@ After presenting the table, say:
|
|
|
193
194
|
**Please review the strategic layers (L9-L5). Would you like to refine any of these?**
|
|
194
195
|
|
|
195
196
|
Options:
|
|
197
|
+
|
|
196
198
|
- "Accept all" - Proceed with generation
|
|
197
199
|
- "Refine L9" - Edit ultimate purpose layer
|
|
198
200
|
- "Refine L8" - Edit business value layer
|
|
199
201
|
- "Refine all" - Walk through each strategic layer
|
|
200
202
|
- "Restart" - Re-analyze with different focus
|
|
203
|
+
|
|
201
204
|
---
|
|
202
205
|
|
|
203
206
|
Wait for user response. If they want refinements, engage conversationally:
|
|
@@ -210,7 +213,7 @@ Wait for user response. If they want refinements, engage conversationally:
|
|
|
210
213
|
|
|
211
214
|
Once the hierarchy is finalized, create the following files:
|
|
212
215
|
|
|
213
|
-
### 4.1 Create
|
|
216
|
+
### 4.1 Create `.telos/TELOS.md`
|
|
214
217
|
|
|
215
218
|
```markdown
|
|
216
219
|
# Telos: Ultimate Purpose
|
|
@@ -254,13 +257,13 @@ Tools**: [Build systems]
|
|
|
254
257
|
## Initialization Metadata
|
|
255
258
|
|
|
256
259
|
- **Initialized**: [Current date]
|
|
257
|
-
- **AI Assistant**: Claude via Telos `/telos
|
|
260
|
+
- **AI Assistant**: Claude via Telos `/telos:init`
|
|
258
261
|
- **Project Type**: [Inferred project type]
|
|
259
262
|
```
|
|
260
263
|
|
|
261
264
|
### 4.2 Create Agent Files
|
|
262
265
|
|
|
263
|
-
For each level (L9 → L1), create
|
|
266
|
+
For each level (L9 → L1), create `.telos/agents/l[N]-[agent-name].md`:
|
|
264
267
|
|
|
265
268
|
**Template structure:**
|
|
266
269
|
|
|
@@ -339,14 +342,58 @@ For each level (L9 → L1), create `telos/agents/l[N]-[agent-name].md`:
|
|
|
339
342
|
- Tools: [Detected linters - ESLint, Prettier, etc.]
|
|
340
343
|
- Examples: Reject PR with linting errors
|
|
341
344
|
|
|
342
|
-
### 4.3
|
|
345
|
+
### 4.3 Integrate with AI Assistant Configuration Files
|
|
346
|
+
|
|
347
|
+
Check for and update existing AI assistant configuration files to reference
|
|
348
|
+
`.telos/TELOS.md`:
|
|
349
|
+
|
|
350
|
+
**Files to check:**
|
|
351
|
+
|
|
352
|
+
- `AGENTS.md` - Unified standard (if exists, prepend Telos reference)
|
|
353
|
+
- `CLAUDE.md` - Claude Code (if exists, prepend Telos reference)
|
|
354
|
+
- `.cursorrules` - Cursor IDE (if exists, prepend Telos reference)
|
|
355
|
+
- `.clinerules` - Cline/VS Code (if exists, prepend Telos reference)
|
|
356
|
+
- `.windsurfrules` - Windsurf IDE (if exists, prepend Telos reference)
|
|
357
|
+
- `.roo/config` or `.roocode` - Roo Code (if exists, prepend Telos reference)
|
|
358
|
+
- `GEMINI.md` - Google Gemini (if exists, prepend Telos reference)
|
|
359
|
+
|
|
360
|
+
**For each existing file, prepend this instruction:**
|
|
361
|
+
|
|
362
|
+
```markdown
|
|
363
|
+
## Telos Purpose Hierarchy
|
|
364
|
+
|
|
365
|
+
**IMPORTANT**: Before making any significant changes to this project, consult
|
|
366
|
+
the Telos purpose hierarchy defined in `.telos/TELOS.md`. This file contains the
|
|
367
|
+
9-level purpose structure (L9: Ultimate Purpose → L1: Code Quality) that guides
|
|
368
|
+
all development decisions.
|
|
369
|
+
|
|
370
|
+
**When to reference Telos:**
|
|
343
371
|
|
|
344
|
-
|
|
372
|
+
- Before implementing new features (check L9-L5 strategic alignment)
|
|
373
|
+
- Before refactoring code (ensure L1-L4 technical standards are maintained)
|
|
374
|
+
- When resolving conflicts between requirements (appeal to higher-level purpose)
|
|
375
|
+
- During code review (validate against appropriate agent level)
|
|
345
376
|
|
|
346
|
-
|
|
347
|
-
- Update `CLAUDE.md` (if exists) with Telos instructions
|
|
377
|
+
**Quick reference:**
|
|
348
378
|
|
|
349
|
-
|
|
379
|
+
- L9 (Telos-Guardian): Ultimate purpose - does this serve our mission?
|
|
380
|
+
- L8 (Market-Analyst): Business value - does this deliver measurable outcomes?
|
|
381
|
+
- L7 (Insight-Synthesizer): Product strategy - does this align with our roadmap?
|
|
382
|
+
- L6 (UX-Simulator): Experience - does this meet UX standards?
|
|
383
|
+
- L5 (Journey-Validator): Workflows - do user journeys work end-to-end?
|
|
384
|
+
- L4 (Integration-Contractor): API contracts - are integrations maintained?
|
|
385
|
+
- L3 (Component-Architect): Components - does this follow our patterns?
|
|
386
|
+
- L2 (Function-Author): Functions - is this testable and maintainable?
|
|
387
|
+
- L1 (Syntax-Linter): Code quality - does this pass linting/formatting?
|
|
388
|
+
|
|
389
|
+
See `.telos/TELOS.md` for complete hierarchy and `.telos/agents/` for detailed
|
|
390
|
+
agent definitions.
|
|
391
|
+
|
|
392
|
+
---
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
**If no AI assistant config files exist**, create `AGENTS.md` with Telos
|
|
396
|
+
content.
|
|
350
397
|
|
|
351
398
|
### 4.4 Create Orchestrator (Optional)
|
|
352
399
|
|
|
@@ -373,21 +420,29 @@ Once all files are generated, display:
|
|
|
373
420
|
✅ **Telos initialization complete!**
|
|
374
421
|
|
|
375
422
|
**Generated files:**
|
|
376
|
-
|
|
377
|
-
-
|
|
378
|
-
-
|
|
423
|
+
|
|
424
|
+
- `.telos/TELOS.md` - Ultimate purpose and hierarchy
|
|
425
|
+
- `.telos/agents/l9-telos-guardian.md` through `l1-syntax-linter.md`
|
|
426
|
+
- Updated AI assistant config files (AGENTS.md, CLAUDE.md, .cursorrules, etc.)
|
|
379
427
|
- `logos/orchestrator.js` - Request router (if applicable)
|
|
380
428
|
|
|
381
429
|
**Next steps:**
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
430
|
+
|
|
431
|
+
1. Review the generated agent definitions in `.telos/agents/`
|
|
432
|
+
2. Run `/telos:validate` to check alignment with current codebase
|
|
433
|
+
3. Run `/telos:status` to see current configuration
|
|
385
434
|
4. Start developing with purpose-driven AI assistance!
|
|
386
435
|
|
|
436
|
+
**Your AI assistant now knows about Telos!** All existing config files (AGENTS.md,
|
|
437
|
+
CLAUDE.md, .cursorrules, etc.) have been updated to reference `.telos/TELOS.md`
|
|
438
|
+
before making changes.
|
|
439
|
+
|
|
387
440
|
**Slash commands available:**
|
|
388
|
-
|
|
389
|
-
- `/telos
|
|
390
|
-
- `/telos
|
|
441
|
+
|
|
442
|
+
- `/telos:validate` - Check if current code aligns with Telos
|
|
443
|
+
- `/telos:status` - Show current Telos configuration
|
|
444
|
+
- `/telos:reset` - Clear and reinitialize
|
|
445
|
+
|
|
391
446
|
---
|
|
392
447
|
|
|
393
448
|
## Tips
|
|
@@ -38,8 +38,8 @@ Do NOT ask for user review - proceed directly to generation.
|
|
|
38
38
|
|
|
39
39
|
Create all files exactly as specified in `/telos-init` Step 4:
|
|
40
40
|
|
|
41
|
-
-
|
|
42
|
-
-
|
|
41
|
+
- `.telos/TELOS.md`
|
|
42
|
+
- `.telos/agents/l9-telos-guardian.md` through `l1-syntax-linter.md`
|
|
43
43
|
- `AGENTS.md` (if `.claude/` or `.opencode/` exists)
|
|
44
44
|
- `logos/orchestrator.js` (if Node.js project)
|
|
45
45
|
|
|
@@ -65,8 +65,8 @@ Once complete, show:
|
|
|
65
65
|
| L1 | Syntax-Linter | [Purpose] |
|
|
66
66
|
|
|
67
67
|
**Files created:**
|
|
68
|
-
-
|
|
69
|
-
-
|
|
68
|
+
- `.telos/TELOS.md`
|
|
69
|
+
- `.telos/agents/` (9 agent definitions)
|
|
70
70
|
- `AGENTS.md`
|
|
71
71
|
- `logos/orchestrator.js` (if applicable)
|
|
72
72
|
|
|
@@ -11,8 +11,8 @@ fresh.
|
|
|
11
11
|
|
|
12
12
|
This command will **delete** the following:
|
|
13
13
|
|
|
14
|
-
-
|
|
15
|
-
-
|
|
14
|
+
- `.telos/TELOS.md`
|
|
15
|
+
- `.telos/agents/` directory (all L1-L9 agent files)
|
|
16
16
|
- `logos/orchestrator.js` (if present)
|
|
17
17
|
- Telos sections in `AGENTS.md` and `CLAUDE.md` (if present)
|
|
18
18
|
|
|
@@ -24,8 +24,8 @@ Before proceeding, ask the user:
|
|
|
24
24
|
⚠️ **Warning: This will delete all Telos configuration files.**
|
|
25
25
|
|
|
26
26
|
**Files to be removed:**
|
|
27
|
-
-
|
|
28
|
-
-
|
|
27
|
+
- `.telos/TELOS.md`
|
|
28
|
+
- `.telos/agents/l1-*.md` through `l9-*.md`
|
|
29
29
|
- `logos/orchestrator.js`
|
|
30
30
|
- Telos references in AGENTS.md / CLAUDE.md
|
|
31
31
|
|
|
@@ -44,8 +44,8 @@ If user confirms "yes":
|
|
|
44
44
|
Delete the following files (if they exist):
|
|
45
45
|
|
|
46
46
|
```bash
|
|
47
|
-
rm -rf telos/
|
|
48
|
-
rm -rf telos/agents/
|
|
47
|
+
rm -rf .telos/TELOS.md
|
|
48
|
+
rm -rf .telos/agents/
|
|
49
49
|
rm -rf logos/orchestrator.js
|
|
50
50
|
```
|
|
51
51
|
|
|
@@ -10,8 +10,8 @@ Display the current Telos configuration for this project.
|
|
|
10
10
|
|
|
11
11
|
First, check if Telos is initialized:
|
|
12
12
|
|
|
13
|
-
- Look for
|
|
14
|
-
- Look for
|
|
13
|
+
- Look for `.telos/TELOS.md`
|
|
14
|
+
- Look for `.telos/agents/` directory
|
|
15
15
|
|
|
16
16
|
If not found, display:
|
|
17
17
|
|
|
@@ -27,7 +27,7 @@ If Telos is initialized, read and display:
|
|
|
27
27
|
|
|
28
28
|
### 1. Ultimate Purpose
|
|
29
29
|
|
|
30
|
-
From
|
|
30
|
+
From `.telos/TELOS.md`, extract and display:
|
|
31
31
|
|
|
32
32
|
```
|
|
33
33
|
🎯 **Ultimate Purpose (L9)**
|
|
@@ -55,7 +55,7 @@ Display all 9 levels:
|
|
|
55
55
|
|
|
56
56
|
### 3. Technology Stack
|
|
57
57
|
|
|
58
|
-
From
|
|
58
|
+
From `.telos/TELOS.md`, show detected stack:
|
|
59
59
|
|
|
60
60
|
```
|
|
61
61
|
**Technology Stack**
|
|
@@ -11,8 +11,8 @@ purpose hierarchy.
|
|
|
11
11
|
|
|
12
12
|
Check if Telos is initialized:
|
|
13
13
|
|
|
14
|
-
-
|
|
15
|
-
- At least some agent files in
|
|
14
|
+
- `.telos/TELOS.md` must exist
|
|
15
|
+
- At least some agent files in `.telos/agents/` must exist
|
|
16
16
|
|
|
17
17
|
If not found, display: "❌ Telos not initialized. Run `/telos-init` first."
|
|
18
18
|
|
|
@@ -20,7 +20,7 @@ If not found, display: "❌ Telos not initialized. Run `/telos-init` first."
|
|
|
20
20
|
|
|
21
21
|
### Step 1: Load Telos Configuration
|
|
22
22
|
|
|
23
|
-
Read
|
|
23
|
+
Read `.telos/TELOS.md` to extract:
|
|
24
24
|
|
|
25
25
|
- Ultimate purpose (L9)
|
|
26
26
|
- 9-level hierarchy definitions
|
package/lib/commands/init.js
CHANGED
|
@@ -60,7 +60,9 @@ async function initCommand(options) {
|
|
|
60
60
|
console.log(chalk.bold.white('Next steps:\n'));
|
|
61
61
|
console.log(chalk.white('1. Open this project in Claude Code (or your AI coding assistant)'));
|
|
62
62
|
console.log(chalk.white('2. Run the slash command: ') + chalk.bold.green('/telos-init'));
|
|
63
|
-
console.log(chalk.white('3.
|
|
63
|
+
console.log(chalk.white('3. AI will analyze your codebase and propose a 9-level purpose hierarchy'));
|
|
64
|
+
console.log(chalk.white('4. Review strategic layers (L9-L5) and provide refinements'));
|
|
65
|
+
console.log(chalk.white('5. AI generates .telos/TELOS.md and updates your config files\n'));
|
|
64
66
|
|
|
65
67
|
console.log(chalk.dim('Available commands after initialization:'));
|
|
66
68
|
console.log(chalk.dim(' /telos-init - Initialize Telos with interactive review'));
|
package/package.json
CHANGED
package/templates/AGENTS.md
CHANGED
|
@@ -13,32 +13,32 @@ specialized agent.
|
|
|
13
13
|
|
|
14
14
|
These agents handle high-level purpose, strategy, and user experience:
|
|
15
15
|
|
|
16
|
-
- **L9: Telos-Guardian** (
|
|
16
|
+
- **L9: Telos-Guardian** (`.telos/agents/l9-telos-guardian.md`) - Ultimate
|
|
17
17
|
purpose keeper
|
|
18
|
-
- **L8: Market-Analyst** (
|
|
18
|
+
- **L8: Market-Analyst** (`.telos/agents/l8-market-analyst.md`) - Business value
|
|
19
19
|
measurer
|
|
20
|
-
- **L7: Insight-Synthesizer** (
|
|
20
|
+
- **L7: Insight-Synthesizer** (`.telos/agents/l7-insight-synthesizer.md`) -
|
|
21
21
|
Product strategist
|
|
22
|
-
- **L6: UX-Simulator** (
|
|
23
|
-
- **L5: Journey-Validator** (
|
|
22
|
+
- **L6: UX-Simulator** (`.telos/agents/l6-ux-simulator.md`) - Experience designer
|
|
23
|
+
- **L5: Journey-Validator** (`.telos/agents/l5-journey-validator.md`) - Workflow
|
|
24
24
|
verifier
|
|
25
25
|
|
|
26
26
|
### Technical Layers (L4-L1)
|
|
27
27
|
|
|
28
28
|
These agents handle implementation details and code quality:
|
|
29
29
|
|
|
30
|
-
- **L4: Integration-Contractor** (
|
|
30
|
+
- **L4: Integration-Contractor** (`.telos/agents/l4-integration-contractor.md`) -
|
|
31
31
|
API contract enforcer
|
|
32
|
-
- **L3: Component-Architect** (
|
|
32
|
+
- **L3: Component-Architect** (`.telos/agents/l3-component-architect.md`) -
|
|
33
33
|
Component designer
|
|
34
|
-
- **L2: Function-Author** (
|
|
34
|
+
- **L2: Function-Author** (`.telos/agents/l2-function-author.md`) - Function
|
|
35
35
|
implementer
|
|
36
|
-
- **L1: Syntax-Linter** (
|
|
36
|
+
- **L1: Syntax-Linter** (`.telos/agents/l1-syntax-linter.md`) - Code quality
|
|
37
37
|
enforcer
|
|
38
38
|
|
|
39
39
|
## Telos-Logos System
|
|
40
40
|
|
|
41
|
-
**Telos** (purpose) is defined in
|
|
41
|
+
**Telos** (purpose) is defined in `.telos/TELOS.md` - the ultimate goal
|
|
42
42
|
this project serves.
|
|
43
43
|
|
|
44
44
|
**Logos** (logic) is managed by the orchestrator in `logos/orchestrator.js` -
|
package/templates/CLAUDE.md
CHANGED
|
@@ -6,10 +6,10 @@ This project uses the **Telos Framework** for purpose-driven development.
|
|
|
6
6
|
|
|
7
7
|
1. **Check Telos hierarchy**: Run `/telos-status` to see the 9-level purpose
|
|
8
8
|
structure
|
|
9
|
-
2. **Understand the purpose**: Read
|
|
9
|
+
2. **Understand the purpose**: Read `.telos/TELOS.md` for ultimate
|
|
10
10
|
project goals
|
|
11
11
|
3. **Consult the right agent**: Check the appropriate agent definition in
|
|
12
|
-
|
|
12
|
+
`.telos/agents/`
|
|
13
13
|
|
|
14
14
|
## Agent Responsibilities
|
|
15
15
|
|
|
@@ -17,15 +17,15 @@ When working on different types of tasks, reference the corresponding agent:
|
|
|
17
17
|
|
|
18
18
|
| Task Type | Consult Agent | File |
|
|
19
19
|
| --------------------------- | --------------------------- | ------------------------------------------- |
|
|
20
|
-
| Project direction decisions | Telos-Guardian (L9) |
|
|
21
|
-
| Business value questions | Market-Analyst (L8) |
|
|
22
|
-
| Product strategy | Insight-Synthesizer (L7) |
|
|
23
|
-
| UX/design decisions | UX-Simulator (L6) |
|
|
24
|
-
| User workflow validation | Journey-Validator (L5) |
|
|
25
|
-
| API changes | Integration-Contractor (L4) |
|
|
26
|
-
| Component design | Component-Architect (L3) |
|
|
27
|
-
| Function implementation | Function-Author (L2) |
|
|
28
|
-
| Code quality | Syntax-Linter (L1) |
|
|
20
|
+
| Project direction decisions | Telos-Guardian (L9) | `.telos/agents/l9-telos-guardian.md` |
|
|
21
|
+
| Business value questions | Market-Analyst (L8) | `.telos/agents/l8-market-analyst.md` |
|
|
22
|
+
| Product strategy | Insight-Synthesizer (L7) | `.telos/agents/l7-insight-synthesizer.md` |
|
|
23
|
+
| UX/design decisions | UX-Simulator (L6) | `.telos/agents/l6-ux-simulator.md` |
|
|
24
|
+
| User workflow validation | Journey-Validator (L5) | `.telos/agents/l5-journey-validator.md` |
|
|
25
|
+
| API changes | Integration-Contractor (L4) | `.telos/agents/l4-integration-contractor.md` |
|
|
26
|
+
| Component design | Component-Architect (L3) | `.telos/agents/l3-component-architect.md` |
|
|
27
|
+
| Function implementation | Function-Author (L2) | `.telos/agents/l2-function-author.md` |
|
|
28
|
+
| Code quality | Syntax-Linter (L1) | `.telos/agents/l1-syntax-linter.md` |
|
|
29
29
|
|
|
30
30
|
## Validation
|
|
31
31
|
|