Skip to content

Commit 6808ba2

Browse files
author
Marvin Zhang
committed
feat(agents): add link and unlink commands to AGENTS.md for spec relationship management
1 parent 260371e commit 6808ba2

File tree

6 files changed

+17
-4
lines changed

6 files changed

+17
-4
lines changed

packages/cli/templates/detailed/AGENTS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ If you have LeanSpec MCP tools available, **ALWAYS use them**:
2626
| View a spec | `view` | Full content with formatting |
2727
| Create new spec | `create` | Auto-sequences, proper structure |
2828
| Update spec | `update` | Validates transitions, timestamps |
29+
| Link specs | `link` | Add relationships (depends_on, related) |
30+
| Unlink specs | `unlink` | Remove relationships |
2931
| Check dependencies | `deps` | Visual dependency graph |
3032

3133
**Why MCP over CLI?**
@@ -44,6 +46,8 @@ lean-spec list # See all specs
4446
lean-spec search "query" # Find relevant specs
4547
lean-spec create <name> # Create new spec
4648
lean-spec update <spec> --status <status> # Update status
49+
lean-spec link <spec> --related <other> # Add relationships
50+
lean-spec unlink <spec> --related <other> # Remove relationships
4751
lean-spec deps <spec> # Show dependencies
4852
```
4953

packages/cli/templates/standard/AGENTS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ If you have LeanSpec MCP tools available, **ALWAYS use them**:
2626
| View a spec | `view` | Full content with formatting |
2727
| Create new spec | `create` | Auto-sequences, proper structure |
2828
| Update spec | `update` | Validates transitions, timestamps |
29+
| Link specs | `link` | Add relationships (depends_on, related) |
30+
| Unlink specs | `unlink` | Remove relationships |
2931
| Check dependencies | `deps` | Visual dependency graph |
3032

3133
**Why MCP over CLI?**
@@ -44,6 +46,8 @@ lean-spec list # See all specs
4446
lean-spec search "query" # Find relevant specs
4547
lean-spec create <name> # Create new spec
4648
lean-spec update <spec> --status <status> # Update status
49+
lean-spec link <spec> --related <other> # Add relationships
50+
lean-spec unlink <spec> --related <other> # Remove relationships
4751
lean-spec deps <spec> # Show dependencies
4852
```
4953

specs/063-migration-from-existing-tools/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@ tags:
88
- v0.2
99
priority: high
1010
created_at: '2025-11-10T05:35:31.293Z'
11-
updated_at: '2025-11-10T06:48:06.343Z'
11+
updated_at: '2025-11-28T01:50:23.546Z'
1212
transitions:
1313
- status: in-progress
1414
at: '2025-11-10T06:39:58.417Z'
1515
- status: complete
1616
at: '2025-11-10T06:48:06.343Z'
1717
completed_at: '2025-11-10T06:48:06.343Z'
1818
completed: '2025-11-10'
19+
related:
20+
- 128-constant-time-migration
1921
---
2022

2123
# Migration from Existing SDD Tools

specs/128-constant-time-migration/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ tags:
88
- performance
99
priority: high
1010
created_at: '2025-11-28T01:21:44.679Z'
11-
updated_at: '2025-11-28T01:41:34.566Z'
11+
updated_at: '2025-11-28T01:50:23.783Z'
1212
related:
1313
- 047-git-backfill-timestamps
14+
- 063-migration-from-existing-tools
15+
- 129-mcp-link-tool
1416
transitions:
1517
- status: in-progress
1618
at: '2025-11-28T01:37:15.462Z'

specs/129-mcp-link-tool/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ priority: high
1010
created_at: '2025-11-28T01:27:53.890Z'
1111
related:
1212
- 085-cli-relationship-commands
13-
updated_at: '2025-11-28T01:41:34.563Z'
13+
- 128-constant-time-migration
14+
updated_at: '2025-11-28T01:50:23.786Z'
1415
transitions:
1516
- status: in-progress
1617
at: '2025-11-28T01:37:15.477Z'

0 commit comments

Comments
 (0)