@every-env/compound-plugin 0.1.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 (226) hide show
  1. package/.claude-plugin/marketplace.json +37 -0
  2. package/.github/workflows/deploy-docs.yml +39 -0
  3. package/AGENTS.md +48 -0
  4. package/CLAUDE.md +380 -0
  5. package/LICENSE +21 -0
  6. package/README.md +65 -0
  7. package/bun.lock +30 -0
  8. package/docs/css/docs.css +675 -0
  9. package/docs/css/style.css +2886 -0
  10. package/docs/index.html +1046 -0
  11. package/docs/js/main.js +225 -0
  12. package/docs/pages/agents.html +649 -0
  13. package/docs/pages/changelog.html +495 -0
  14. package/docs/pages/commands.html +523 -0
  15. package/docs/pages/getting-started.html +582 -0
  16. package/docs/pages/mcp-servers.html +409 -0
  17. package/docs/pages/skills.html +611 -0
  18. package/docs/solutions/plugin-versioning-requirements.md +77 -0
  19. package/docs/specs/claude-code.md +67 -0
  20. package/docs/specs/codex.md +59 -0
  21. package/docs/specs/opencode.md +57 -0
  22. package/package.json +26 -0
  23. package/plans/grow-your-own-garden-plugin-architecture.md +102 -0
  24. package/plans/landing-page-launchkit-refresh.md +279 -0
  25. package/plugins/coding-tutor/.claude-plugin/plugin.json +9 -0
  26. package/plugins/coding-tutor/README.md +37 -0
  27. package/plugins/coding-tutor/commands/quiz-me.md +1 -0
  28. package/plugins/coding-tutor/commands/sync-tutorials.md +25 -0
  29. package/plugins/coding-tutor/commands/teach-me.md +1 -0
  30. package/plugins/coding-tutor/skills/coding-tutor/SKILL.md +214 -0
  31. package/plugins/coding-tutor/skills/coding-tutor/scripts/create_tutorial.py +207 -0
  32. package/plugins/coding-tutor/skills/coding-tutor/scripts/index_tutorials.py +193 -0
  33. package/plugins/coding-tutor/skills/coding-tutor/scripts/quiz_priority.py +190 -0
  34. package/plugins/coding-tutor/skills/coding-tutor/scripts/setup_tutorials.py +118 -0
  35. package/plugins/compound-engineering/.claude-plugin/plugin.json +33 -0
  36. package/plugins/compound-engineering/CHANGELOG.md +393 -0
  37. package/plugins/compound-engineering/CLAUDE.md +90 -0
  38. package/plugins/compound-engineering/LICENSE +21 -0
  39. package/plugins/compound-engineering/README.md +219 -0
  40. package/plugins/compound-engineering/agents/design/design-implementation-reviewer.md +94 -0
  41. package/plugins/compound-engineering/agents/design/design-iterator.md +197 -0
  42. package/plugins/compound-engineering/agents/design/figma-design-sync.md +172 -0
  43. package/plugins/compound-engineering/agents/docs/ankane-readme-writer.md +50 -0
  44. package/plugins/compound-engineering/agents/research/best-practices-researcher.md +100 -0
  45. package/plugins/compound-engineering/agents/research/framework-docs-researcher.md +83 -0
  46. package/plugins/compound-engineering/agents/research/git-history-analyzer.md +42 -0
  47. package/plugins/compound-engineering/agents/research/repo-research-analyst.md +113 -0
  48. package/plugins/compound-engineering/agents/review/agent-native-reviewer.md +246 -0
  49. package/plugins/compound-engineering/agents/review/architecture-strategist.md +52 -0
  50. package/plugins/compound-engineering/agents/review/code-simplicity-reviewer.md +85 -0
  51. package/plugins/compound-engineering/agents/review/data-integrity-guardian.md +70 -0
  52. package/plugins/compound-engineering/agents/review/data-migration-expert.md +97 -0
  53. package/plugins/compound-engineering/agents/review/deployment-verification-agent.md +159 -0
  54. package/plugins/compound-engineering/agents/review/dhh-rails-reviewer.md +45 -0
  55. package/plugins/compound-engineering/agents/review/julik-frontend-races-reviewer.md +222 -0
  56. package/plugins/compound-engineering/agents/review/kieran-python-reviewer.md +104 -0
  57. package/plugins/compound-engineering/agents/review/kieran-rails-reviewer.md +86 -0
  58. package/plugins/compound-engineering/agents/review/kieran-typescript-reviewer.md +95 -0
  59. package/plugins/compound-engineering/agents/review/pattern-recognition-specialist.md +57 -0
  60. package/plugins/compound-engineering/agents/review/performance-oracle.md +110 -0
  61. package/plugins/compound-engineering/agents/review/security-sentinel.md +93 -0
  62. package/plugins/compound-engineering/agents/workflow/bug-reproduction-validator.md +67 -0
  63. package/plugins/compound-engineering/agents/workflow/every-style-editor.md +64 -0
  64. package/plugins/compound-engineering/agents/workflow/lint.md +16 -0
  65. package/plugins/compound-engineering/agents/workflow/pr-comment-resolver.md +69 -0
  66. package/plugins/compound-engineering/agents/workflow/spec-flow-analyzer.md +113 -0
  67. package/plugins/compound-engineering/commands/agent-native-audit.md +277 -0
  68. package/plugins/compound-engineering/commands/changelog.md +137 -0
  69. package/plugins/compound-engineering/commands/create-agent-skill.md +8 -0
  70. package/plugins/compound-engineering/commands/deepen-plan.md +546 -0
  71. package/plugins/compound-engineering/commands/deploy-docs.md +112 -0
  72. package/plugins/compound-engineering/commands/feature-video.md +342 -0
  73. package/plugins/compound-engineering/commands/generate_command.md +162 -0
  74. package/plugins/compound-engineering/commands/heal-skill.md +142 -0
  75. package/plugins/compound-engineering/commands/lfg.md +19 -0
  76. package/plugins/compound-engineering/commands/plan_review.md +7 -0
  77. package/plugins/compound-engineering/commands/release-docs.md +211 -0
  78. package/plugins/compound-engineering/commands/report-bug.md +150 -0
  79. package/plugins/compound-engineering/commands/reproduce-bug.md +99 -0
  80. package/plugins/compound-engineering/commands/resolve_parallel.md +34 -0
  81. package/plugins/compound-engineering/commands/resolve_pr_parallel.md +49 -0
  82. package/plugins/compound-engineering/commands/resolve_todo_parallel.md +35 -0
  83. package/plugins/compound-engineering/commands/test-browser.md +339 -0
  84. package/plugins/compound-engineering/commands/triage.md +310 -0
  85. package/plugins/compound-engineering/commands/workflows/compound.md +202 -0
  86. package/plugins/compound-engineering/commands/workflows/plan.md +466 -0
  87. package/plugins/compound-engineering/commands/workflows/review.md +514 -0
  88. package/plugins/compound-engineering/commands/workflows/work.md +363 -0
  89. package/plugins/compound-engineering/commands/xcode-test.md +331 -0
  90. package/plugins/compound-engineering/skills/agent-browser/SKILL.md +223 -0
  91. package/plugins/compound-engineering/skills/agent-native-architecture/SKILL.md +435 -0
  92. package/plugins/compound-engineering/skills/agent-native-architecture/references/action-parity-discipline.md +409 -0
  93. package/plugins/compound-engineering/skills/agent-native-architecture/references/agent-execution-patterns.md +467 -0
  94. package/plugins/compound-engineering/skills/agent-native-architecture/references/agent-native-testing.md +582 -0
  95. package/plugins/compound-engineering/skills/agent-native-architecture/references/architecture-patterns.md +478 -0
  96. package/plugins/compound-engineering/skills/agent-native-architecture/references/dynamic-context-injection.md +338 -0
  97. package/plugins/compound-engineering/skills/agent-native-architecture/references/files-universal-interface.md +301 -0
  98. package/plugins/compound-engineering/skills/agent-native-architecture/references/from-primitives-to-domain-tools.md +359 -0
  99. package/plugins/compound-engineering/skills/agent-native-architecture/references/mcp-tool-design.md +506 -0
  100. package/plugins/compound-engineering/skills/agent-native-architecture/references/mobile-patterns.md +871 -0
  101. package/plugins/compound-engineering/skills/agent-native-architecture/references/product-implications.md +443 -0
  102. package/plugins/compound-engineering/skills/agent-native-architecture/references/refactoring-to-prompt-native.md +317 -0
  103. package/plugins/compound-engineering/skills/agent-native-architecture/references/self-modification.md +269 -0
  104. package/plugins/compound-engineering/skills/agent-native-architecture/references/shared-workspace-architecture.md +680 -0
  105. package/plugins/compound-engineering/skills/agent-native-architecture/references/system-prompt-design.md +250 -0
  106. package/plugins/compound-engineering/skills/andrew-kane-gem-writer/SKILL.md +184 -0
  107. package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/database-adapters.md +231 -0
  108. package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/module-organization.md +121 -0
  109. package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/rails-integration.md +183 -0
  110. package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/resources.md +119 -0
  111. package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/testing-patterns.md +261 -0
  112. package/plugins/compound-engineering/skills/compound-docs/SKILL.md +510 -0
  113. package/plugins/compound-engineering/skills/compound-docs/assets/critical-pattern-template.md +34 -0
  114. package/plugins/compound-engineering/skills/compound-docs/assets/resolution-template.md +93 -0
  115. package/plugins/compound-engineering/skills/compound-docs/references/yaml-schema.md +65 -0
  116. package/plugins/compound-engineering/skills/compound-docs/schema.yaml +176 -0
  117. package/plugins/compound-engineering/skills/create-agent-skills/SKILL.md +299 -0
  118. package/plugins/compound-engineering/skills/create-agent-skills/references/api-security.md +226 -0
  119. package/plugins/compound-engineering/skills/create-agent-skills/references/be-clear-and-direct.md +531 -0
  120. package/plugins/compound-engineering/skills/create-agent-skills/references/best-practices.md +404 -0
  121. package/plugins/compound-engineering/skills/create-agent-skills/references/common-patterns.md +595 -0
  122. package/plugins/compound-engineering/skills/create-agent-skills/references/core-principles.md +437 -0
  123. package/plugins/compound-engineering/skills/create-agent-skills/references/executable-code.md +175 -0
  124. package/plugins/compound-engineering/skills/create-agent-skills/references/iteration-and-testing.md +474 -0
  125. package/plugins/compound-engineering/skills/create-agent-skills/references/official-spec.md +185 -0
  126. package/plugins/compound-engineering/skills/create-agent-skills/references/recommended-structure.md +168 -0
  127. package/plugins/compound-engineering/skills/create-agent-skills/references/skill-structure.md +372 -0
  128. package/plugins/compound-engineering/skills/create-agent-skills/references/using-scripts.md +113 -0
  129. package/plugins/compound-engineering/skills/create-agent-skills/references/using-templates.md +112 -0
  130. package/plugins/compound-engineering/skills/create-agent-skills/references/workflows-and-validation.md +510 -0
  131. package/plugins/compound-engineering/skills/create-agent-skills/templates/router-skill.md +73 -0
  132. package/plugins/compound-engineering/skills/create-agent-skills/templates/simple-skill.md +33 -0
  133. package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-reference.md +96 -0
  134. package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-script.md +93 -0
  135. package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-template.md +74 -0
  136. package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-workflow.md +120 -0
  137. package/plugins/compound-engineering/skills/create-agent-skills/workflows/audit-skill.md +138 -0
  138. package/plugins/compound-engineering/skills/create-agent-skills/workflows/create-domain-expertise-skill.md +605 -0
  139. package/plugins/compound-engineering/skills/create-agent-skills/workflows/create-new-skill.md +191 -0
  140. package/plugins/compound-engineering/skills/create-agent-skills/workflows/get-guidance.md +121 -0
  141. package/plugins/compound-engineering/skills/create-agent-skills/workflows/upgrade-to-router.md +161 -0
  142. package/plugins/compound-engineering/skills/create-agent-skills/workflows/verify-skill.md +204 -0
  143. package/plugins/compound-engineering/skills/dhh-rails-style/SKILL.md +185 -0
  144. package/plugins/compound-engineering/skills/dhh-rails-style/references/architecture.md +653 -0
  145. package/plugins/compound-engineering/skills/dhh-rails-style/references/controllers.md +303 -0
  146. package/plugins/compound-engineering/skills/dhh-rails-style/references/frontend.md +510 -0
  147. package/plugins/compound-engineering/skills/dhh-rails-style/references/gems.md +266 -0
  148. package/plugins/compound-engineering/skills/dhh-rails-style/references/models.md +359 -0
  149. package/plugins/compound-engineering/skills/dhh-rails-style/references/testing.md +338 -0
  150. package/plugins/compound-engineering/skills/dspy-ruby/SKILL.md +594 -0
  151. package/plugins/compound-engineering/skills/dspy-ruby/assets/config-template.rb +359 -0
  152. package/plugins/compound-engineering/skills/dspy-ruby/assets/module-template.rb +326 -0
  153. package/plugins/compound-engineering/skills/dspy-ruby/assets/signature-template.rb +143 -0
  154. package/plugins/compound-engineering/skills/dspy-ruby/references/core-concepts.md +265 -0
  155. package/plugins/compound-engineering/skills/dspy-ruby/references/optimization.md +623 -0
  156. package/plugins/compound-engineering/skills/dspy-ruby/references/providers.md +338 -0
  157. package/plugins/compound-engineering/skills/every-style-editor/SKILL.md +134 -0
  158. package/plugins/compound-engineering/skills/every-style-editor/references/EVERY_WRITE_STYLE.md +529 -0
  159. package/plugins/compound-engineering/skills/file-todos/SKILL.md +251 -0
  160. package/plugins/compound-engineering/skills/file-todos/assets/todo-template.md +155 -0
  161. package/plugins/compound-engineering/skills/frontend-design/SKILL.md +42 -0
  162. package/plugins/compound-engineering/skills/gemini-imagegen/SKILL.md +237 -0
  163. package/plugins/compound-engineering/skills/gemini-imagegen/requirements.txt +2 -0
  164. package/plugins/compound-engineering/skills/gemini-imagegen/scripts/compose_images.py +157 -0
  165. package/plugins/compound-engineering/skills/gemini-imagegen/scripts/edit_image.py +144 -0
  166. package/plugins/compound-engineering/skills/gemini-imagegen/scripts/gemini_images.py +263 -0
  167. package/plugins/compound-engineering/skills/gemini-imagegen/scripts/generate_image.py +133 -0
  168. package/plugins/compound-engineering/skills/gemini-imagegen/scripts/multi_turn_chat.py +216 -0
  169. package/plugins/compound-engineering/skills/git-worktree/SKILL.md +302 -0
  170. package/plugins/compound-engineering/skills/git-worktree/scripts/worktree-manager.sh +345 -0
  171. package/plugins/compound-engineering/skills/rclone/SKILL.md +150 -0
  172. package/plugins/compound-engineering/skills/rclone/scripts/check_setup.sh +60 -0
  173. package/plugins/compound-engineering/skills/skill-creator/SKILL.md +209 -0
  174. package/plugins/compound-engineering/skills/skill-creator/scripts/init_skill.py +303 -0
  175. package/plugins/compound-engineering/skills/skill-creator/scripts/package_skill.py +110 -0
  176. package/plugins/compound-engineering/skills/skill-creator/scripts/quick_validate.py +65 -0
  177. package/src/commands/convert.ts +156 -0
  178. package/src/commands/install.ts +221 -0
  179. package/src/commands/list.ts +37 -0
  180. package/src/converters/claude-to-codex.ts +124 -0
  181. package/src/converters/claude-to-opencode.ts +392 -0
  182. package/src/index.ts +20 -0
  183. package/src/parsers/claude.ts +248 -0
  184. package/src/targets/codex.ts +91 -0
  185. package/src/targets/index.ts +29 -0
  186. package/src/targets/opencode.ts +48 -0
  187. package/src/types/claude.ts +88 -0
  188. package/src/types/codex.ts +23 -0
  189. package/src/types/opencode.ts +54 -0
  190. package/src/utils/codex-agents.ts +64 -0
  191. package/src/utils/files.ts +64 -0
  192. package/src/utils/frontmatter.ts +65 -0
  193. package/tests/claude-parser.test.ts +89 -0
  194. package/tests/cli.test.ts +289 -0
  195. package/tests/codex-agents.test.ts +62 -0
  196. package/tests/codex-converter.test.ts +121 -0
  197. package/tests/codex-writer.test.ts +76 -0
  198. package/tests/converter.test.ts +171 -0
  199. package/tests/fixtures/custom-paths/.claude-plugin/plugin.json +8 -0
  200. package/tests/fixtures/custom-paths/agents/default-agent.md +5 -0
  201. package/tests/fixtures/custom-paths/commands/default-command.md +5 -0
  202. package/tests/fixtures/custom-paths/custom-agents/custom-agent.md +5 -0
  203. package/tests/fixtures/custom-paths/custom-commands/custom-command.md +5 -0
  204. package/tests/fixtures/custom-paths/custom-hooks/hooks.json +7 -0
  205. package/tests/fixtures/custom-paths/custom-skills/custom-skill/SKILL.md +5 -0
  206. package/tests/fixtures/custom-paths/hooks/hooks.json +7 -0
  207. package/tests/fixtures/custom-paths/skills/default-skill/SKILL.md +5 -0
  208. package/tests/fixtures/invalid-command-path/.claude-plugin/plugin.json +5 -0
  209. package/tests/fixtures/invalid-hooks-path/.claude-plugin/plugin.json +5 -0
  210. package/tests/fixtures/invalid-mcp-path/.claude-plugin/plugin.json +5 -0
  211. package/tests/fixtures/mcp-file/.claude-plugin/plugin.json +5 -0
  212. package/tests/fixtures/mcp-file/.mcp.json +6 -0
  213. package/tests/fixtures/sample-plugin/.claude-plugin/plugin.json +30 -0
  214. package/tests/fixtures/sample-plugin/agents/agent-one.md +10 -0
  215. package/tests/fixtures/sample-plugin/agents/security-reviewer.md +7 -0
  216. package/tests/fixtures/sample-plugin/commands/command-one.md +7 -0
  217. package/tests/fixtures/sample-plugin/commands/model-command.md +8 -0
  218. package/tests/fixtures/sample-plugin/commands/nested/command-two.md +9 -0
  219. package/tests/fixtures/sample-plugin/commands/pattern-command.md +7 -0
  220. package/tests/fixtures/sample-plugin/commands/skill-command.md +7 -0
  221. package/tests/fixtures/sample-plugin/commands/todo-command.md +7 -0
  222. package/tests/fixtures/sample-plugin/hooks/hooks.json +156 -0
  223. package/tests/fixtures/sample-plugin/skills/skill-one/SKILL.md +6 -0
  224. package/tests/frontmatter.test.ts +20 -0
  225. package/tests/opencode-writer.test.ts +62 -0
  226. package/tsconfig.json +14 -0
