wtf-p 0.3.0 → 0.5.0
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/README.md +146 -208
- package/bin/commands/doctor.js +88 -2
- package/bin/commands/install-logic.js +127 -36
- package/bin/commands/status.js +22 -4
- package/bin/commands/update.js +5 -4
- package/bin/install.js +66 -26
- package/bin/lib/analyze-impact.js +105 -0
- package/bin/lib/bib-format.js +161 -0
- package/bin/lib/bib-index.js +104 -0
- package/bin/lib/checkpoint.js +183 -0
- package/bin/lib/citation-fetcher.js +299 -0
- package/bin/lib/citation-ranker.js +133 -0
- package/bin/lib/context-primer.js +214 -0
- package/bin/lib/manifest.js +80 -2
- package/bin/lib/scholar-lookup.js +188 -0
- package/bin/lib/semantic-scholar.js +184 -0
- package/bin/lib/utils.js +22 -1
- package/bin/uninstall.js +270 -111
- package/core/write-the-f-paper/references/agent-model-matrix.md +62 -0
- package/core/write-the-f-paper/references/checkpoints.md +160 -9
- package/core/write-the-f-paper/references/context-fidelity.md +153 -0
- package/core/write-the-f-paper/references/deviation-rules.md +150 -0
- package/core/write-the-f-paper/references/git-integration.md +80 -0
- package/core/write-the-f-paper/references/orchestrator-pattern.md +167 -0
- package/core/write-the-f-paper/references/planning-config.md +135 -0
- package/core/write-the-f-paper/references/ui-brand.md +186 -0
- package/core/write-the-f-paper/templates/UAT.md +80 -0
- package/core/write-the-f-paper/templates/base-prefs.yaml +42 -0
- package/core/write-the-f-paper/templates/config.json +31 -5
- package/core/write-the-f-paper/workflows/create-outline.wcn.md +1 -1
- package/core/write-the-f-paper/workflows/execute-outline.md +163 -0
- package/core/write-the-f-paper/workflows/execute-outline.wcn.md +73 -0
- package/core/write-the-f-paper/workflows/execute-section.wcn.md +141 -169
- package/core/write-the-f-paper/workflows/plan-section.wcn.md +96 -103
- package/core/write-the-f-paper/workflows/research-gap.md +27 -3
- package/core/write-the-f-paper/workflows/research-gap.wcn.md +18 -1
- package/core/write-the-f-paper/workflows/verify-work.md +251 -0
- package/core/write-the-f-paper/workflows/verify-work.wcn.md +74 -0
- package/package.json +19 -7
- package/vendors/claude/.claude-plugin/plugin.json +2 -2
- package/vendors/claude/agents/wtfp/argument-verifier.md +189 -0
- package/vendors/claude/agents/wtfp/citation-expert.md +45 -0
- package/vendors/claude/agents/wtfp/citation-formatter.md +42 -0
- package/vendors/claude/agents/wtfp/coherence-checker.md +167 -0
- package/vendors/claude/agents/wtfp/outliner.md +259 -0
- package/vendors/claude/agents/wtfp/plan-checker.md +249 -0
- package/vendors/claude/agents/wtfp/prose-polisher.md +166 -0
- package/vendors/claude/agents/wtfp/research-synthesizer.md +215 -0
- package/vendors/claude/agents/wtfp/section-planner.md +364 -0
- package/vendors/claude/agents/wtfp/section-reviewer.md +182 -0
- package/vendors/claude/agents/wtfp/section-writer.md +312 -0
- package/vendors/claude/commands/wtfp/add-todo.md +108 -0
- package/vendors/claude/commands/wtfp/analyze-bib.md +60 -249
- package/vendors/claude/commands/wtfp/audit-milestone.md +286 -0
- package/vendors/claude/commands/wtfp/check-refs.md +60 -131
- package/vendors/claude/commands/wtfp/check-todos.md +152 -0
- package/vendors/claude/commands/wtfp/checkpoint.md +105 -0
- package/vendors/claude/commands/wtfp/contribute.md +1 -1
- package/vendors/claude/commands/wtfp/create-outline.md +109 -195
- package/vendors/claude/commands/wtfp/create-poster.md +1 -1
- package/vendors/claude/commands/wtfp/create-slides.md +1 -1
- package/vendors/claude/commands/wtfp/discuss-section.md +1 -1
- package/vendors/claude/commands/wtfp/execute-outline.md +257 -0
- package/vendors/claude/commands/wtfp/export-latex.md +1 -1
- package/vendors/claude/commands/wtfp/help.md +174 -280
- package/vendors/claude/commands/wtfp/insert-section.md +1 -1
- package/vendors/claude/commands/wtfp/list-assumptions.md +1 -1
- package/vendors/claude/commands/wtfp/map-project.md +35 -124
- package/vendors/claude/commands/wtfp/new-paper.md +88 -362
- package/vendors/claude/commands/wtfp/pause-writing.md +1 -1
- package/vendors/claude/commands/wtfp/plan-milestone-gaps.md +255 -0
- package/vendors/claude/commands/wtfp/plan-revision.md +1 -1
- package/vendors/claude/commands/wtfp/plan-section.md +165 -190
- package/vendors/claude/commands/wtfp/polish-prose.md +66 -118
- package/vendors/claude/commands/wtfp/progress.md +82 -254
- package/vendors/claude/commands/wtfp/quick.md +107 -0
- package/vendors/claude/commands/wtfp/remove-section.md +1 -1
- package/vendors/claude/commands/wtfp/report-bug.md +1 -1
- package/vendors/claude/commands/wtfp/request-feature.md +1 -1
- package/vendors/claude/commands/wtfp/research-gap.md +138 -151
- package/vendors/claude/commands/wtfp/resume-writing.md +1 -1
- package/vendors/claude/commands/wtfp/review-section.md +55 -333
- package/vendors/claude/commands/wtfp/settings.md +197 -0
- package/vendors/claude/commands/wtfp/submit-milestone.md +248 -99
- package/vendors/claude/commands/wtfp/update.md +112 -0
- package/vendors/claude/commands/wtfp/verify-work.md +254 -0
- package/vendors/claude/commands/wtfp/write-section.md +144 -180
- package/vendors/claude/mcp/research-server/package.json +13 -0
- package/vendors/claude/mcp/research-server/src/index.js +133 -0
- package/vendors/gemini/agents/wtfp/argument-verifier.md +184 -0
- package/vendors/gemini/agents/wtfp/citation-expert.md +41 -0
- package/vendors/gemini/agents/wtfp/citation-formatter.md +38 -0
- package/vendors/gemini/agents/wtfp/coherence-checker.md +162 -0
- package/vendors/gemini/agents/wtfp/outliner.md +252 -0
- package/vendors/gemini/agents/wtfp/plan-checker.md +244 -0
- package/vendors/gemini/agents/wtfp/prose-polisher.md +158 -0
- package/vendors/gemini/agents/wtfp/research-synthesizer.md +205 -0
- package/vendors/gemini/agents/wtfp/section-planner.md +355 -0
- package/vendors/gemini/agents/wtfp/section-reviewer.md +175 -0
- package/vendors/gemini/agents/wtfp/section-writer.md +304 -0
- package/vendors/gemini/commands/wtfp/add-todo.toml +102 -0
- package/vendors/gemini/commands/wtfp/analyze-bib.toml +126 -0
- package/vendors/gemini/commands/wtfp/audit-milestone.toml +278 -0
- package/vendors/gemini/commands/wtfp/check-refs.toml +123 -0
- package/vendors/gemini/commands/wtfp/check-todos.toml +145 -0
- package/vendors/gemini/commands/wtfp/checkpoint.toml +96 -0
- package/vendors/gemini/commands/wtfp/contribute.toml +269 -0
- package/vendors/gemini/commands/wtfp/create-outline.toml +180 -0
- package/vendors/gemini/commands/wtfp/create-poster.toml +36 -0
- package/vendors/gemini/commands/wtfp/create-slides.toml +35 -0
- package/vendors/gemini/commands/wtfp/discuss-section.toml +62 -0
- package/vendors/gemini/commands/wtfp/execute-outline.toml +247 -0
- package/vendors/gemini/commands/wtfp/export-latex.toml +209 -0
- package/vendors/gemini/commands/wtfp/help.toml +184 -0
- package/vendors/gemini/commands/wtfp/insert-section.toml +123 -0
- package/vendors/gemini/commands/wtfp/list-assumptions.toml +104 -0
- package/vendors/gemini/commands/wtfp/map-project.toml +99 -0
- package/vendors/gemini/commands/wtfp/new-paper.toml +160 -0
- package/vendors/gemini/commands/wtfp/pause-writing.toml +140 -0
- package/vendors/gemini/commands/wtfp/plan-milestone-gaps.toml +249 -0
- package/vendors/gemini/commands/wtfp/plan-revision.toml +171 -0
- package/vendors/gemini/commands/wtfp/plan-section.toml +212 -0
- package/vendors/gemini/commands/wtfp/polish-prose.toml +114 -0
- package/vendors/gemini/commands/wtfp/progress.toml +145 -0
- package/vendors/gemini/commands/wtfp/quick.toml +96 -0
- package/vendors/gemini/commands/wtfp/remove-section.toml +140 -0
- package/vendors/gemini/commands/wtfp/report-bug.toml +126 -0
- package/vendors/gemini/commands/wtfp/request-feature.toml +155 -0
- package/vendors/gemini/commands/wtfp/research-gap.toml +214 -0
- package/vendors/gemini/commands/wtfp/resume-writing.toml +136 -0
- package/vendors/gemini/commands/wtfp/review-section.toml +121 -0
- package/vendors/gemini/commands/wtfp/settings.toml +191 -0
- package/vendors/gemini/commands/wtfp/submit-milestone.toml +351 -0
- package/vendors/gemini/commands/wtfp/update.toml +107 -0
- package/vendors/gemini/commands/wtfp/verify-work.toml +245 -0
- package/vendors/gemini/commands/wtfp/write-section.toml +228 -0
- package/vendors/opencode/agents/wtfp/argument-verifier.md +184 -0
- package/vendors/opencode/agents/wtfp/citation-expert.md +41 -0
- package/vendors/opencode/agents/wtfp/citation-formatter.md +38 -0
- package/vendors/opencode/agents/wtfp/coherence-checker.md +162 -0
- package/vendors/opencode/agents/wtfp/outliner.md +252 -0
- package/vendors/opencode/agents/wtfp/plan-checker.md +244 -0
- package/vendors/opencode/agents/wtfp/prose-polisher.md +158 -0
- package/vendors/opencode/agents/wtfp/research-synthesizer.md +205 -0
- package/vendors/opencode/agents/wtfp/section-planner.md +355 -0
- package/vendors/opencode/agents/wtfp/section-reviewer.md +175 -0
- package/vendors/opencode/agents/wtfp/section-writer.md +304 -0
- package/vendors/opencode/commands/wtfp/add-todo.md +103 -0
- package/vendors/opencode/commands/wtfp/analyze-bib.md +127 -0
- package/vendors/opencode/commands/wtfp/audit-milestone.md +279 -0
- package/vendors/opencode/commands/wtfp/check-refs.md +124 -0
- package/vendors/opencode/commands/wtfp/check-todos.md +146 -0
- package/vendors/opencode/commands/wtfp/checkpoint.md +97 -0
- package/vendors/opencode/commands/wtfp/contribute.md +266 -0
- package/vendors/opencode/commands/wtfp/create-outline.md +181 -0
- package/vendors/opencode/commands/wtfp/create-poster.md +37 -0
- package/vendors/opencode/commands/wtfp/create-slides.md +36 -0
- package/vendors/opencode/commands/wtfp/discuss-section.md +63 -0
- package/vendors/opencode/commands/wtfp/execute-outline.md +248 -0
- package/vendors/opencode/commands/wtfp/export-latex.md +210 -0
- package/vendors/opencode/commands/wtfp/help.md +185 -0
- package/vendors/opencode/commands/wtfp/insert-section.md +124 -0
- package/vendors/opencode/commands/wtfp/list-assumptions.md +105 -0
- package/vendors/opencode/commands/wtfp/map-project.md +100 -0
- package/vendors/opencode/commands/wtfp/new-paper.md +161 -0
- package/vendors/opencode/commands/wtfp/pause-writing.md +141 -0
- package/vendors/opencode/commands/wtfp/plan-milestone-gaps.md +250 -0
- package/vendors/opencode/commands/wtfp/plan-revision.md +174 -0
- package/vendors/opencode/commands/wtfp/plan-section.md +214 -0
- package/vendors/opencode/commands/wtfp/polish-prose.md +115 -0
- package/vendors/opencode/commands/wtfp/progress.md +146 -0
- package/vendors/opencode/commands/wtfp/quick.md +97 -0
- package/vendors/opencode/commands/wtfp/remove-section.md +141 -0
- package/vendors/opencode/commands/wtfp/report-bug.md +127 -0
- package/vendors/opencode/commands/wtfp/request-feature.md +156 -0
- package/vendors/opencode/commands/wtfp/research-gap.md +215 -0
- package/vendors/opencode/commands/wtfp/resume-writing.md +137 -0
- package/vendors/opencode/commands/wtfp/review-section.md +123 -0
- package/vendors/opencode/commands/wtfp/settings.md +192 -0
- package/vendors/opencode/commands/wtfp/submit-milestone.md +352 -0
- package/vendors/opencode/commands/wtfp/update.md +108 -0
- package/vendors/opencode/commands/wtfp/verify-work.md +246 -0
- package/vendors/opencode/commands/wtfp/write-section.md +228 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: wtfp:map-project
|
|
3
|
-
description:
|
|
3
|
+
description: Index existing drafts, data, and references for a project
|
|
4
4
|
allowed-tools:
|
|
5
5
|
- Read
|
|
6
6
|
- Bash
|
|
@@ -8,172 +8,86 @@ allowed-tools:
|
|
|
8
8
|
- Glob
|
|
9
9
|
- Grep
|
|
10
10
|
- Task
|
|
11
|
+
- AskUserQuestion
|
|
11
12
|
---
|
|
12
13
|
|
|
14
|
+
<execution_context>
|
|
15
|
+
@~/.claude/write-the-f-paper/workflows/map-project.md
|
|
16
|
+
</execution_context>
|
|
17
|
+
|
|
13
18
|
<objective>
|
|
14
19
|
Index existing source materials (literature, data, prior drafts) for a writing project.
|
|
15
20
|
|
|
16
|
-
|
|
17
|
-
- literature.md (bibliography index)
|
|
18
|
-
- data.md (figures, tables, evidence inventory)
|
|
19
|
-
- prior-drafts.md (existing material to incorporate)
|
|
21
|
+
**Orchestrator role:** Detect existing materials, resolve model profile, create `.planning/sources/` with organized references, commit.
|
|
20
22
|
|
|
21
23
|
Use before `/wtfp:new-paper` on existing writing projects.
|
|
22
24
|
</objective>
|
|
23
25
|
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
</
|
|
26
|
+
<context>
|
|
27
|
+
No arguments. Scans current directory for existing materials.
|
|
28
|
+
</context>
|
|
27
29
|
|
|
28
30
|
<process>
|
|
29
31
|
|
|
30
|
-
|
|
31
|
-
**Detect existing materials:**
|
|
32
|
+
## 1. Validate Environment and Resolve Model Profile
|
|
32
33
|
|
|
33
34
|
```bash
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
MODEL_PROFILE=$(cat .planning/config.json 2>/dev/null | grep -o '"model_profile"[[:space:]]*:[[:space:]]*"[^"]*"' | grep -o '"[^"]*"$' | tr -d '"' || echo "balanced")
|
|
36
|
+
```
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
find . -name "*.tex" -o -name "*.md" -o -name "*.docx" 2>/dev/null | grep -v node_modules | grep -v .planning | head -20
|
|
38
|
+
## 2. Detect Existing Materials
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
```bash
|
|
41
|
+
find . -name "*.bib" -o -name "references.md" -o -name "bibliography.md" 2>/dev/null | head -20
|
|
42
|
+
find . -name "*.tex" -o -name "*.md" -o -name "*.docx" 2>/dev/null | grep -v node_modules | grep -v .planning | head -20
|
|
41
43
|
find . -name "*.csv" -o -name "*.json" -o -name "*.xlsx" 2>/dev/null | head -20
|
|
42
|
-
|
|
43
|
-
# Find figures
|
|
44
44
|
find . -name "*.png" -o -name "*.pdf" -o -name "*.svg" -o -name "*.jpg" 2>/dev/null | head -20
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<step name="create_structure">
|
|
50
|
-
**Create sources directory:**
|
|
47
|
+
## 3. Create Sources Directory
|
|
51
48
|
|
|
52
49
|
```bash
|
|
53
50
|
mkdir -p .planning/sources
|
|
54
51
|
```
|
|
55
52
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
<step name="literature">
|
|
59
|
-
**Index literature sources:**
|
|
60
|
-
|
|
61
|
-
If .bib files found:
|
|
62
|
-
- Parse BibTeX entries
|
|
63
|
-
- Extract: key, title, authors, year, relevance
|
|
64
|
-
|
|
65
|
-
Create `.planning/sources/literature.md`:
|
|
53
|
+
## 4. Index Literature
|
|
66
54
|
|
|
67
|
-
|
|
68
|
-
# Literature Index
|
|
69
|
-
|
|
70
|
-
## Core References (cite in paper)
|
|
71
|
-
| Key | Citation | Relevance | Status |
|
|
72
|
-
|-----|----------|-----------|--------|
|
|
73
|
-
| [key] | [Author (Year)] | [why relevant] | Available |
|
|
74
|
-
|
|
75
|
-
## Background Reading
|
|
76
|
-
| Key | Citation | Notes |
|
|
77
|
-
|-----|----------|-------|
|
|
78
|
-
|
|
79
|
-
## To Find
|
|
80
|
-
- [ ] [Missing citations needed]
|
|
81
|
-
|
|
82
|
-
## Sources
|
|
83
|
-
- [path to .bib file]
|
|
84
|
-
- [other source files]
|
|
85
|
-
|
|
86
|
-
---
|
|
87
|
-
*Indexed: [date]*
|
|
88
|
-
```
|
|
55
|
+
If .bib files found, parse via `node ~/.claude/bin/bib-index.js index [file]`.
|
|
89
56
|
|
|
90
|
-
|
|
57
|
+
Write `.planning/sources/literature.md`: Core References table (key, citation, relevance, status), Background Reading, To Find list, source paths.
|
|
91
58
|
|
|
92
|
-
|
|
93
|
-
**Index data and evidence:**
|
|
59
|
+
## 5. Index Data and Evidence
|
|
94
60
|
|
|
95
61
|
Scan for figures, tables, data files.
|
|
96
62
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
```markdown
|
|
100
|
-
# Data & Evidence Inventory
|
|
101
|
-
|
|
102
|
-
## Figures
|
|
103
|
-
| ID | File | Description | Status | Target Section |
|
|
104
|
-
|----|------|-------------|--------|----------------|
|
|
105
|
-
| fig1 | [path] | [description] | Ready/Needs work | [section] |
|
|
106
|
-
|
|
107
|
-
## Tables
|
|
108
|
-
| ID | File/Location | Description | Status |
|
|
109
|
-
|----|---------------|-------------|--------|
|
|
110
|
-
|
|
111
|
-
## Data Files
|
|
112
|
-
| File | Format | Description | Use |
|
|
113
|
-
|------|--------|-------------|-----|
|
|
114
|
-
|
|
115
|
-
## Statistics
|
|
116
|
-
[Any statistical results to report]
|
|
63
|
+
Write `.planning/sources/data.md`: Figures table (ID, file, description, status, target section), Tables, Data Files, Statistics.
|
|
117
64
|
|
|
118
|
-
|
|
119
|
-
*Indexed: [date]*
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
</step>
|
|
123
|
-
|
|
124
|
-
<step name="drafts">
|
|
125
|
-
**Index prior drafts:**
|
|
65
|
+
## 6. Index Prior Drafts
|
|
126
66
|
|
|
127
67
|
Scan for existing writing.
|
|
128
68
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
```markdown
|
|
132
|
-
# Prior Drafts & Notes
|
|
133
|
-
|
|
134
|
-
## Existing Documents
|
|
135
|
-
| File | Type | Description | Usable? | Target Section |
|
|
136
|
-
|------|------|-------------|---------|----------------|
|
|
137
|
-
| [path] | [draft/notes/outline] | [description] | [yes/partial/no] | [section] |
|
|
69
|
+
Write `.planning/sources/prior-drafts.md`: Existing Documents table (file, type, description, usable, target section), Key Passages, Material to Avoid.
|
|
138
70
|
|
|
139
|
-
##
|
|
140
|
-
[Notable excerpts worth keeping]
|
|
71
|
+
## 7. Commit
|
|
141
72
|
|
|
142
|
-
## Material to Avoid
|
|
143
|
-
[Content that shouldn't be reused]
|
|
144
|
-
|
|
145
|
-
---
|
|
146
|
-
*Indexed: [date]*
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
</step>
|
|
150
|
-
|
|
151
|
-
<step name="commit">
|
|
152
73
|
```bash
|
|
153
74
|
git add .planning/sources/
|
|
154
|
-
git commit -m "
|
|
155
|
-
docs: index source materials
|
|
156
|
-
|
|
157
|
-
Literature: [N] references
|
|
158
|
-
Data: [N] figures, [N] tables
|
|
159
|
-
Prior drafts: [N] documents
|
|
160
|
-
EOF
|
|
161
|
-
)"
|
|
75
|
+
git commit -m "docs: index source materials"
|
|
162
76
|
```
|
|
163
77
|
|
|
164
|
-
</
|
|
78
|
+
</process>
|
|
165
79
|
|
|
166
|
-
<
|
|
167
|
-
**Present completion:**
|
|
80
|
+
<offer_next>
|
|
168
81
|
|
|
169
|
-
|
|
170
|
-
|
|
82
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
83
|
+
WTF-P ► SOURCES INDEXED ✓
|
|
84
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
171
85
|
|
|
172
86
|
- Literature: .planning/sources/literature.md ([N] references)
|
|
173
87
|
- Data: .planning/sources/data.md ([N] figures, [N] tables)
|
|
174
88
|
- Prior Drafts: .planning/sources/prior-drafts.md ([N] documents)
|
|
175
89
|
|
|
176
|
-
|
|
90
|
+
───────────────────────────────────────────
|
|
177
91
|
|
|
178
92
|
## ▶ Next Up
|
|
179
93
|
|
|
@@ -181,12 +95,9 @@ Sources indexed:
|
|
|
181
95
|
|
|
182
96
|
`/wtfp:new-paper`
|
|
183
97
|
|
|
184
|
-
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
</step>
|
|
98
|
+
───────────────────────────────────────────
|
|
188
99
|
|
|
189
|
-
</
|
|
100
|
+
</offer_next>
|
|
190
101
|
|
|
191
102
|
<success_criteria>
|
|
192
103
|
- [ ] All existing materials discovered
|