@flydocs/cli 0.6.0-alpha.5 → 0.6.0-alpha.6
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/dist/cli.js +1 -1
- package/package.json +1 -1
- package/template/.claude/CLAUDE.md +10 -8
- package/template/.claude/commands/knowledge.md +61 -0
- package/template/.claude/skills/flydocs-cloud/SKILL.md +31 -23
- package/template/.claude/skills/flydocs-cloud/scripts/create_issue.py +19 -2
- package/template/.claude/skills/flydocs-cloud/scripts/delete_milestone.py +21 -0
- package/template/.claude/skills/flydocs-cloud/scripts/estimate.py +9 -5
- package/template/.claude/skills/flydocs-cloud/scripts/flydocs_api.py +4 -0
- package/template/.claude/skills/flydocs-cloud/scripts/get_estimate_scale.py +23 -0
- package/template/.claude/skills/flydocs-cloud/scripts/refresh_labels.py +87 -0
- package/template/.claude/skills/flydocs-cloud/scripts/set_identity.py +38 -0
- package/template/.claude/skills/flydocs-cloud/scripts/set_preferences.py +49 -0
- package/template/.claude/skills/flydocs-cloud/scripts/update_issue.py +22 -4
- package/template/.claude/skills/flydocs-cloud/scripts/update_milestone.py +42 -0
- package/template/.claude/skills/flydocs-workflow/SKILL.md +23 -18
- package/template/.claude/skills/flydocs-workflow/reference/comment-templates.md +1 -0
- package/template/.claude/skills/flydocs-workflow/reference/pr-workflow.md +105 -0
- package/template/.claude/skills/flydocs-workflow/reference/priority-estimates.md +37 -15
- package/template/.claude/skills/flydocs-workflow/session.md +24 -16
- package/template/.claude/skills/flydocs-workflow/stages/capture.md +8 -3
- package/template/.claude/skills/flydocs-workflow/stages/close.md +4 -3
- package/template/.claude/skills/flydocs-workflow/stages/implement.md +28 -4
- package/template/.claude/skills/flydocs-workflow/stages/refine.md +20 -4
- package/template/.claude/skills/flydocs-workflow/stages/review.md +14 -2
- package/template/.flydocs/config.json +1 -1
- package/template/.flydocs/version +1 -1
- package/template/AGENTS.md +8 -8
- package/template/flydocs/knowledge/INDEX.md +38 -53
- package/template/flydocs/knowledge/README.md +60 -9
- package/template/flydocs/knowledge/templates/decision.md +47 -0
- package/template/flydocs/knowledge/templates/feature.md +35 -0
- package/template/flydocs/knowledge/templates/note.md +25 -0
- package/template/manifest.json +8 -2
|
@@ -4,97 +4,82 @@
|
|
|
4
4
|
AGENT INSTRUCTIONS:
|
|
5
5
|
- Scan this file FIRST when looking for existing knowledge
|
|
6
6
|
- Use descriptions to assess relevance before loading full docs
|
|
7
|
-
- Update this index when adding
|
|
7
|
+
- Update this index when adding or modifying knowledge docs
|
|
8
|
+
- Always use real dates, never leave as YYYY-MM-DD
|
|
8
9
|
-->
|
|
9
10
|
|
|
10
11
|
## Quick Reference
|
|
11
12
|
|
|
12
|
-
| Category
|
|
13
|
-
|
|
14
|
-
| Decisions | 0
|
|
15
|
-
| Features
|
|
16
|
-
| Notes
|
|
17
|
-
| Product
|
|
13
|
+
| Category | Count | Last Updated |
|
|
14
|
+
| --------- | ----- | ------------ |
|
|
15
|
+
| Decisions | 0 | - |
|
|
16
|
+
| Features | 0 | - |
|
|
17
|
+
| Notes | 0 | - |
|
|
18
|
+
| Product | 2 | - |
|
|
18
19
|
|
|
19
20
|
---
|
|
20
21
|
|
|
21
|
-
##
|
|
22
|
+
## Decisions (ADRs)
|
|
22
23
|
|
|
23
|
-
Architecture Decision Records
|
|
24
|
+
Architecture Decision Records — why we made key technical choices.
|
|
24
25
|
|
|
25
|
-
| ID
|
|
26
|
-
|
|
27
|
-
| -
|
|
26
|
+
| ID | Title | Status | Date |
|
|
27
|
+
| --- | ------------------------- | ------ | ---- |
|
|
28
|
+
| - | No decisions recorded yet | - | - |
|
|
28
29
|
|
|
29
30
|
<!-- Example:
|
|
30
|
-
| 001 | Use Convex for Backend | Accepted |
|
|
31
|
-
|
|
31
|
+
| 001 | Use Convex for Backend | Accepted | 2026-01-15 |
|
|
32
|
+
-> Explains why we chose Convex over traditional REST API
|
|
32
33
|
-->
|
|
33
34
|
|
|
34
35
|
---
|
|
35
36
|
|
|
36
|
-
##
|
|
37
|
+
## Features
|
|
37
38
|
|
|
38
39
|
Documentation for complex features that need more than a spec.
|
|
39
40
|
|
|
40
|
-
| Feature | Description
|
|
41
|
-
|
|
42
|
-
| -
|
|
41
|
+
| Feature | Description | Last Updated |
|
|
42
|
+
| ------- | ------------------- | ------------ |
|
|
43
|
+
| - | No feature docs yet | - |
|
|
43
44
|
|
|
44
45
|
<!-- Example:
|
|
45
|
-
| auth-system | Complete auth flow documentation |
|
|
46
|
-
|
|
46
|
+
| auth-system | Complete auth flow documentation | 2026-02-01 |
|
|
47
|
+
-> OAuth setup, session handling, role-based access
|
|
47
48
|
-->
|
|
48
49
|
|
|
49
50
|
---
|
|
50
51
|
|
|
51
|
-
##
|
|
52
|
+
## Notes
|
|
52
53
|
|
|
53
54
|
Technical discoveries, gotchas, learnings.
|
|
54
55
|
|
|
55
|
-
| Topic | Description
|
|
56
|
-
|
|
57
|
-
| -
|
|
56
|
+
| Topic | Description | Added |
|
|
57
|
+
| ----- | ------------ | ----- |
|
|
58
|
+
| - | No notes yet | - |
|
|
58
59
|
|
|
59
60
|
<!-- Example:
|
|
60
|
-
| api-rate-limits | Third-party API quirks and workarounds |
|
|
61
|
-
|
|
61
|
+
| api-rate-limits | Third-party API quirks and workarounds | 2026-01-20 |
|
|
62
|
+
-> Stripe webhook retries, Figma API limits, etc.
|
|
62
63
|
-->
|
|
63
64
|
|
|
64
65
|
---
|
|
65
66
|
|
|
66
|
-
##
|
|
67
|
+
## Product
|
|
67
68
|
|
|
68
69
|
User research and product documentation.
|
|
69
70
|
|
|
70
|
-
| Document
|
|
71
|
-
|
|
72
|
-
| personas.md
|
|
73
|
-
| user-flows.md | Key user journeys
|
|
71
|
+
| Document | Description | Last Updated |
|
|
72
|
+
| ------------- | -------------------- | ------------ |
|
|
73
|
+
| personas.md | Target user profiles | - |
|
|
74
|
+
| user-flows.md | Key user journeys | - |
|
|
74
75
|
|
|
75
76
|
---
|
|
76
77
|
|
|
77
78
|
## How to Add Knowledge
|
|
78
79
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
### New Feature Doc
|
|
86
|
-
```bash
|
|
87
|
-
# Create: flydocs/knowledge/features/feature-name.md
|
|
88
|
-
# Update: This index with new entry
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
### New Note
|
|
92
|
-
```bash
|
|
93
|
-
# Create: flydocs/knowledge/notes/topic-name.md
|
|
94
|
-
# Update: This index with new entry
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
---
|
|
98
|
-
|
|
99
|
-
*Last Updated: YYYY-MM-DD*
|
|
100
|
-
|
|
80
|
+
1. Choose the category: decision, feature, note, or product
|
|
81
|
+
2. Copy the template from `templates/<category>.md`
|
|
82
|
+
3. Fill in the frontmatter (title, created date, related issues)
|
|
83
|
+
4. Write the content following the template structure
|
|
84
|
+
5. Add an entry to this index with a concise description
|
|
85
|
+
6. Use the `/knowledge` command for a guided flow
|
|
@@ -6,42 +6,78 @@ This directory contains project knowledge that accumulates over time.
|
|
|
6
6
|
|
|
7
7
|
```
|
|
8
8
|
knowledge/
|
|
9
|
-
├── INDEX.md
|
|
10
|
-
├──
|
|
11
|
-
├──
|
|
12
|
-
├──
|
|
13
|
-
|
|
9
|
+
├── INDEX.md # Start here — inventory of all knowledge
|
|
10
|
+
├── templates/ # Structural templates for each category
|
|
11
|
+
├── decisions/ # Architecture Decision Records (ADRs)
|
|
12
|
+
├── features/ # Complex feature documentation
|
|
13
|
+
├── notes/ # Technical discoveries and learnings
|
|
14
|
+
└── product/ # User research and product docs
|
|
14
15
|
```
|
|
15
16
|
|
|
16
|
-
##
|
|
17
|
+
## Templates
|
|
18
|
+
|
|
19
|
+
Use templates from `templates/` when creating new knowledge docs. Each template includes
|
|
20
|
+
a frontmatter block with required metadata fields.
|
|
21
|
+
|
|
22
|
+
### Required Frontmatter
|
|
23
|
+
|
|
24
|
+
All knowledge docs must include YAML frontmatter:
|
|
25
|
+
|
|
26
|
+
```yaml
|
|
27
|
+
---
|
|
28
|
+
title: "Descriptive title"
|
|
29
|
+
created: 2026-03-17
|
|
30
|
+
lastUpdated: 2026-03-17
|
|
31
|
+
relatedIssues: [FLY-123, FLY-456]
|
|
32
|
+
---
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Additional fields vary by category — see the template for each type.
|
|
36
|
+
|
|
37
|
+
**Always update `lastUpdated`** when modifying an existing doc.
|
|
38
|
+
|
|
39
|
+
## When to Create Knowledge
|
|
17
40
|
|
|
18
41
|
### Decisions (`decisions/`)
|
|
42
|
+
|
|
19
43
|
Add an ADR when you make a significant technical choice:
|
|
44
|
+
|
|
20
45
|
- Choosing a framework or library
|
|
21
46
|
- Designing a system architecture
|
|
22
47
|
- Establishing a pattern that others should follow
|
|
48
|
+
- Rejecting an approach (document why, so others don't repeat the investigation)
|
|
23
49
|
|
|
24
50
|
**Format**: `NNN-title.md` (e.g., `001-use-convex.md`)
|
|
51
|
+
**Template**: `templates/decision.md`
|
|
25
52
|
|
|
26
53
|
### Features (`features/`)
|
|
54
|
+
|
|
27
55
|
Add feature documentation when:
|
|
56
|
+
|
|
28
57
|
- A feature is too complex for just a spec
|
|
29
58
|
- Multiple specs relate to one system
|
|
30
59
|
- Future developers will need deep context
|
|
31
60
|
|
|
32
61
|
**Format**: `feature-name.md` (e.g., `auth-system.md`)
|
|
62
|
+
**Template**: `templates/feature.md`
|
|
33
63
|
|
|
34
64
|
### Notes (`notes/`)
|
|
65
|
+
|
|
35
66
|
Add notes when you discover:
|
|
67
|
+
|
|
36
68
|
- API quirks or gotchas
|
|
37
69
|
- Performance optimizations
|
|
38
70
|
- Debugging techniques
|
|
39
71
|
- Third-party service behaviors
|
|
72
|
+
- Workarounds that aren't obvious from code
|
|
40
73
|
|
|
41
74
|
**Format**: `topic-name.md` (e.g., `stripe-webhooks.md`)
|
|
75
|
+
**Template**: `templates/note.md`
|
|
42
76
|
|
|
43
77
|
### Product (`product/`)
|
|
78
|
+
|
|
44
79
|
Add product docs for:
|
|
80
|
+
|
|
45
81
|
- User personas
|
|
46
82
|
- User flows and journeys
|
|
47
83
|
- Research findings
|
|
@@ -49,14 +85,29 @@ Add product docs for:
|
|
|
49
85
|
|
|
50
86
|
**Format**: `document-name.md` (e.g., `personas.md`)
|
|
51
87
|
|
|
88
|
+
## When to Prompt for Knowledge Capture
|
|
89
|
+
|
|
90
|
+
Proactively suggest creating a knowledge doc when:
|
|
91
|
+
|
|
92
|
+
- An architectural decision was made during implementation
|
|
93
|
+
- A non-obvious workaround or debugging technique was discovered
|
|
94
|
+
- A third-party API or integration behavior was learned through trial and error
|
|
95
|
+
- A pattern was established that future work should follow
|
|
96
|
+
- A significant feature was completed that spans multiple issues
|
|
97
|
+
|
|
98
|
+
The `/knowledge` command provides a guided flow for creating docs.
|
|
99
|
+
|
|
52
100
|
## Always Update INDEX.md
|
|
53
101
|
|
|
54
|
-
When adding any knowledge document
|
|
102
|
+
When adding or modifying any knowledge document:
|
|
103
|
+
|
|
104
|
+
1. Add or update the entry in `INDEX.md`
|
|
105
|
+
2. Set the date to the current date (never leave as `YYYY-MM-DD`)
|
|
106
|
+
3. Write a concise description that helps agents assess relevance without loading the full doc
|
|
55
107
|
|
|
56
108
|
## Relationship to Specs
|
|
57
109
|
|
|
58
|
-
- **Specs** (in
|
|
110
|
+
- **Specs** (in issue tracker) = What we're building now
|
|
59
111
|
- **Knowledge** (here) = What we've learned that persists
|
|
60
112
|
|
|
61
113
|
Specs reference knowledge. Knowledge grows from implementing specs.
|
|
62
|
-
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: NNN
|
|
3
|
+
title: "[Decision title]"
|
|
4
|
+
status: proposed | accepted | deprecated | superseded
|
|
5
|
+
created: YYYY-MM-DD
|
|
6
|
+
lastUpdated: YYYY-MM-DD
|
|
7
|
+
relatedIssues: []
|
|
8
|
+
supersededBy: null
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# NNN — [Decision Title]
|
|
12
|
+
|
|
13
|
+
## Status
|
|
14
|
+
|
|
15
|
+
[Proposed | Accepted | Deprecated | Superseded by NNN]
|
|
16
|
+
|
|
17
|
+
## Context
|
|
18
|
+
|
|
19
|
+
[What is the problem or situation that requires a decision? Include relevant constraints, requirements, and prior art.]
|
|
20
|
+
|
|
21
|
+
## Decision
|
|
22
|
+
|
|
23
|
+
[What was decided. Be specific — name the technology, pattern, or approach chosen.]
|
|
24
|
+
|
|
25
|
+
## Alternatives Considered
|
|
26
|
+
|
|
27
|
+
| Option | Pros | Cons |
|
|
28
|
+
| --------------- | ------------ | -------------------- |
|
|
29
|
+
| [Chosen option] | [Advantages] | [Tradeoffs accepted] |
|
|
30
|
+
| [Alternative 1] | [Advantages] | [Why not chosen] |
|
|
31
|
+
| [Alternative 2] | [Advantages] | [Why not chosen] |
|
|
32
|
+
|
|
33
|
+
## Consequences
|
|
34
|
+
|
|
35
|
+
**Positive:**
|
|
36
|
+
|
|
37
|
+
- [Benefit 1]
|
|
38
|
+
- [Benefit 2]
|
|
39
|
+
|
|
40
|
+
**Negative / Tradeoffs:**
|
|
41
|
+
|
|
42
|
+
- [Tradeoff 1]
|
|
43
|
+
- [Tradeoff 2]
|
|
44
|
+
|
|
45
|
+
**Follow-up actions:**
|
|
46
|
+
|
|
47
|
+
- [Action needed as a result of this decision]
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "[Feature name]"
|
|
3
|
+
status: draft | current | deprecated
|
|
4
|
+
created: YYYY-MM-DD
|
|
5
|
+
lastUpdated: YYYY-MM-DD
|
|
6
|
+
relatedIssues: []
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# [Feature Name]
|
|
10
|
+
|
|
11
|
+
## Overview
|
|
12
|
+
|
|
13
|
+
[What this feature does and why it exists. 2-3 sentences.]
|
|
14
|
+
|
|
15
|
+
## Architecture
|
|
16
|
+
|
|
17
|
+
[How the feature is structured — key components, data flow, integration points.]
|
|
18
|
+
|
|
19
|
+
## Key Files
|
|
20
|
+
|
|
21
|
+
| File | Purpose |
|
|
22
|
+
| -------------- | ------------------------------ |
|
|
23
|
+
| `path/to/file` | [What it does in this feature] |
|
|
24
|
+
|
|
25
|
+
## Behaviors
|
|
26
|
+
|
|
27
|
+
[Important behaviors, edge cases, or business rules that aren't obvious from code alone.]
|
|
28
|
+
|
|
29
|
+
## Configuration
|
|
30
|
+
|
|
31
|
+
[Any config, env vars, or feature flags that affect this feature.]
|
|
32
|
+
|
|
33
|
+
## Related
|
|
34
|
+
|
|
35
|
+
- [Links to related issues, decisions, or other knowledge docs]
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "[Note title]"
|
|
3
|
+
category: discovery | gotcha | optimization | debugging | integration
|
|
4
|
+
created: YYYY-MM-DD
|
|
5
|
+
lastUpdated: YYYY-MM-DD
|
|
6
|
+
relatedIssues: []
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# [Note Title]
|
|
10
|
+
|
|
11
|
+
## Summary
|
|
12
|
+
|
|
13
|
+
[One-paragraph summary of the discovery, gotcha, or learning.]
|
|
14
|
+
|
|
15
|
+
## Details
|
|
16
|
+
|
|
17
|
+
[Full explanation. Include code examples, error messages, or configuration details as relevant.]
|
|
18
|
+
|
|
19
|
+
## Impact
|
|
20
|
+
|
|
21
|
+
[What this affects — which parts of the system, which workflows, which developers need to know.]
|
|
22
|
+
|
|
23
|
+
## Resolution / Workaround
|
|
24
|
+
|
|
25
|
+
[If applicable — what was done to address this, or how to work around it.]
|
package/template/manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.6.0-alpha.
|
|
2
|
+
"version": "0.6.0-alpha.6",
|
|
3
3
|
"description": "FlyDocs Core - Manifest of all managed files",
|
|
4
4
|
"repository": "github.com/plastrlab/flydocs-core",
|
|
5
5
|
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
".claude/commands/start-session.md",
|
|
46
46
|
".claude/commands/status.md",
|
|
47
47
|
".claude/commands/validate.md",
|
|
48
|
+
".claude/commands/knowledge.md",
|
|
48
49
|
".claude/commands/wrap-session.md",
|
|
49
50
|
".claude/skills/README.md",
|
|
50
51
|
".cursor/hooks.json",
|
|
@@ -96,6 +97,9 @@
|
|
|
96
97
|
"flydocs/knowledge/product/personas.md",
|
|
97
98
|
"flydocs/knowledge/product/user-flows.md",
|
|
98
99
|
"flydocs/README.md",
|
|
100
|
+
"flydocs/knowledge/templates/decision.md",
|
|
101
|
+
"flydocs/knowledge/templates/feature.md",
|
|
102
|
+
"flydocs/knowledge/templates/note.md",
|
|
99
103
|
"flydocs/design-system/README.md",
|
|
100
104
|
"flydocs/design-system/token-mapping.md",
|
|
101
105
|
"flydocs/design-system/component-patterns.md"
|
|
@@ -125,6 +129,7 @@
|
|
|
125
129
|
"flydocs-update.md",
|
|
126
130
|
"flydocs-upgrade.md",
|
|
127
131
|
"implement.md",
|
|
132
|
+
"knowledge.md",
|
|
128
133
|
"new-project.md",
|
|
129
134
|
"project-update.md",
|
|
130
135
|
"refine.md",
|
|
@@ -177,7 +182,8 @@
|
|
|
177
182
|
],
|
|
178
183
|
"knowledge": {
|
|
179
184
|
"root": ["INDEX.md", "README.md"],
|
|
180
|
-
"product": ["personas.md", "user-flows.md"]
|
|
185
|
+
"product": ["personas.md", "user-flows.md"],
|
|
186
|
+
"templates": ["decision.md", "feature.md", "note.md"]
|
|
181
187
|
}
|
|
182
188
|
},
|
|
183
189
|
"root": ["AGENTS.md", ".env.example"]
|