wtf-p 0.2.0 → 0.3.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.
Files changed (110) hide show
  1. package/README.md +6 -2
  2. package/bin/commands/doctor.js +100 -0
  3. package/bin/commands/install-logic.js +235 -0
  4. package/bin/commands/list.js +88 -0
  5. package/bin/commands/status.js +85 -0
  6. package/bin/commands/update.js +50 -0
  7. package/bin/install.js +78 -629
  8. package/bin/lib/manifest.js +41 -0
  9. package/bin/lib/utils.js +37 -17
  10. package/bin/lib/wcn-compiler.js +226 -0
  11. package/bin/uninstall.js +51 -17
  12. package/core/write-the-f-paper/templates/posters/basic.md +34 -0
  13. package/core/write-the-f-paper/templates/slides/basic.md +31 -0
  14. package/package.json +12 -4
  15. package/vendors/claude/.claude-plugin/plugin.json +12 -0
  16. package/vendors/claude/commands/wtfp/create-poster.md +42 -0
  17. package/vendors/claude/commands/wtfp/create-slides.md +41 -0
  18. package/{commands → vendors/claude/commands}/wtfp/help.md +3 -0
  19. package/vendors/claude/skills/wtfp/echarts/SKILL.md +47 -0
  20. package/vendors/claude/skills/wtfp/marp/SKILL.md +49 -0
  21. /package/{write-the-f-paper → core/write-the-f-paper}/references/checkpoints.md +0 -0
  22. /package/{write-the-f-paper → core/write-the-f-paper}/references/continuation-format.md +0 -0
  23. /package/{write-the-f-paper → core/write-the-f-paper}/references/git-integration.md +0 -0
  24. /package/{write-the-f-paper → core/write-the-f-paper}/references/github-contrib.md +0 -0
  25. /package/{write-the-f-paper → core/write-the-f-paper}/references/imrad-structure.md +0 -0
  26. /package/{write-the-f-paper → core/write-the-f-paper}/references/length-estimation.md +0 -0
  27. /package/{write-the-f-paper → core/write-the-f-paper}/references/plan-format.md +0 -0
  28. /package/{write-the-f-paper → core/write-the-f-paper}/references/principles.md +0 -0
  29. /package/{write-the-f-paper → core/write-the-f-paper}/references/questioning.md +0 -0
  30. /package/{write-the-f-paper → core/write-the-f-paper}/references/research-pitfalls.md +0 -0
  31. /package/{write-the-f-paper → core/write-the-f-paper}/templates/config.json +0 -0
  32. /package/{write-the-f-paper → core/write-the-f-paper}/templates/context.md +0 -0
  33. /package/{write-the-f-paper → core/write-the-f-paper}/templates/continue-here.md +0 -0
  34. /package/{write-the-f-paper → core/write-the-f-paper}/templates/data-inventory.md +0 -0
  35. /package/{write-the-f-paper → core/write-the-f-paper}/templates/discovery.md +0 -0
  36. /package/{write-the-f-paper → core/write-the-f-paper}/templates/issues.md +0 -0
  37. /package/{write-the-f-paper → core/write-the-f-paper}/templates/manuscript.md +0 -0
  38. /package/{write-the-f-paper → core/write-the-f-paper}/templates/narrative-arc.md +0 -0
  39. /package/{write-the-f-paper → core/write-the-f-paper}/templates/outline.md +0 -0
  40. /package/{write-the-f-paper → core/write-the-f-paper}/templates/phase-prompt.md +0 -0
  41. /package/{write-the-f-paper → core/write-the-f-paper}/templates/prior-drafts.md +0 -0
  42. /package/{write-the-f-paper → core/write-the-f-paper}/templates/project-context/argument-structure.md +0 -0
  43. /package/{write-the-f-paper → core/write-the-f-paper}/templates/project-context/bibliography.md +0 -0
  44. /package/{write-the-f-paper → core/write-the-f-paper}/templates/project-context/gaps.md +0 -0
  45. /package/{write-the-f-paper → core/write-the-f-paper}/templates/project-context/imrad.md +0 -0
  46. /package/{write-the-f-paper → core/write-the-f-paper}/templates/project-context/peer-review.md +0 -0
  47. /package/{write-the-f-paper → core/write-the-f-paper}/templates/project-context/style-guide.md +0 -0
  48. /package/{write-the-f-paper → core/write-the-f-paper}/templates/project-context/tools.md +0 -0
  49. /package/{write-the-f-paper → core/write-the-f-paper}/templates/project.md +0 -0
  50. /package/{write-the-f-paper → core/write-the-f-paper}/templates/research.md +0 -0
  51. /package/{write-the-f-paper → core/write-the-f-paper}/templates/review-comments.md +0 -0
  52. /package/{write-the-f-paper → core/write-the-f-paper}/templates/revision-issues.md +0 -0
  53. /package/{write-the-f-paper → core/write-the-f-paper}/templates/roadmap.md +0 -0
  54. /package/{write-the-f-paper → core/write-the-f-paper}/templates/section-archive.md +0 -0
  55. /package/{write-the-f-paper → core/write-the-f-paper}/templates/section-context.md +0 -0
  56. /package/{write-the-f-paper → core/write-the-f-paper}/templates/section.md +0 -0
  57. /package/{write-the-f-paper → core/write-the-f-paper}/templates/state.md +0 -0
  58. /package/{write-the-f-paper → core/write-the-f-paper}/templates/summary.md +0 -0
  59. /package/{write-the-f-paper → core/write-the-f-paper}/venues/acm-cs.yaml +0 -0
  60. /package/{write-the-f-paper → core/write-the-f-paper}/venues/arxiv-ml.yaml +0 -0
  61. /package/{write-the-f-paper → core/write-the-f-paper}/venues/ieee-cs.yaml +0 -0
  62. /package/{write-the-f-paper → core/write-the-f-paper}/venues/nature.yaml +0 -0
  63. /package/{write-the-f-paper → core/write-the-f-paper}/venues/thesis-chapter.yaml +0 -0
  64. /package/{write-the-f-paper → core/write-the-f-paper}/workflows/create-outline.md +0 -0
  65. /package/{write-the-f-paper → core/write-the-f-paper}/workflows/create-outline.wcn.md +0 -0
  66. /package/{write-the-f-paper → core/write-the-f-paper}/workflows/discuss-section.md +0 -0
  67. /package/{write-the-f-paper → core/write-the-f-paper}/workflows/discuss-section.wcn.md +0 -0
  68. /package/{write-the-f-paper → core/write-the-f-paper}/workflows/execute-section.md +0 -0
  69. /package/{write-the-f-paper → core/write-the-f-paper}/workflows/execute-section.wcn.md +0 -0
  70. /package/{write-the-f-paper → core/write-the-f-paper}/workflows/list-assumptions.md +0 -0
  71. /package/{write-the-f-paper → core/write-the-f-paper}/workflows/list-assumptions.wcn.md +0 -0
  72. /package/{write-the-f-paper → core/write-the-f-paper}/workflows/lit-review-phase.md +0 -0
  73. /package/{write-the-f-paper → core/write-the-f-paper}/workflows/lit-review-phase.wcn.md +0 -0
  74. /package/{write-the-f-paper → core/write-the-f-paper}/workflows/map-project.md +0 -0
  75. /package/{write-the-f-paper → core/write-the-f-paper}/workflows/map-project.wcn.md +0 -0
  76. /package/{write-the-f-paper → core/write-the-f-paper}/workflows/plan-section.md +0 -0
  77. /package/{write-the-f-paper → core/write-the-f-paper}/workflows/plan-section.wcn.md +0 -0
  78. /package/{write-the-f-paper → core/write-the-f-paper}/workflows/research-gap.md +0 -0
  79. /package/{write-the-f-paper → core/write-the-f-paper}/workflows/research-gap.wcn.md +0 -0
  80. /package/{write-the-f-paper → core/write-the-f-paper}/workflows/resume-paper.md +0 -0
  81. /package/{write-the-f-paper → core/write-the-f-paper}/workflows/resume-paper.wcn.md +0 -0
  82. /package/{write-the-f-paper → core/write-the-f-paper}/workflows/review-section.md +0 -0
  83. /package/{write-the-f-paper → core/write-the-f-paper}/workflows/review-section.wcn.md +0 -0
  84. /package/{write-the-f-paper → core/write-the-f-paper}/workflows/submit-draft.md +0 -0
  85. /package/{write-the-f-paper → core/write-the-f-paper}/workflows/submit-draft.wcn.md +0 -0
  86. /package/{write-the-f-paper → core/write-the-f-paper}/workflows/transition.md +0 -0
  87. /package/{write-the-f-paper → core/write-the-f-paper}/workflows/transition.wcn.md +0 -0
  88. /package/{commands → vendors/claude/commands}/wtfp/analyze-bib.md +0 -0
  89. /package/{commands → vendors/claude/commands}/wtfp/check-refs.md +0 -0
  90. /package/{commands → vendors/claude/commands}/wtfp/contribute.md +0 -0
  91. /package/{commands → vendors/claude/commands}/wtfp/create-outline.md +0 -0
  92. /package/{commands → vendors/claude/commands}/wtfp/discuss-section.md +0 -0
  93. /package/{commands → vendors/claude/commands}/wtfp/export-latex.md +0 -0
  94. /package/{commands → vendors/claude/commands}/wtfp/insert-section.md +0 -0
  95. /package/{commands → vendors/claude/commands}/wtfp/list-assumptions.md +0 -0
  96. /package/{commands → vendors/claude/commands}/wtfp/map-project.md +0 -0
  97. /package/{commands → vendors/claude/commands}/wtfp/new-paper.md +0 -0
  98. /package/{commands → vendors/claude/commands}/wtfp/pause-writing.md +0 -0
  99. /package/{commands → vendors/claude/commands}/wtfp/plan-revision.md +0 -0
  100. /package/{commands → vendors/claude/commands}/wtfp/plan-section.md +0 -0
  101. /package/{commands → vendors/claude/commands}/wtfp/polish-prose.md +0 -0
  102. /package/{commands → vendors/claude/commands}/wtfp/progress.md +0 -0
  103. /package/{commands → vendors/claude/commands}/wtfp/remove-section.md +0 -0
  104. /package/{commands → vendors/claude/commands}/wtfp/report-bug.md +0 -0
  105. /package/{commands → vendors/claude/commands}/wtfp/request-feature.md +0 -0
  106. /package/{commands → vendors/claude/commands}/wtfp/research-gap.md +0 -0
  107. /package/{commands → vendors/claude/commands}/wtfp/resume-writing.md +0 -0
  108. /package/{commands → vendors/claude/commands}/wtfp/review-section.md +0 -0
  109. /package/{commands → vendors/claude/commands}/wtfp/submit-milestone.md +0 -0
  110. /package/{commands → vendors/claude/commands}/wtfp/write-section.md +0 -0
