clikit-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.
- package/AGENTS.md +46 -0
- package/README.md +282 -0
- package/command/commit.md +137 -0
- package/command/create.md +150 -0
- package/command/debug.md +185 -0
- package/command/design.md +82 -0
- package/command/handoff.md +95 -0
- package/command/import-plan.md +175 -0
- package/command/init.md +112 -0
- package/command/issue.md +110 -0
- package/command/plan.md +205 -0
- package/command/pr.md +174 -0
- package/command/research.md +103 -0
- package/command/resume.md +80 -0
- package/command/review-codebase.md +228 -0
- package/command/review.md +135 -0
- package/command/ship.md +109 -0
- package/command/start.md +77 -0
- package/command/status.md +123 -0
- package/command/verify.md +79 -0
- package/command/vision.md +142 -0
- package/dist/agents/index.d.ts +4 -0
- package/dist/agents/index.d.ts.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +103 -0
- package/dist/clikit.schema.json +423 -0
- package/dist/commands/index.d.ts +4 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/config.d.ts +118 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/hooks/auto-format.d.ts +30 -0
- package/dist/hooks/auto-format.d.ts.map +1 -0
- package/dist/hooks/comment-checker.d.ts +17 -0
- package/dist/hooks/comment-checker.d.ts.map +1 -0
- package/dist/hooks/compaction.d.ts +60 -0
- package/dist/hooks/compaction.d.ts.map +1 -0
- package/dist/hooks/empty-message-sanitizer.d.ts +9 -0
- package/dist/hooks/empty-message-sanitizer.d.ts.map +1 -0
- package/dist/hooks/env-context.d.ts +43 -0
- package/dist/hooks/env-context.d.ts.map +1 -0
- package/dist/hooks/git-guard.d.ts +14 -0
- package/dist/hooks/git-guard.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +35 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/ritual-enforcer.d.ts +29 -0
- package/dist/hooks/ritual-enforcer.d.ts.map +1 -0
- package/dist/hooks/security-check.d.ts +20 -0
- package/dist/hooks/security-check.d.ts.map +1 -0
- package/dist/hooks/session-notification.d.ts +23 -0
- package/dist/hooks/session-notification.d.ts.map +1 -0
- package/dist/hooks/subagent-question-blocker.d.ts +11 -0
- package/dist/hooks/subagent-question-blocker.d.ts.map +1 -0
- package/dist/hooks/swarm-enforcer.d.ts +31 -0
- package/dist/hooks/swarm-enforcer.d.ts.map +1 -0
- package/dist/hooks/todo-enforcer.d.ts +19 -0
- package/dist/hooks/todo-enforcer.d.ts.map +1 -0
- package/dist/hooks/truncator.d.ts +28 -0
- package/dist/hooks/truncator.d.ts.map +1 -0
- package/dist/hooks/typecheck-gate.d.ts +31 -0
- package/dist/hooks/typecheck-gate.d.ts.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5785 -0
- package/dist/skills/index.d.ts +9 -0
- package/dist/skills/index.d.ts.map +1 -0
- package/dist/tools/beads-memory-sync.d.ts +17 -0
- package/dist/tools/beads-memory-sync.d.ts.map +1 -0
- package/dist/tools/context-summary.d.ts +21 -0
- package/dist/tools/context-summary.d.ts.map +1 -0
- package/dist/tools/index.d.ts +7 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/memory.d.ts +56 -0
- package/dist/tools/memory.d.ts.map +1 -0
- package/dist/tools/observation.d.ts +28 -0
- package/dist/tools/observation.d.ts.map +1 -0
- package/dist/tools/quick-research.d.ts +16 -0
- package/dist/tools/quick-research.d.ts.map +1 -0
- package/dist/tools/swarm.d.ts +57 -0
- package/dist/tools/swarm.d.ts.map +1 -0
- package/dist/types.d.ts +32 -0
- package/dist/types.d.ts.map +1 -0
- package/memory/_templates/handoff.md +114 -0
- package/memory/_templates/plan.md +135 -0
- package/memory/_templates/prd.md +147 -0
- package/memory/_templates/research.md +108 -0
- package/memory/_templates/review.md +117 -0
- package/memory/_templates/spec.md +116 -0
- package/memory/beads/.gitkeep +0 -0
- package/memory/handoffs/.gitkeep +0 -0
- package/memory/plans/.gitkeep +0 -0
- package/memory/prds/.gitkeep +0 -0
- package/memory/research/.gitkeep +0 -0
- package/memory/reviews/.gitkeep +0 -0
- package/memory/specs/.gitkeep +0 -0
- package/package.json +64 -0
- package/skill/accessibility-audit/SKILL.md +115 -0
- package/skill/beads/SKILL.md +56 -0
- package/skill/beads-bridge/SKILL.md +45 -0
- package/skill/brainstorming/SKILL.md +41 -0
- package/skill/chrome-devtools/SKILL.md +36 -0
- package/skill/cloudflare/SKILL.md +96 -0
- package/skill/condition-based-waiting/SKILL.md +92 -0
- package/skill/deep-research/SKILL.md +130 -0
- package/skill/defense-in-depth/SKILL.md +89 -0
- package/skill/design-system-audit/SKILL.md +136 -0
- package/skill/development-lifecycle/SKILL.md +58 -0
- package/skill/dispatching-parallel-agents/SKILL.md +94 -0
- package/skill/executing-plans/SKILL.md +54 -0
- package/skill/figma/SKILL.md +34 -0
- package/skill/finishing-a-development-branch/SKILL.md +127 -0
- package/skill/frontend-aesthetics/SKILL.md +63 -0
- package/skill/gemini-large-context/SKILL.md +80 -0
- package/skill/mockup-to-code/SKILL.md +98 -0
- package/skill/mqdh/SKILL.md +54 -0
- package/skill/notebooklm/SKILL.md +71 -0
- package/skill/playwright/SKILL.md +37 -0
- package/skill/playwriter/SKILL.md +56 -0
- package/skill/polar/SKILL.md +39 -0
- package/skill/receiving-code-review/SKILL.md +47 -0
- package/skill/requesting-code-review/SKILL.md +47 -0
- package/skill/resend/SKILL.md +85 -0
- package/skill/ritual-workflow/SKILL.md +101 -0
- package/skill/root-cause-tracing/SKILL.md +73 -0
- package/skill/session-management/SKILL.md +53 -0
- package/skill/sharing-skills/SKILL.md +50 -0
- package/skill/source-code-research/SKILL.md +138 -0
- package/skill/subagent-driven-development/SKILL.md +69 -0
- package/skill/supabase/SKILL.md +80 -0
- package/skill/supabase-postgres-best-practices/SKILL.md +168 -0
- package/skill/swarm-coordination/SKILL.md +54 -0
- package/skill/systematic-debugging/SKILL.md +58 -0
- package/skill/test-driven-development/SKILL.md +53 -0
- package/skill/testing-anti-patterns/SKILL.md +100 -0
- package/skill/testing-skills-with-subagents/SKILL.md +102 -0
- package/skill/ui-ux-research/SKILL.md +93 -0
- package/skill/using-git-worktrees/SKILL.md +129 -0
- package/skill/v0/SKILL.md +67 -0
- package/skill/v1-run/SKILL.md +85 -0
- package/skill/vercel-react-best-practices/SKILL.md +174 -0
- package/skill/verification-before-completion/SKILL.md +55 -0
- package/skill/visual-analysis/SKILL.md +113 -0
- package/skill/writing-plans/SKILL.md +55 -0
- package/skill/writing-skills/SKILL.md +68 -0
- package/src/agents/AGENTS.md +46 -0
- package/src/agents/build.md +170 -0
- package/src/agents/explore.md +113 -0
- package/src/agents/general.md +92 -0
- package/src/agents/index.ts +64 -0
- package/src/agents/librarian.md +116 -0
- package/src/agents/looker.md +107 -0
- package/src/agents/oracle.md +138 -0
- package/src/agents/plan.md +78 -0
- package/src/agents/review.md +98 -0
- package/src/agents/scout.md +84 -0
- package/src/agents/vision.md +159 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dispatching-parallel-agents
|
|
3
|
+
description: Use when facing 3+ independent failures. Dispatches concurrent subagent workflows, one agent per problem domain.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Dispatching Parallel Agents Skill
|
|
7
|
+
|
|
8
|
+
You are running the **dispatching-parallel-agents** skill. Solve multiple independent problems concurrently.
|
|
9
|
+
|
|
10
|
+
## When to Use
|
|
11
|
+
|
|
12
|
+
**Use when:**
|
|
13
|
+
- 3+ independent failures detected
|
|
14
|
+
- Problems are in different domains/files
|
|
15
|
+
- Each issue can be solved independently
|
|
16
|
+
- Results can be merged after completion
|
|
17
|
+
|
|
18
|
+
**Do NOT use when:**
|
|
19
|
+
- Failures are related/dependent
|
|
20
|
+
- Agents would edit the same files
|
|
21
|
+
- Order of fixes matters
|
|
22
|
+
- One fix might break another
|
|
23
|
+
|
|
24
|
+
## Dispatch Protocol
|
|
25
|
+
|
|
26
|
+
### 1. Problem Analysis
|
|
27
|
+
```
|
|
28
|
+
For each failure:
|
|
29
|
+
- Identify problem domain
|
|
30
|
+
- Determine affected files
|
|
31
|
+
- Check for file overlap with other problems
|
|
32
|
+
- Estimate complexity
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### 2. Agent Assignment
|
|
36
|
+
```
|
|
37
|
+
Map problems to domains:
|
|
38
|
+
- Frontend issues → @build with fe context
|
|
39
|
+
- Backend issues → @build with be context
|
|
40
|
+
- Test issues → @build with qa context
|
|
41
|
+
- Config issues → @build with devops context
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### 3. Parallel Execution
|
|
45
|
+
- Launch all agents simultaneously
|
|
46
|
+
- Each agent works in isolation
|
|
47
|
+
- No cross-agent communication during work
|
|
48
|
+
- Track progress independently
|
|
49
|
+
|
|
50
|
+
### 4. Result Merging
|
|
51
|
+
```
|
|
52
|
+
After all agents complete:
|
|
53
|
+
1. Collect all changes
|
|
54
|
+
2. Verify no conflicts
|
|
55
|
+
3. Run integration tests
|
|
56
|
+
4. Merge results
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Example Scenario
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
Failures detected:
|
|
63
|
+
1. Login button not rendering (frontend) → Agent A
|
|
64
|
+
2. API timeout on /users (backend) → Agent B
|
|
65
|
+
3. E2E test flaky (testing) → Agent C
|
|
66
|
+
|
|
67
|
+
Dispatch 3 agents in parallel.
|
|
68
|
+
Each fixes their domain.
|
|
69
|
+
Merge after completion.
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Conflict Detection
|
|
73
|
+
|
|
74
|
+
Before dispatching, verify:
|
|
75
|
+
- No file overlap between assignments
|
|
76
|
+
- No shared state modifications
|
|
77
|
+
- No ordering dependencies
|
|
78
|
+
|
|
79
|
+
## Rules
|
|
80
|
+
|
|
81
|
+
| Rule | Why |
|
|
82
|
+
|------|-----|
|
|
83
|
+
| Minimum 3 problems | Overhead worth it at scale |
|
|
84
|
+
| Independent only | Avoid conflicts |
|
|
85
|
+
| Different files | Safe parallel edits |
|
|
86
|
+
| Merge verification | Catch integration issues |
|
|
87
|
+
|
|
88
|
+
## Failure Handling
|
|
89
|
+
|
|
90
|
+
If any agent fails:
|
|
91
|
+
1. Report failure immediately
|
|
92
|
+
2. Other agents continue
|
|
93
|
+
3. Address failed agent's issue separately
|
|
94
|
+
4. Do not block successful completions
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: executing-plans
|
|
3
|
+
description: Use when a plan exists and you need to execute tasks with checkpoints and review.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Executing Plans Skill
|
|
7
|
+
|
|
8
|
+
You are running the **executing-plans** skill. Execute implementation plans systematically with checkpoints.
|
|
9
|
+
|
|
10
|
+
## Batch Execution
|
|
11
|
+
|
|
12
|
+
Default: **3 tasks per batch**
|
|
13
|
+
|
|
14
|
+
After each batch:
|
|
15
|
+
1. Run verification commands
|
|
16
|
+
2. Summarize changes made
|
|
17
|
+
3. Ask for confirmation to continue
|
|
18
|
+
|
|
19
|
+
## Execution Flow
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
Read plan → Select next batch → Execute → Verify → Checkpoint → Continue/Adjust
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Checkpoint Questions
|
|
26
|
+
|
|
27
|
+
After each batch, ask:
|
|
28
|
+
- "Continuing with next 3 tasks. Proceed? (yes/skip/stop/adjust)"
|
|
29
|
+
- If "skip": Skip current batch, move to next
|
|
30
|
+
- If "stop": Halt execution, summarize progress
|
|
31
|
+
- If "adjust": Modify batch size or plan
|
|
32
|
+
|
|
33
|
+
## Per-Task Execution
|
|
34
|
+
|
|
35
|
+
1. **Read** the task completely
|
|
36
|
+
2. **Verify** the file exists (or will be created)
|
|
37
|
+
3. **Apply** the exact change specified
|
|
38
|
+
4. **Run** the verification command
|
|
39
|
+
5. **Confirm** expected result
|
|
40
|
+
|
|
41
|
+
## Error Handling
|
|
42
|
+
|
|
43
|
+
| Error Type | Action |
|
|
44
|
+
|------------|--------|
|
|
45
|
+
| File not found | Create it or ask for clarification |
|
|
46
|
+
| Test fails | Debug, fix, re-run before continuing |
|
|
47
|
+
| Unexpected state | Stop, report, ask for guidance |
|
|
48
|
+
|
|
49
|
+
## Red Flags
|
|
50
|
+
|
|
51
|
+
- Skipping verification
|
|
52
|
+
- Making changes not in the plan
|
|
53
|
+
- Continuing after failure without fixing
|
|
54
|
+
- Modifying batch size without asking
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: figma
|
|
3
|
+
description: Use when you need to access Figma design data, layouts, or assets for implementation.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Figma Skill
|
|
7
|
+
|
|
8
|
+
You are running the **figma** skill. Access Figma design data via Framelink MCP.
|
|
9
|
+
|
|
10
|
+
## Capabilities
|
|
11
|
+
|
|
12
|
+
| Action | Description |
|
|
13
|
+
|--------|-------------|
|
|
14
|
+
| Fetch layout | Get component hierarchy, spacing, dimensions |
|
|
15
|
+
| Get styles | Colors, typography, shadows, borders |
|
|
16
|
+
| Get components | Extract reusable component definitions |
|
|
17
|
+
| Download assets | SVG/PNG export for icons, images |
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
1. Provide Figma file URL or frame ID
|
|
22
|
+
2. Specify what you need (layout, styles, assets)
|
|
23
|
+
3. Skill fetches via Framelink MCP (on-demand)
|
|
24
|
+
4. Convert to code matching your tech stack
|
|
25
|
+
|
|
26
|
+
## MCP Loading
|
|
27
|
+
|
|
28
|
+
This skill loads the Framelink MCP server **only when used**. No persistent connection overhead.
|
|
29
|
+
|
|
30
|
+
## Best Practices
|
|
31
|
+
|
|
32
|
+
- Request specific frames, not entire files
|
|
33
|
+
- Export assets at appropriate resolutions
|
|
34
|
+
- Match design tokens to your CSS variables
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: finishing-a-development-branch
|
|
3
|
+
description: Use when completing development work on a branch. Verifies tests, presents options, executes choice with cleanup.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Finishing a Development Branch Skill
|
|
7
|
+
|
|
8
|
+
You are running the **finishing-a-development-branch** skill. Safe branch completion with user control.
|
|
9
|
+
|
|
10
|
+
## Prerequisites
|
|
11
|
+
|
|
12
|
+
- Development work complete
|
|
13
|
+
- In a worktree (recommended)
|
|
14
|
+
- Branch has commits
|
|
15
|
+
|
|
16
|
+
## Workflow
|
|
17
|
+
|
|
18
|
+
### 1. Verify Tests
|
|
19
|
+
```bash
|
|
20
|
+
# Run all tests
|
|
21
|
+
npm test
|
|
22
|
+
|
|
23
|
+
# If tests fail:
|
|
24
|
+
# - STOP
|
|
25
|
+
# - Report failures
|
|
26
|
+
# - Do NOT proceed to options
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
**Never merge with failing tests.**
|
|
30
|
+
|
|
31
|
+
### 2. Present Options
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
Branch [branch-name] ready. Choose:
|
|
35
|
+
|
|
36
|
+
1. MERGE - Merge to main and clean up
|
|
37
|
+
2. PR - Create pull request (keep branch)
|
|
38
|
+
3. KEEP - Keep branch, continue later
|
|
39
|
+
4. DISCARD - Delete branch and all changes
|
|
40
|
+
|
|
41
|
+
What would you like to do?
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### 3. Execute Choice
|
|
45
|
+
|
|
46
|
+
#### Option 1: MERGE
|
|
47
|
+
```bash
|
|
48
|
+
# Switch to main
|
|
49
|
+
git checkout main
|
|
50
|
+
git pull origin main
|
|
51
|
+
|
|
52
|
+
# Merge branch
|
|
53
|
+
git merge <branch-name>
|
|
54
|
+
|
|
55
|
+
# Push to remote
|
|
56
|
+
git push origin main
|
|
57
|
+
|
|
58
|
+
# Clean up
|
|
59
|
+
git branch -d <branch-name>
|
|
60
|
+
git worktree remove <worktree-path> # if applicable
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
#### Option 2: PR
|
|
64
|
+
```bash
|
|
65
|
+
# Push branch
|
|
66
|
+
git push origin <branch-name>
|
|
67
|
+
|
|
68
|
+
# Create PR
|
|
69
|
+
gh pr create --title "[title]" --body "[body]"
|
|
70
|
+
|
|
71
|
+
# Keep worktree for iteration
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
#### Option 3: KEEP
|
|
75
|
+
```bash
|
|
76
|
+
# Just ensure pushed
|
|
77
|
+
git push origin <branch-name>
|
|
78
|
+
|
|
79
|
+
# Leave worktree intact
|
|
80
|
+
# User can return later
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
#### Option 4: DISCARD
|
|
84
|
+
```
|
|
85
|
+
⚠️ WARNING: This will DELETE all changes on this branch.
|
|
86
|
+
|
|
87
|
+
Type "discard" to confirm:
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
# After typing "discard"
|
|
92
|
+
git checkout main
|
|
93
|
+
git branch -D <branch-name>
|
|
94
|
+
git worktree remove <worktree-path>
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Safety Rules
|
|
98
|
+
|
|
99
|
+
| Rule | Enforcement |
|
|
100
|
+
|------|-------------|
|
|
101
|
+
| Tests must pass | Block on failure |
|
|
102
|
+
| DISCARD requires typed confirmation | Prevent accidents |
|
|
103
|
+
| Never force merge | User controls flow |
|
|
104
|
+
| Always clean up worktrees | After merge/discard |
|
|
105
|
+
|
|
106
|
+
## Decision Matrix
|
|
107
|
+
|
|
108
|
+
| Situation | Recommended |
|
|
109
|
+
|-----------|-------------|
|
|
110
|
+
| Feature complete, tested | MERGE |
|
|
111
|
+
| Needs review | PR |
|
|
112
|
+
| Work in progress | KEEP |
|
|
113
|
+
| Wrong direction | DISCARD |
|
|
114
|
+
|
|
115
|
+
## Post-Completion
|
|
116
|
+
|
|
117
|
+
After any option:
|
|
118
|
+
1. Report result
|
|
119
|
+
2. Show current branch status
|
|
120
|
+
3. Suggest next steps if applicable
|
|
121
|
+
|
|
122
|
+
## Anti-Patterns
|
|
123
|
+
|
|
124
|
+
- Merging without test verification
|
|
125
|
+
- Discarding without confirmation
|
|
126
|
+
- Leaving stale worktrees
|
|
127
|
+
- Force pushing to main
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: frontend-aesthetics
|
|
3
|
+
description: Use when building UI components or pages. Prevents AI slop aesthetic with distinctive design direction.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Frontend Aesthetics Skill
|
|
7
|
+
|
|
8
|
+
You are running the **frontend-aesthetics** skill. No generic AI designs. No purple gradients.
|
|
9
|
+
|
|
10
|
+
## Core Principle
|
|
11
|
+
|
|
12
|
+
Pick ONE aesthetic direction. Commit fully. No hybrid compromises.
|
|
13
|
+
|
|
14
|
+
## Aesthetic Directions
|
|
15
|
+
|
|
16
|
+
| Direction | Typography | Colors | Motion |
|
|
17
|
+
|-----------|------------|--------|--------|
|
|
18
|
+
| Neo-Brutalist | Bold sans-serif, high contrast | Black/white + 1 accent | Sharp, instant |
|
|
19
|
+
| Glass Morphism | Light, geometric | Translucent overlays | Smooth blur transitions |
|
|
20
|
+
| Swiss Design | Grid-aligned, minimal | Primary + neutrals | Subtle, functional |
|
|
21
|
+
| Retro-Future | Geometric, display | Warm gradients | Smooth, nostalgic |
|
|
22
|
+
| Dark Industrial | Monospace, condensed | Dark + neon accent | Glitch, scan effects |
|
|
23
|
+
| Organic Minimal | Rounded, friendly | Earth tones | Gentle, springy |
|
|
24
|
+
|
|
25
|
+
## Typography Rules
|
|
26
|
+
|
|
27
|
+
- NEVER: Inter, Roboto, Arial, Helvetica, system-ui
|
|
28
|
+
- PICK: Space Grotesk, JetBrains Mono, Instrument Sans, Clash Display, Satoshi, DM Sans, Outfit, Plus Jakarta Sans
|
|
29
|
+
- Pair: 1 display font (headlines) + 1 UI font (body)
|
|
30
|
+
- Scale: Use typographic scale (1.25 or 1.333 ratio), not arbitrary sizes
|
|
31
|
+
|
|
32
|
+
## Color Rules
|
|
33
|
+
|
|
34
|
+
- Maximum 3 colors: Primary, Secondary, Accent
|
|
35
|
+
- No purple gradients (the hallmark of AI-generated design)
|
|
36
|
+
- Define semantic colors: success, warning, error, info
|
|
37
|
+
- Use CSS variables - no hardcoded hex values in components
|
|
38
|
+
|
|
39
|
+
## Motion Rules
|
|
40
|
+
|
|
41
|
+
- Motion must be meaningful: state change, attention, feedback
|
|
42
|
+
- Duration: 150-300ms for micro, 300-500ms for transitions
|
|
43
|
+
- Easing: Use custom easings, not just ease-in-out
|
|
44
|
+
- Reduce motion: Respect prefers-reduced-motion
|
|
45
|
+
|
|
46
|
+
## Checklist
|
|
47
|
+
|
|
48
|
+
- [ ] One aesthetic direction chosen and documented
|
|
49
|
+
- [ ] Typography: Display + UI font selected (not Inter/Roboto)
|
|
50
|
+
- [ ] Color palette: Max 3 colors + semantics defined
|
|
51
|
+
- [ ] Motion tokens: Duration, easing, reduction defined
|
|
52
|
+
- [ ] No purple gradients anywhere
|
|
53
|
+
- [ ] No centered hero with 3-column cards layout
|
|
54
|
+
|
|
55
|
+
## Red Flags
|
|
56
|
+
|
|
57
|
+
- Make it look modern without direction
|
|
58
|
+
- Inter or Roboto in font stack
|
|
59
|
+
- Purple-to-pink gradients
|
|
60
|
+
- Centered hero + 3-column feature cards
|
|
61
|
+
- Generic placeholder images (stock photos)
|
|
62
|
+
- Inconsistent spacing (use 4px or 8px grid)
|
|
63
|
+
- Multiple competing aesthetic styles
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gemini-large-context
|
|
3
|
+
description: Use when context exceeds session limits or analyzing 100KB+ files. Leverages Gemini CLI's 1M token window.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Gemini Large Context Skill
|
|
7
|
+
|
|
8
|
+
You are running the **gemini-large-context** skill. When you hit limits, scale up.
|
|
9
|
+
|
|
10
|
+
## When to Use
|
|
11
|
+
|
|
12
|
+
| Scenario | Why Gemini |
|
|
13
|
+
|----------|------------|
|
|
14
|
+
| Single file >100KB | Won't fit in standard context |
|
|
15
|
+
| Project-wide pattern search | Need full codebase visibility |
|
|
16
|
+
| Multi-file diff analysis | Compare across dozens of files |
|
|
17
|
+
| Legacy code archaeology | Understand decade-old systems |
|
|
18
|
+
| Full test suite review | See all tests at once |
|
|
19
|
+
|
|
20
|
+
## Process
|
|
21
|
+
|
|
22
|
+
### 1. Prepare Input
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
# Single large file
|
|
26
|
+
gemini -p "Analyze this file for [task]: $(cat large_file.ts)"
|
|
27
|
+
|
|
28
|
+
# Multiple files
|
|
29
|
+
cat file1.ts file2.ts file3.ts | gemini -p "Compare these files:"
|
|
30
|
+
|
|
31
|
+
# Full directory
|
|
32
|
+
find src -name "*.ts" -exec cat {} \; | gemini -p "Find patterns in codebase:"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### 2. Structure Your Prompt
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
Context: [what you're analyzing]
|
|
39
|
+
Task: [specific question or goal]
|
|
40
|
+
Constraints: [limitations, requirements]
|
|
41
|
+
Output: [expected format]
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### 3. Handle Output
|
|
45
|
+
|
|
46
|
+
- Gemini returns full analysis
|
|
47
|
+
- Extract actionable items
|
|
48
|
+
- If incomplete, prompt for continuation
|
|
49
|
+
- Save important findings to memory
|
|
50
|
+
|
|
51
|
+
## Use Cases
|
|
52
|
+
|
|
53
|
+
### Large File Analysis
|
|
54
|
+
```
|
|
55
|
+
gemini -p "Map all exports and their dependencies in this file: $(cat huge_api.ts)"
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Pattern Detection
|
|
59
|
+
```
|
|
60
|
+
cat src/**/*.ts | gemini -p "Find all authentication patterns and security issues:"
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Multi-file Comparison
|
|
64
|
+
```
|
|
65
|
+
cat v1/api.ts v2/api.ts | gemini -p "Breaking changes between v1 and v2:"
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Checklist
|
|
69
|
+
|
|
70
|
+
- [ ] Confirmed file/directory size justifies large context
|
|
71
|
+
- [ ] Prompt includes specific task (not "analyze this")
|
|
72
|
+
- [ ] Output format specified
|
|
73
|
+
- [ ] Results saved to `.opencode/memory/` for reference
|
|
74
|
+
|
|
75
|
+
## Red Flags
|
|
76
|
+
|
|
77
|
+
- Using for small files (wastes resources)
|
|
78
|
+
- Vague prompts ("what do you think?")
|
|
79
|
+
- Not saving results (lose context on next session)
|
|
80
|
+
- Ignoring token limits still exists (1M isn't infinite)
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mockup-to-code
|
|
3
|
+
description: Use when converting UI mockups, screenshots, or Figma/Sketch designs into production-ready code.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Mockup to Code Skill
|
|
7
|
+
|
|
8
|
+
You are running the **mockup-to-code** skill. Pixels to production.
|
|
9
|
+
|
|
10
|
+
## Input Types
|
|
11
|
+
|
|
12
|
+
| Source | Extraction Method |
|
|
13
|
+
|--------|-------------------|
|
|
14
|
+
| Screenshot | Visual analysis via Gemini |
|
|
15
|
+
| Figma export | Design tokens + component mapping |
|
|
16
|
+
| Sketch file | Layer structure + styles |
|
|
17
|
+
| Design URL | Direct inspection or screenshot |
|
|
18
|
+
|
|
19
|
+
## Process
|
|
20
|
+
|
|
21
|
+
### 1. Extract Design Tokens
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
gemini -p "Extract design tokens from this mockup as JSON: $(cat mockup.png)"
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Expected output structure:
|
|
28
|
+
```json
|
|
29
|
+
{
|
|
30
|
+
"colors": { "primary": "#...", "secondary": "#..." },
|
|
31
|
+
"typography": { "heading": "...", "body": "..." },
|
|
32
|
+
"spacing": { "base": 8, "scale": [8, 16, 24, 32] },
|
|
33
|
+
"shadows": ["0 2px 4px rgba(...)", ...],
|
|
34
|
+
"radii": [4, 8, 16]
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### 2. Identify Components
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
Component: [Name]
|
|
42
|
+
- Props: [list]
|
|
43
|
+
- Variants: [list]
|
|
44
|
+
- States: [default, hover, active, disabled]
|
|
45
|
+
- Dependencies: [child components]
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### 3. Map to Tech Stack
|
|
49
|
+
|
|
50
|
+
| Design Element | Implementation |
|
|
51
|
+
|----------------|----------------|
|
|
52
|
+
| Typography | Tailwind classes / CSS variables |
|
|
53
|
+
| Colors | CSS custom properties |
|
|
54
|
+
| Spacing | Tailwind spacing scale |
|
|
55
|
+
| Components | React/Vue/Svelte components |
|
|
56
|
+
| Icons | Lucide / Heroicons / custom SVG |
|
|
57
|
+
|
|
58
|
+
### 4. Build Incrementally
|
|
59
|
+
|
|
60
|
+
1. Structure: Semantic HTML
|
|
61
|
+
2. Layout: Flexbox/Grid
|
|
62
|
+
3. Styling: Tokens → classes
|
|
63
|
+
4. Interaction: States and events
|
|
64
|
+
5. Responsive: Breakpoint adjustments
|
|
65
|
+
6. Polish: Animations and details
|
|
66
|
+
|
|
67
|
+
## Component Library Handling
|
|
68
|
+
|
|
69
|
+
### Existing Library
|
|
70
|
+
- Check for matching components first
|
|
71
|
+
- Extend or compose before creating new
|
|
72
|
+
- Document any custom overrides
|
|
73
|
+
|
|
74
|
+
### New Components
|
|
75
|
+
- Follow existing patterns
|
|
76
|
+
- Use established tokens
|
|
77
|
+
- Ensure accessibility built-in
|
|
78
|
+
|
|
79
|
+
## Checklist
|
|
80
|
+
|
|
81
|
+
- [ ] Design tokens extracted and defined
|
|
82
|
+
- [ ] Components identified and documented
|
|
83
|
+
- [ ] Semantic HTML structure
|
|
84
|
+
- [ ] Responsive breakpoints handled
|
|
85
|
+
- [ ] All interactive states implemented
|
|
86
|
+
- [ ] Accessibility attributes added
|
|
87
|
+
- [ ] Matches mockup pixel-perfectly
|
|
88
|
+
- [ ] Code follows project conventions
|
|
89
|
+
|
|
90
|
+
## Red Flags
|
|
91
|
+
|
|
92
|
+
- Skipping semantic HTML for div soup
|
|
93
|
+
- Hardcoded values instead of tokens
|
|
94
|
+
- Ignoring component library
|
|
95
|
+
- Missing interactive states
|
|
96
|
+
- No accessibility attributes
|
|
97
|
+
- Inline styles over classes
|
|
98
|
+
- Breaking responsive behavior
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mqdh
|
|
3
|
+
description: Use when building Meta Quest VR/AR applications, needing Meta Horizon OS documentation, or managing Quest devices via ADB.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Meta Quest Developer Hub (MQDH) Skill
|
|
7
|
+
|
|
8
|
+
MCP integration for Meta Quest Developer Hub providing VR/AR development tools, documentation access, and device management capabilities.
|
|
9
|
+
|
|
10
|
+
## Capabilities
|
|
11
|
+
|
|
12
|
+
- **Documentation Access**: Query Meta Horizon OS and XR development docs
|
|
13
|
+
- **ADB Tools**: Device debugging, app installation, log streaming
|
|
14
|
+
- **Device Management**: Connect, configure, and manage Quest devices
|
|
15
|
+
- **Build Tools**: APK management, app deployment workflows
|
|
16
|
+
- **Debugging**: Performance profiling, log analysis
|
|
17
|
+
- **Project Setup**: Quest project scaffolding and configuration
|
|
18
|
+
|
|
19
|
+
## When to Use
|
|
20
|
+
|
|
21
|
+
- Building applications for Meta Quest headsets
|
|
22
|
+
- Looking up Meta XR SDK documentation
|
|
23
|
+
- Debugging Quest applications on device
|
|
24
|
+
- Managing Quest device settings and configurations
|
|
25
|
+
- Deploying builds to Quest devices
|
|
26
|
+
- Setting up XR development environments
|
|
27
|
+
|
|
28
|
+
## Key Tools
|
|
29
|
+
|
|
30
|
+
- `query_docs`: Search Meta Horizon OS documentation
|
|
31
|
+
- `device_list`: List connected Quest devices
|
|
32
|
+
- `device_install`: Install APK to device
|
|
33
|
+
- `device_logs`: Stream device logs
|
|
34
|
+
- `adb_command`: Execute ADB commands
|
|
35
|
+
- `project_configure`: Set up Quest project settings
|
|
36
|
+
|
|
37
|
+
## Example Usage
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
// Query documentation
|
|
41
|
+
query_docs({ query: "hand tracking setup Quest 3" })
|
|
42
|
+
|
|
43
|
+
// Install app
|
|
44
|
+
device_install({ apk_path: "./build/app.apk", device_id: "quest-3" })
|
|
45
|
+
|
|
46
|
+
// Stream logs
|
|
47
|
+
device_logs({ device_id: "quest-3", filter: "Unity" })
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Prerequisites
|
|
51
|
+
|
|
52
|
+
- Meta Quest Developer Hub installed
|
|
53
|
+
- Developer mode enabled on Quest device
|
|
54
|
+
- USB connection or ADB over Wi-Fi configured
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: notebooklm
|
|
3
|
+
description: Use when querying Google NotebookLM notebooks for source-grounded answers with citations, or managing notebook libraries.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# NotebookLM Skill
|
|
7
|
+
|
|
8
|
+
Query Google NotebookLM notebooks for source-grounded, citation-backed answers. Provides browser automation for notebook access, library management, and persistent authentication.
|
|
9
|
+
|
|
10
|
+
## Capabilities
|
|
11
|
+
|
|
12
|
+
- **Query Notebooks**: Ask questions against uploaded sources
|
|
13
|
+
- **Citation-Backed Answers**: Responses reference specific source documents
|
|
14
|
+
- **Notebook Management**: Create, update, delete notebooks
|
|
15
|
+
- **Source Management**: Add/remove sources from notebooks
|
|
16
|
+
- **Persistent Auth**: Maintain Google session across sessions
|
|
17
|
+
- **Library Access**: Browse and search notebook collections
|
|
18
|
+
|
|
19
|
+
## When to Use
|
|
20
|
+
|
|
21
|
+
- Research with document-grounded answers
|
|
22
|
+
- Querying knowledge bases with citations
|
|
23
|
+
- Extracting insights from uploaded documents
|
|
24
|
+
- Building research workflows
|
|
25
|
+
- Creating Q&A systems from documents
|
|
26
|
+
- Getting answers with verifiable sources
|
|
27
|
+
|
|
28
|
+
## Key Tools
|
|
29
|
+
|
|
30
|
+
- `query_notebook`: Ask questions to a specific notebook
|
|
31
|
+
- `list_notebooks`: Get all available notebooks
|
|
32
|
+
- `create_notebook`: Create new notebook with sources
|
|
33
|
+
- `add_sources`: Add documents/URLs to notebook
|
|
34
|
+
- `get_answer_sources`: Retrieve citations for an answer
|
|
35
|
+
|
|
36
|
+
## Example Usage
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
// Query notebook
|
|
40
|
+
query_notebook({
|
|
41
|
+
notebook_id: "research-papers",
|
|
42
|
+
question: "What are the key findings about LLM hallucinations?"
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
// Returns answer with citations:
|
|
46
|
+
// "According to Source 1, LLM hallucinations occur when..."
|
|
47
|
+
// Citations: [Source 1, p.3], [Source 2, Section 4.2]
|
|
48
|
+
|
|
49
|
+
// List notebooks
|
|
50
|
+
list_notebooks()
|
|
51
|
+
|
|
52
|
+
// Create notebook
|
|
53
|
+
create_notebook({
|
|
54
|
+
name: "Project Documentation",
|
|
55
|
+
sources: ["https://docs.example.com", "./local-docs/"]
|
|
56
|
+
})
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Authentication
|
|
60
|
+
|
|
61
|
+
- Browser-based OAuth flow
|
|
62
|
+
- Session persistence in secure storage
|
|
63
|
+
- Automatic token refresh
|
|
64
|
+
- Supports multiple Google accounts
|
|
65
|
+
|
|
66
|
+
## Notes
|
|
67
|
+
|
|
68
|
+
- Requires Google account access
|
|
69
|
+
- Browser automation handles auth
|
|
70
|
+
- Source limits based on NotebookLM tiers
|
|
71
|
+
- Answers grounded in uploaded sources only
|