@@ -0,0 +1,251 @@
1
+ ---
2
+ name: file-todos
3
+ description: This skill should be used when managing the file-based todo tracking system in the todos/ directory. It provides workflows for creating todos, managing status and dependencies, conducting triage, and integrating with slash commands and code review processes.
4
+ ---
5
+
6
+ # File-Based Todo Tracking Skill
7
+
8
+ ## Overview
9
+
10
+ The `todos/` directory contains a file-based tracking system for managing code review feedback, technical debt, feature requests, and work items. Each todo is a markdown file with YAML frontmatter and structured sections.
11
+
12
+ This skill should be used when:
13
+ - Creating new todos from findings or feedback
14
+ - Managing todo lifecycle (pending → ready → complete)
15
+ - Triaging pending items for approval
16
+ - Checking or managing dependencies
17
+ - Converting PR comments or code findings into tracked work
18
+ - Updating work logs during todo execution
19
+
20
+ ## File Naming Convention
21
+
22
+ Todo files follow this naming pattern:
23
+
24
+ ```
25
+ {issue_id}-{status}-{priority}-{description}.md
26
+ ```
27
+
28
+ **Components:**
29
+ - **issue_id**: Sequential number (001, 002, 003...) - never reused
30
+ - **status**: `pending` (needs triage), `ready` (approved), `complete` (done)
31
+ - **priority**: `p1` (critical), `p2` (important), `p3` (nice-to-have)
32
+ - **description**: kebab-case, brief description
33
+
34
+ **Examples:**
35
+ ```
36
+ 001-pending-p1-mailer-test.md
37
+ 002-ready-p1-fix-n-plus-1.md
38
+ 005-complete-p2-refactor-csv.md
39
+ ```
40
+
41
+ ## File Structure
42
+
43
+ Each todo is a markdown file with YAML frontmatter and structured sections. Use the template at [todo-template.md](./assets/todo-template.md) as a starting point when creating new todos.
44
+
45
+ **Required sections:**
46
+ - **Problem Statement** - What is broken, missing, or needs improvement?
47
+ - **Findings** - Investigation results, root cause, key discoveries
48
+ - **Proposed Solutions** - Multiple options with pros/cons, effort, risk
49
+ - **Recommended Action** - Clear plan (filled during triage)
50
+ - **Acceptance Criteria** - Testable checklist items
51
+ - **Work Log** - Chronological record with date, actions, learnings
52
+
53
+ **Optional sections:**
54
+ - **Technical Details** - Affected files, related components, DB changes
55
+ - **Resources** - Links to errors, tests, PRs, documentation
56
+ - **Notes** - Additional context or decisions
57
+
58
+ **YAML frontmatter fields:**
59
+ ```yaml
60
+ ---
61
+ status: ready # pending | ready | complete
62
+ priority: p1 # p1 | p2 | p3
63
+ issue_id: "002"
64
+ tags: [rails, performance, database]
65
+ dependencies: ["001"] # Issue IDs this is blocked by
66
+ ---
67
+ ```
68
+
69
+ ## Common Workflows
70
+
71
+ ### Creating a New Todo
72
+
73
+ **To create a new todo from findings or feedback:**
74
+
75
+ 1. Determine next issue ID: `ls todos/ | grep -o '^[0-9]\+' | sort -n | tail -1`
76
+ 2. Copy template: `cp assets/todo-template.md todos/{NEXT_ID}-pending-{priority}-{description}.md`
77
+ 3. Edit and fill required sections:
78
+ - Problem Statement
79
+ - Findings (if from investigation)
80
+ - Proposed Solutions (multiple options)
81
+ - Acceptance Criteria
82
+ - Add initial Work Log entry
83
+ 4. Determine status: `pending` (needs triage) or `ready` (pre-approved)
84
+ 5. Add relevant tags for filtering
85
+
86
+ **When to create a todo:**
87
+ - Requires more than 15-20 minutes of work
88
+ - Needs research, planning, or multiple approaches considered
89
+ - Has dependencies on other work
90
+ - Requires manager approval or prioritization
91
+ - Part of larger feature or refactor
92
+ - Technical debt needing documentation
93
+
94
+ **When to act immediately instead:**
95
+ - Issue is trivial (< 15 minutes)
96
+ - Complete context available now
97
+ - No planning needed
98
+ - User explicitly requests immediate action
99
+ - Simple bug fix with obvious solution
100
+
101
+ ### Triaging Pending Items
102
+
103
+ **To triage pending todos:**
104
+
105
+ 1. List pending items: `ls todos/*-pending-*.md`
106
+ 2. For each todo:
107
+ - Read Problem Statement and Findings
108
+ - Review Proposed Solutions
109
+ - Make decision: approve, defer, or modify priority
110
+ 3. Update approved todos:
111
+ - Rename file: `mv {file}-pending-{pri}-{desc}.md {file}-ready-{pri}-{desc}.md`
112
+ - Update frontmatter: `status: pending` → `status: ready`
113
+ - Fill "Recommended Action" section with clear plan
114
+ - Adjust priority if different from initial assessment
115
+ 4. Deferred todos stay in `pending` status
116
+
117
+ **Use slash command:** `/triage` for interactive approval workflow
118
+
119
+ ### Managing Dependencies
120
+
121
+ **To track dependencies:**
122
+
123
+ ```yaml
124
+ dependencies: ["002", "005"] # This todo blocked by issues 002 and 005
125
+ dependencies: [] # No blockers - can work immediately
126
+ ```
127
+
128
+ **To check what blocks a todo:**
129
+ ```bash
130
+ grep "^dependencies:" todos/003-*.md
131
+ ```
132
+
133
+ **To find what a todo blocks:**
134
+ ```bash
135
+ grep -l 'dependencies:.*"002"' todos/*.md
136
+ ```
137
+
138
+ **To verify blockers are complete before starting:**
139
+ ```bash
140
+ for dep in 001 002 003; do
141
+ [ -f "todos/${dep}-complete-*.md" ] || echo "Issue $dep not complete"
142
+ done
143
+ ```
144
+
145
+ ### Updating Work Logs
146
+
147
+ **When working on a todo, always add a work log entry:**
148
+
149
+ ```markdown
150
+ ### YYYY-MM-DD - Session Title
151
+
152
+ **By:** Claude Code / Developer Name
153
+
154
+ **Actions:**
155
+ - Specific changes made (include file:line references)
156
+ - Commands executed
157
+ - Tests run
158
+ - Results of investigation
159
+
160
+ **Learnings:**
161
+ - What worked / what didn't
162
+ - Patterns discovered
163
+ - Key insights for future work
164
+ ```
165
+
166
+ Work logs serve as:
167
+ - Historical record of investigation
168
+ - Documentation of approaches attempted
169
+ - Knowledge sharing for team
170
+ - Context for future similar work
171
+
172
+ ### Completing a Todo
173
+
174
+ **To mark a todo as complete:**
175
+
176
+ 1. Verify all acceptance criteria checked off
177
+ 2. Update Work Log with final session and results
178
+ 3. Rename file: `mv {file}-ready-{pri}-{desc}.md {file}-complete-{pri}-{desc}.md`
179
+ 4. Update frontmatter: `status: ready` → `status: complete`
180
+ 5. Check for unblocked work: `grep -l 'dependencies:.*"002"' todos/*-ready-*.md`
181
+ 6. Commit with issue reference: `feat: resolve issue 002`
182
+
183
+ ## Integration with Development Workflows
184
+
185
+ | Trigger | Flow | Tool |
186
+ |---------|------|------|
187
+ | Code review | `/workflows:review` → Findings → `/triage` → Todos | Review agent + skill |
188
+ | PR comments | `/resolve_pr_parallel` → Individual fixes → Todos | gh CLI + skill |
189
+ | Code TODOs | `/resolve_todo_parallel` → Fixes + Complex todos | Agent + skill |
190
+ | Planning | Brainstorm → Create todo → Work → Complete | Skill |
191
+ | Feedback | Discussion → Create todo → Triage → Work | Skill + slash |
192
+
193
+ ## Quick Reference Commands
194
+
195
+ **Finding work:**
196
+ ```bash
197
+ # List highest priority unblocked work
198
+ grep -l 'dependencies: \[\]' todos/*-ready-p1-*.md
199
+
200
+ # List all pending items needing triage
201
+ ls todos/*-pending-*.md
202
+
203
+ # Find next issue ID
204
+ ls todos/ | grep -o '^[0-9]\+' | sort -n | tail -1 | awk '{printf "%03d", $1+1}'
205
+
206
+ # Count by status
207
+ for status in pending ready complete; do
208
+ echo "$status: $(ls -1 todos/*-$status-*.md 2>/dev/null | wc -l)"
209
+ done
210
+ ```
211
+
212
+ **Dependency management:**
213
+ ```bash
214
+ # What blocks this todo?
215
+ grep "^dependencies:" todos/003-*.md
216
+
217
+ # What does this todo block?
218
+ grep -l 'dependencies:.*"002"' todos/*.md
219
+ ```
220
+
221
+ **Searching:**
222
+ ```bash
223
+ # Search by tag
224
+ grep -l "tags:.*rails" todos/*.md
225
+
226
+ # Search by priority
227
+ ls todos/*-p1-*.md
228
+
229
+ # Full-text search
230
+ grep -r "payment" todos/
231
+ ```
232
+
233
+ ## Key Distinctions
234
+
235
+ **File-todos system (this skill):**
236
+ - Markdown files in `todos/` directory
237
+ - Development/project tracking
238
+ - Standalone markdown files with YAML frontmatter
239
+ - Used by humans and agents
240
+
241
+ **Rails Todo model:**
242
+ - Database model in `app/models/todo.rb`
243
+ - User-facing feature in the application
244
+ - Active Record CRUD operations
245
+ - Different from this file-based system
246
+
247
+ **TodoWrite tool:**
248
+ - In-memory task tracking during agent sessions
249
+ - Temporary tracking for single conversation
250
+ - Not persisted to disk
251
+ - Different from both systems above
@@ -0,0 +1,155 @@
1
+ ---
2
+ status: pending
3
+ priority: p2
4
+ issue_id: "XXX"
5
+ tags: []
6
+ dependencies: []
7
+ ---
8
+
9
+ # Brief Task Title
10
+
11
+ Replace with a concise title describing what needs to be done.
12
+
13
+ ## Problem Statement
14
+
15
+ What is broken, missing, or needs improvement? Provide clear context about why this matters.
16
+
17
+ **Example:**
18
+ - Template system lacks comprehensive test coverage for edge cases discovered during PR review
19
+ - Email service is missing proper error handling for rate-limit scenarios
20
+ - Documentation doesn't cover the new authentication flow
21
+
22
+ ## Findings
23
+
24
+ Investigation results, root cause analysis, and key discoveries.
25
+
26
+ - Finding 1 (with specifics: file, line number if applicable)
27
+ - Finding 2
28
+ - Key discovery with impact assessment
29
+ - Related issues or patterns discovered
30
+
31
+ **Example format:**
32
+ - Identified 12 missing test scenarios in `app/models/user_test.rb`
33
+ - Current coverage: 60% of code paths
34
+ - Missing: empty inputs, special characters, large payloads
35
+ - Similar issues exist in `app/models/post_test.rb` (~8 scenarios)
36
+
37
+ ## Proposed Solutions
38
+
39
+ Present multiple options with pros, cons, effort estimates, and risk assessment.
40
+
41
+ ### Option 1: [Solution Name]
42
+
43
+ **Approach:** Describe the solution clearly.
44
+
45
+ **Pros:**
46
+ - Benefit 1
47
+ - Benefit 2
48
+
49
+ **Cons:**
50
+ - Drawback 1
51
+ - Drawback 2
52
+
53
+ **Effort:** 2-3 hours
54
+
55
+ **Risk:** Low / Medium / High
56
+
57
+ ---
58
+
59
+ ### Option 2: [Solution Name]
60
+
61
+ **Approach:** Describe the solution clearly.
62
+
63
+ **Pros:**
64
+ - Benefit 1
65
+ - Benefit 2
66
+
67
+ **Cons:**
68
+ - Drawback 1
69
+ - Drawback 2
70
+
71
+ **Effort:** 4-6 hours
72
+
73
+ **Risk:** Low / Medium / High
74
+
75
+ ---
76
+
77
+ ### Option 3: [Solution Name]
78
+
79
+ (Include if you have alternatives)
80
+
81
+ ## Recommended Action
82
+
83
+ **To be filled during triage.** Clear, actionable plan for resolving this todo.
84
+
85
+ **Example:**
86
+ "Implement both unit tests (covering each scenario) and integration tests (full pipeline) before merging. Estimated 4 hours total effort. Target coverage > 85% for this module."
87
+
88
+ ## Technical Details
89
+
90
+ Affected files, related components, database changes, or architectural considerations.
91
+
92
+ **Affected files:**
93
+ - `app/models/user.rb:45` - full_name method
94
+ - `app/services/user_service.rb:12` - validation logic
95
+ - `test/models/user_test.rb` - existing tests
96
+
97
+ **Related components:**
98
+ - UserMailer (depends on user validation)
99
+ - AccountPolicy (authorization checks)
100
+
101
+ **Database changes (if any):**
102
+ - Migration needed? Yes / No
103
+ - New columns/tables? Describe here
104
+
105
+ ## Resources
106
+
107
+ Links to errors, tests, PRs, documentation, similar issues.
108
+
109
+ - **PR:** #1287
110
+ - **Related issue:** #456
111
+ - **Error log:** [link to AppSignal incident]
112
+ - **Documentation:** [relevant docs]
113
+ - **Similar patterns:** Issue #200 (completed, ref for approach)
114
+
115
+ ## Acceptance Criteria
116
+
117
+ Testable checklist items for verifying completion.
118
+
119
+ - [ ] All acceptance criteria checked
120
+ - [ ] Tests pass (unit + integration if applicable)
121
+ - [ ] Code reviewed and approved
122
+ - [ ] (Example) Test coverage > 85%
123
+ - [ ] (Example) Performance metrics acceptable
124
+ - [ ] (Example) Documentation updated
125
+
126
+ ## Work Log
127
+
128
+ Chronological record of work sessions, actions taken, and learnings.
129
+
130
+ ### 2025-11-12 - Initial Discovery
131
+
132
+ **By:** Claude Code
133
+
134
+ **Actions:**
135
+ - Identified 12 missing test scenarios
136
+ - Analyzed existing test coverage (file:line references)
137
+ - Reviewed similar patterns in codebase
138
+ - Drafted 3 solution approaches
139
+
140
+ **Learnings:**
141
+ - Similar issues exist in related modules
142
+ - Current test setup supports both unit and integration tests
143
+ - Performance testing would be valuable addition
144
+
145
+ ---
146
+
147
+ (Add more entries as work progresses)
148
+
149
+ ## Notes
150
+
151
+ Additional context, decisions, or reminders.
152
+
153
+ - Decision: Include both unit and integration tests for comprehensive coverage
154
+ - Blocker: Depends on completion of issue #001
155
+ - Timeline: Priority for sprint due to blocking other work
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: frontend-design
3
+ description: This skill should be used when creating distinctive, production-grade frontend interfaces with high design quality. It applies when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
4
+ license: Complete terms in LICENSE.txt
5
+ ---
6
+
7
+ This skill guides creation of distinctive, production-grade frontend interfaces that avoid generic "AI slop" aesthetics. Implement real working code with exceptional attention to aesthetic details and creative choices.
8
+
9
+ The user provides frontend requirements: a component, page, application, or interface to build. They may include context about the purpose, audience, or technical constraints.
10
+
11
+ ## Design Thinking
12
+
13
+ Before coding, understand the context and commit to a BOLD aesthetic direction:
14
+ - **Purpose**: What problem does this interface solve? Who uses it?
15
+ - **Tone**: Pick an extreme: brutally minimal, maximalist chaos, retro-futuristic, organic/natural, luxury/refined, playful/toy-like, editorial/magazine, brutalist/raw, art deco/geometric, soft/pastel, industrial/utilitarian, etc. There are so many flavors to choose from. Use these for inspiration but design one that is true to the aesthetic direction.
16
+ - **Constraints**: Technical requirements (framework, performance, accessibility).
17
+ - **Differentiation**: What makes this UNFORGETTABLE? What's the one thing someone will remember?
18
+
19
+ **CRITICAL**: Choose a clear conceptual direction and execute it with precision. Bold maximalism and refined minimalism both work - the key is intentionality, not intensity.
20
+
21
+ Then implement working code (HTML/CSS/JS, React, Vue, etc.) that is:
22
+ - Production-grade and functional
23
+ - Visually striking and memorable
24
+ - Cohesive with a clear aesthetic point-of-view
25
+ - Meticulously refined in every detail
26
+
27
+ ## Frontend Aesthetics Guidelines
28
+
29
+ Focus on:
30
+ - **Typography**: Choose fonts that are beautiful, unique, and interesting. Avoid generic fonts like Arial and Inter; opt instead for distinctive choices that elevate the frontend's aesthetics; unexpected, characterful font choices. Pair a distinctive display font with a refined body font.
31
+ - **Color & Theme**: Commit to a cohesive aesthetic. Use CSS variables for consistency. Dominant colors with sharp accents outperform timid, evenly-distributed palettes.
32
+ - **Motion**: Use animations for effects and micro-interactions. Prioritize CSS-only solutions for HTML. Use Motion library for React when available. Focus on high-impact moments: one well-orchestrated page load with staggered reveals (animation-delay) creates more delight than scattered micro-interactions. Use scroll-triggering and hover states that surprise.
33
+ - **Spatial Composition**: Unexpected layouts. Asymmetry. Overlap. Diagonal flow. Grid-breaking elements. Generous negative space OR controlled density.
34
+ - **Backgrounds & Visual Details**: Create atmosphere and depth rather than defaulting to solid colors. Add contextual effects and textures that match the overall aesthetic. Apply creative forms like gradient meshes, noise textures, geometric patterns, layered transparencies, dramatic shadows, decorative borders, custom cursors, and grain overlays.
35
+
36
+ NEVER use generic AI-generated aesthetics like overused font families (Inter, Roboto, Arial, system fonts), cliched color schemes (particularly purple gradients on white backgrounds), predictable layouts and component patterns, and cookie-cutter design that lacks context-specific character.
37
+
38
+ Interpret creatively and make unexpected choices that feel genuinely designed for the context. No design should be the same. Vary between light and dark themes, different fonts, different aesthetics. NEVER converge on common choices (Space Grotesk, for example) across generations.
39
+
40
+ **IMPORTANT**: Match implementation complexity to the aesthetic vision. Maximalist designs need elaborate code with extensive animations and effects. Minimalist or refined designs need restraint, precision, and careful attention to spacing, typography, and subtle details. Elegance comes from executing the vision well.
41
+
42
+ Remember: Claude is capable of extraordinary creative work. Don't hold back, show what can truly be created when thinking outside the box and committing fully to a distinctive vision.
@@ -0,0 +1,237 @@
1
+ ---
2
+ name: gemini-imagegen
3
+ description: This skill should be used when generating and editing images using the Gemini API (Nano Banana Pro). It applies when creating images from text prompts, editing existing images, applying style transfers, generating logos with text, creating stickers, product mockups, or any image generation/manipulation task. Supports text-to-image, image editing, multi-turn refinement, and composition from multiple reference images.
4
+ ---
5
+
6
+ # Gemini Image Generation (Nano Banana Pro)
7
+
8
+ Generate and edit images using Google's Gemini API. The environment variable `GEMINI_API_KEY` must be set.
9
+
10
+ ## Default Model
11
+
12
+ | Model | Resolution | Best For |
13
+ |-------|------------|----------|
14
+ | `gemini-3-pro-image-preview` | 1K-4K | All image generation (default) |
15
+
16
+ **Note:** Always use this Pro model. Only use a different model if explicitly requested.
17
+
18
+ ## Quick Reference
19
+
20
+ ### Default Settings
21
+ - **Model:** `gemini-3-pro-image-preview`
22
+ - **Resolution:** 1K (default, options: 1K, 2K, 4K)
23
+ - **Aspect Ratio:** 1:1 (default)
24
+
25
+ ### Available Aspect Ratios
26
+ `1:1`, `2:3`, `3:2`, `3:4`, `4:3`, `4:5`, `5:4`, `9:16`, `16:9`, `21:9`
27
+
28
+ ### Available Resolutions
29
+ `1K` (default), `2K`, `4K`
30
+
31
+ ## Core API Pattern
32
+
33
+ ```python
34
+ import os
35
+ from google import genai
36
+ from google.genai import types
37
+
38
+ client = genai.Client(api_key=os.environ["GEMINI_API_KEY"])
39
+
40
+ # Basic generation (1K, 1:1 - defaults)
41
+ response = client.models.generate_content(
42
+ model="gemini-3-pro-image-preview",
43
+ contents=["Your prompt here"],
44
+ config=types.GenerateContentConfig(
45
+ response_modalities=['TEXT', 'IMAGE'],
46
+ ),
47
+ )
48
+
49
+ for part in response.parts:
50
+ if part.text:
51
+ print(part.text)
52
+ elif part.inline_data:
53
+ image = part.as_image()
54
+ image.save("output.png")
55
+ ```
56
+
57
+ ## Custom Resolution & Aspect Ratio
58
+
59
+ ```python
60
+ from google.genai import types
61
+
62
+ response = client.models.generate_content(
63
+ model="gemini-3-pro-image-preview",
64
+ contents=[prompt],
65
+ config=types.GenerateContentConfig(
66
+ response_modalities=['TEXT', 'IMAGE'],
67
+ image_config=types.ImageConfig(
68
+ aspect_ratio="16:9", # Wide format
69
+ image_size="2K" # Higher resolution
70
+ ),
71
+ )
72
+ )
73
+ ```
74
+
75
+ ### Resolution Examples
76
+
77
+ ```python
78
+ # 1K (default) - Fast, good for previews
79
+ image_config=types.ImageConfig(image_size="1K")
80
+
81
+ # 2K - Balanced quality/speed
82
+ image_config=types.ImageConfig(image_size="2K")
83
+
84
+ # 4K - Maximum quality, slower
85
+ image_config=types.ImageConfig(image_size="4K")
86
+ ```
87
+
88
+ ### Aspect Ratio Examples
89
+
90
+ ```python
91
+ # Square (default)
92
+ image_config=types.ImageConfig(aspect_ratio="1:1")
93
+
94
+ # Landscape wide
95
+ image_config=types.ImageConfig(aspect_ratio="16:9")
96
+
97
+ # Ultra-wide panoramic
98
+ image_config=types.ImageConfig(aspect_ratio="21:9")
99
+
100
+ # Portrait
101
+ image_config=types.ImageConfig(aspect_ratio="9:16")
102
+
103
+ # Photo standard
104
+ image_config=types.ImageConfig(aspect_ratio="4:3")
105
+ ```
106
+
107
+ ## Editing Images
108
+
109
+ Pass existing images with text prompts:
110
+
111
+ ```python
112
+ from PIL import Image
113
+
114
+ img = Image.open("input.png")
115
+ response = client.models.generate_content(
116
+ model="gemini-3-pro-image-preview",
117
+ contents=["Add a sunset to this scene", img],
118
+ config=types.GenerateContentConfig(
119
+ response_modalities=['TEXT', 'IMAGE'],
120
+ ),
121
+ )
122
+ ```
123
+
124
+ ## Multi-Turn Refinement
125
+
126
+ Use chat for iterative editing:
127
+
128
+ ```python
129
+ from google.genai import types
130
+
131
+ chat = client.chats.create(
132
+ model="gemini-3-pro-image-preview",
133
+ config=types.GenerateContentConfig(response_modalities=['TEXT', 'IMAGE'])
134
+ )
135
+
136
+ response = chat.send_message("Create a logo for 'Acme Corp'")
137
+ # Save first image...
138
+
139
+ response = chat.send_message("Make the text bolder and add a blue gradient")
140
+ # Save refined image...
141
+ ```
142
+
143
+ ## Prompting Best Practices
144
+
145
+ ### Photorealistic Scenes
146
+ Include camera details: lens type, lighting, angle, mood.
147
+ > "A photorealistic close-up portrait, 85mm lens, soft golden hour light, shallow depth of field"
148
+
149
+ ### Stylized Art
150
+ Specify style explicitly:
151
+ > "A kawaii-style sticker of a happy red panda, bold outlines, cel-shading, white background"
152
+
153
+ ### Text in Images
154
+ Be explicit about font style and placement:
155
+ > "Create a logo with text 'Daily Grind' in clean sans-serif, black and white, coffee bean motif"
156
+
157
+ ### Product Mockups
158
+ Describe lighting setup and surface:
159
+ > "Studio-lit product photo on polished concrete, three-point softbox setup, 45-degree angle"
160
+
161
+ ## Advanced Features
162
+
163
+ ### Google Search Grounding
164
+ Generate images based on real-time data:
165
+
166
+ ```python
167
+ response = client.models.generate_content(
168
+ model="gemini-3-pro-image-preview",
169
+ contents=["Visualize today's weather in Tokyo as an infographic"],
170
+ config=types.GenerateContentConfig(
171
+ response_modalities=['TEXT', 'IMAGE'],
172
+ tools=[{"google_search": {}}]
173
+ )
174
+ )
175
+ ```
176
+
177
+ ### Multiple Reference Images (Up to 14)
178
+ Combine elements from multiple sources:
179
+
180
+ ```python
181
+ response = client.models.generate_content(
182
+ model="gemini-3-pro-image-preview",
183
+ contents=[
184
+ "Create a group photo of these people in an office",
185
+ Image.open("person1.png"),
186
+ Image.open("person2.png"),
187
+ Image.open("person3.png"),
188
+ ],
189
+ config=types.GenerateContentConfig(
190
+ response_modalities=['TEXT', 'IMAGE'],
191
+ ),
192
+ )
193
+ ```
194
+
195
+ ## Important: File Format & Media Type
196
+
197
+ **CRITICAL:** The Gemini API returns images in JPEG format by default. When saving, always use `.jpg` extension to avoid media type mismatches.
198
+
199
+ ```python
200
+ # CORRECT - Use .jpg extension (Gemini returns JPEG)
201
+ image.save("output.jpg")
202
+
203
+ # WRONG - Will cause "Image does not match media type" errors
204
+ image.save("output.png") # Creates JPEG with PNG extension!
205
+ ```
206
+
207
+ ### Converting to PNG (if needed)
208
+
209
+ If you specifically need PNG format:
210
+
211
+ ```python
212
+ from PIL import Image
213
+
214
+ # Generate with Gemini
215
+ for part in response.parts:
216
+ if part.inline_data:
217
+ img = part.as_image()
218
+ # Convert to PNG by saving with explicit format
219
+ img.save("output.png", format="PNG")
220
+ ```
221
+
222
+ ### Verifying Image Format
223
+
224
+ Check actual format vs extension with the `file` command:
225
+
226
+ ```bash
227
+ file image.png
228
+ # If output shows "JPEG image data" - rename to .jpg!
229
+ ```
230
+
231
+ ## Notes
232
+
233
+ - All generated images include SynthID watermarks
234
+ - Gemini returns **JPEG format by default** - always use `.jpg` extension
235
+ - Image-only mode (`responseModalities: ["IMAGE"]`) won't work with Google Search grounding
236
+ - For editing, describe changes conversationally—the model understands semantic masking
237
+ - Default to 1K resolution for speed; use 2K/4K when quality is critical
@@ -0,0 +1,2 @@
1
+ google-genai>=1.0.0
2
+ Pillow>=10.0.0