@@ -0,0 +1,41 @@
1
+ ---
2
+ name: wtfp:create-slides
3
+ description: Full workflow for creating presentation slides from project content
4
+ allowed-tools:
5
+ - Read
6
+ - Write
7
+ - Bash
8
+ - AskUserQuestion
9
+ ---
10
+
11
+ <objective>
12
+ Generate presentation slides based on the current project's PROJECT.md and findings.
13
+ Uses the wtfp-marp skill to compile to PDF.
14
+ </objective>
15
+
16
+ <context>
17
+ @~/.claude/write-the-f-paper/references/principles.md
18
+ @~/.claude/write-the-f-paper/templates/slides/
19
+ </context>
20
+
21
+ <process>
22
+ ## Step 1: Content Synthesis
23
+ - Read `.planning/PROJECT.md` and any drafted sections.
24
+ - Identify the core narrative and supporting claims.
25
+
26
+ ## Step 2: User Interview
27
+ AskUserQuestion to determine:
28
+ - Presentation duration/target number of slides
29
+ - Specific focus areas
30
+ - Audience background
31
+
32
+ ## Step 3: Markdown Generation
33
+ - Create `slides.md` using Marp format.
34
+ - Separate slides with `---`.
35
+
36
+ ## Step 4: Compilation
37
+ - Use `wtfp-marp` skill: `npx @marp-team/marp-cli slides.md -o slides.pdf`
38
+
39
+ ## Step 5: Review
40
+ - Present the generated slides.pdf path to the user.
41
+ </process>
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: wtfp:help
3
3
  description: Show available WTF-P commands and usage guide
4
+ allowed-tools: []
4
5
  ---
5
6
 
6
7
  <objective>
@@ -14,6 +15,7 @@ Output ONLY the reference content below. Do NOT add:
14
15
  - Any commentary beyond the reference
15
16
  </objective>
16
17
 
18
+ <process>
17
19
  <reference>
18
20
  # WTF-P Command Reference
19
21
 
@@ -365,3 +367,4 @@ Guide through contributing code via Pull Request.
365
367
  - Request features: `/wtfp:request-feature`
366
368
  - GitHub: https://github.com/akougkas/wtf-p
367
369
  </reference>
370
+ </process>
@@ -0,0 +1,47 @@
1
+ ---
2
+ name: wtfp-echarts
3
+ description: Generate publication-quality charts using Apache ECharts
4
+ allowed-tools:
5
+ - Bash
6
+ - Read
7
+ - Write
8
+ ---
9
+
10
+ # ECharts Generator Skill
11
+
12
+ Use this skill to create charts from data for papers, posters, or slides.
13
+
14
+ ## Usage
15
+
16
+ Generate an HTML file with ECharts configuration.
17
+
18
+ ### Example Template
19
+ ```html
20
+ <!DOCTYPE html>
21
+ <html>
22
+ <head>
23
+ <meta charset="utf-8">
24
+ <script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3/dist/echarts.min.js"></script>
25
+ </head>
26
+ <body>
27
+ <div id="main" style="width: 800px;height:600px;"></div>
28
+ <script type="text/javascript">
29
+ var myChart = echarts.init(document.getElementById('main'));
30
+ var option = {
31
+ title: { text: 'ECharts Example' },
32
+ tooltip: {},
33
+ xAxis: { data: ["A", "B", "C", "D"] },
34
+ yAxis: {},
35
+ series: [{ name: 'Sales', type: 'bar', data: [5, 20, 36, 10] }]
36
+ };
37
+ myChart.setOption(option);
38
+ </script>
39
+ </body>
40
+ </html>
41
+ ```
42
+
43
+ ## Strategy
44
+ 1. Receive data and chart requirements.
45
+ 2. Generate ECharts configuration object.
46
+ 3. Inject into HTML template.
47
+ 4. User can open HTML in browser to view/export.
@@ -0,0 +1,49 @@
1
+ ---
2
+ name: wtfp-marp
3
+ description: Compile Markdown+CSS to HTML posters or PDF slides using Marp CLI
4
+ allowed-tools:
5
+ - Bash
6
+ - Read
7
+ - Write
8
+ ---
9
+
10
+ # Marp Compiler Skill
11
+
12
+ Use this skill to compile Markdown presentations or posters to HTML or PDF.
13
+
14
+ ## Commands
15
+
16
+ ### Compile to HTML (recommended for posters)
17
+ ```bash
18
+ npx @marp-team/marp-cli input.md -o output.html
19
+ ```
20
+
21
+ ### Compile to PDF (recommended for slides)
22
+ ```bash
23
+ npx @marp-team/marp-cli input.md -o output.pdf
24
+ ```
25
+
26
+ ### With custom theme
27
+ ```bash
28
+ npx @marp-team/marp-cli input.md --theme theme.css -o output.pdf
29
+ ```
30
+
31
+ ## Marp Markdown Format
32
+
33
+ Marp uses extended Markdown. Slides are separated by `---`.
34
+
35
+ Example:
36
+ ```markdown
37
+ ---
38
+ marp: true
39
+ theme: default
40
+ ---
41
+
42
+ # Slide 1
43
+ Content
44
+
45
+ ---
46
+
47
+ # Slide 2
48
+ More content
49
+ ```