@paulojalowyj/openkit 0.1.1
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/.opencode/ARCHITECTURE.md +150 -0
- package/.opencode/LICENSE +21 -0
- package/.opencode/bin/cli.js +213 -0
- package/.opencode/commands/README.md +273 -0
- package/.opencode/commands/analyze.md +64 -0
- package/.opencode/commands/brainstorm.md +186 -0
- package/.opencode/commands/checklist.md +62 -0
- package/.opencode/commands/clarify.md +40 -0
- package/.opencode/commands/context.md +68 -0
- package/.opencode/commands/create.md +70 -0
- package/.opencode/commands/debug.md +160 -0
- package/.opencode/commands/deploy.md +244 -0
- package/.opencode/commands/doc.md +45 -0
- package/.opencode/commands/engineer.md +483 -0
- package/.opencode/commands/impl.md +242 -0
- package/.opencode/commands/plan.md +250 -0
- package/.opencode/commands/preview.md +87 -0
- package/.opencode/commands/specify.md +66 -0
- package/.opencode/commands/status.md +103 -0
- package/.opencode/commands/tasks.md +58 -0
- package/.opencode/commands/test.md +104 -0
- package/.opencode/commands/ui-ux.md +216 -0
- package/.opencode/prompts/backend-specialist.md +315 -0
- package/.opencode/prompts/chat.md +36 -0
- package/.opencode/prompts/database-architect.md +244 -0
- package/.opencode/prompts/debugger.md +244 -0
- package/.opencode/prompts/devops-engineer.md +259 -0
- package/.opencode/prompts/documentation-writer.md +121 -0
- package/.opencode/prompts/explorer-agent.md +92 -0
- package/.opencode/prompts/frontend-specialist.md +608 -0
- package/.opencode/prompts/mobile-developer.md +393 -0
- package/.opencode/prompts/orchestrator.md +472 -0
- package/.opencode/prompts/penetration-tester.md +205 -0
- package/.opencode/prompts/performance-optimizer.md +204 -0
- package/.opencode/prompts/product-owner.md +113 -0
- package/.opencode/prompts/project-planner.md +413 -0
- package/.opencode/prompts/security-auditor.md +187 -0
- package/.opencode/prompts/seo-specialist.md +128 -0
- package/.opencode/prompts/test-engineer.md +190 -0
- package/.opencode/rules/AGENT_TEMPLATE.md +391 -0
- package/.opencode/rules/MASTER.md +272 -0
- package/.opencode/rules/README.md +266 -0
- package/.opencode/rules/TODOLIST_EXAMPLES.md +675 -0
- package/.opencode/rules/TODOLIST_PROTOCOL.md +495 -0
- package/.opencode/rules/TOOL_USAGE.md +731 -0
- package/.opencode/scripts/auto_preview.py +100 -0
- package/.opencode/scripts/checklist.py +217 -0
- package/.opencode/scripts/session_manager.py +225 -0
- package/.opencode/scripts/verify_all.py +403 -0
- package/.opencode/skills/api-patterns/SKILL.md +80 -0
- package/.opencode/skills/api-patterns/api-style.md +42 -0
- package/.opencode/skills/api-patterns/auth.md +24 -0
- package/.opencode/skills/api-patterns/documentation.md +26 -0
- package/.opencode/skills/api-patterns/graphql.md +41 -0
- package/.opencode/skills/api-patterns/rate-limiting.md +31 -0
- package/.opencode/skills/api-patterns/response.md +37 -0
- package/.opencode/skills/api-patterns/rest.md +40 -0
- package/.opencode/skills/api-patterns/scripts/api_validator.py +211 -0
- package/.opencode/skills/api-patterns/security-testing.md +122 -0
- package/.opencode/skills/api-patterns/trpc.md +41 -0
- package/.opencode/skills/api-patterns/versioning.md +22 -0
- package/.opencode/skills/app-builder/SKILL.md +101 -0
- package/.opencode/skills/app-builder/agent-coordination.md +71 -0
- package/.opencode/skills/app-builder/feature-building.md +53 -0
- package/.opencode/skills/app-builder/project-detection.md +34 -0
- package/.opencode/skills/app-builder/scaffolding.md +116 -0
- package/.opencode/skills/app-builder/tech-stack.md +40 -0
- package/.opencode/skills/app-builder/templates/SKILL.md +39 -0
- package/.opencode/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
- package/.opencode/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
- package/.opencode/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
- package/.opencode/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
- package/.opencode/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
- package/.opencode/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
- package/.opencode/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
- package/.opencode/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +81 -0
- package/.opencode/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +100 -0
- package/.opencode/skills/app-builder/templates/nextjs-static/TEMPLATE.md +106 -0
- package/.opencode/skills/app-builder/templates/nuxt-app/TEMPLATE.md +100 -0
- package/.opencode/skills/app-builder/templates/python-fastapi/TEMPLATE.md +82 -0
- package/.opencode/skills/app-builder/templates/react-native-app/TEMPLATE.md +93 -0
- package/.opencode/skills/architecture/SKILL.md +55 -0
- package/.opencode/skills/architecture/context-discovery.md +43 -0
- package/.opencode/skills/architecture/examples.md +94 -0
- package/.opencode/skills/architecture/pattern-selection.md +68 -0
- package/.opencode/skills/architecture/patterns-reference.md +50 -0
- package/.opencode/skills/architecture/trade-off-analysis.md +77 -0
- package/.opencode/skills/bash-linux/SKILL.md +199 -0
- package/.opencode/skills/behavioral-modes/SKILL.md +242 -0
- package/.opencode/skills/brainstorming/SKILL.md +163 -0
- package/.opencode/skills/brainstorming/dynamic-questioning.md +350 -0
- package/.opencode/skills/clean-code/SKILL.md +201 -0
- package/.opencode/skills/code-review-checklist/SKILL.md +109 -0
- package/.opencode/skills/database-design/SKILL.md +73 -0
- package/.opencode/skills/database-design/database-selection.md +43 -0
- package/.opencode/skills/database-design/indexing.md +39 -0
- package/.opencode/skills/database-design/migrations.md +48 -0
- package/.opencode/skills/database-design/optimization.md +36 -0
- package/.opencode/skills/database-design/orm-selection.md +30 -0
- package/.opencode/skills/database-design/schema-design.md +56 -0
- package/.opencode/skills/database-design/scripts/schema_validator.py +172 -0
- package/.opencode/skills/deployment-procedures/SKILL.md +241 -0
- package/.opencode/skills/documentation-templates/SKILL.md +279 -0
- package/.opencode/skills/frontend-design/SKILL.md +446 -0
- package/.opencode/skills/frontend-design/animation-guide.md +331 -0
- package/.opencode/skills/frontend-design/color-system.md +311 -0
- package/.opencode/skills/frontend-design/data/charts.csv +26 -0
- package/.opencode/skills/frontend-design/data/colors.csv +97 -0
- package/.opencode/skills/frontend-design/data/icons.csv +101 -0
- package/.opencode/skills/frontend-design/data/landing.csv +31 -0
- package/.opencode/skills/frontend-design/data/products.csv +97 -0
- package/.opencode/skills/frontend-design/data/prompts.csv +24 -0
- package/.opencode/skills/frontend-design/data/react-performance.csv +45 -0
- package/.opencode/skills/frontend-design/data/stacks/flutter.csv +53 -0
- package/.opencode/skills/frontend-design/data/stacks/html-tailwind.csv +56 -0
- package/.opencode/skills/frontend-design/data/stacks/jetpack-compose.csv +53 -0
- package/.opencode/skills/frontend-design/data/stacks/nextjs.csv +53 -0
- package/.opencode/skills/frontend-design/data/stacks/nuxt-ui.csv +51 -0
- package/.opencode/skills/frontend-design/data/stacks/nuxtjs.csv +59 -0
- package/.opencode/skills/frontend-design/data/stacks/react-native.csv +52 -0
- package/.opencode/skills/frontend-design/data/stacks/react.csv +54 -0
- package/.opencode/skills/frontend-design/data/stacks/shadcn.csv +61 -0
- package/.opencode/skills/frontend-design/data/stacks/svelte.csv +54 -0
- package/.opencode/skills/frontend-design/data/stacks/swiftui.csv +51 -0
- package/.opencode/skills/frontend-design/data/stacks/vue.csv +50 -0
- package/.opencode/skills/frontend-design/data/styles.csv +59 -0
- package/.opencode/skills/frontend-design/data/typography.csv +58 -0
- package/.opencode/skills/frontend-design/data/ui-reasoning.csv +101 -0
- package/.opencode/skills/frontend-design/data/ux-guidelines.csv +100 -0
- package/.opencode/skills/frontend-design/data/web-interface.csv +31 -0
- package/.opencode/skills/frontend-design/decision-trees.md +418 -0
- package/.opencode/skills/frontend-design/motion-graphics.md +306 -0
- package/.opencode/skills/frontend-design/scripts/accessibility_checker.py +183 -0
- package/.opencode/skills/frontend-design/scripts/core.py +258 -0
- package/.opencode/skills/frontend-design/scripts/design_system.py +1067 -0
- package/.opencode/skills/frontend-design/scripts/search.py +106 -0
- package/.opencode/skills/frontend-design/scripts/ux_audit.py +735 -0
- package/.opencode/skills/frontend-design/typography-system.md +345 -0
- package/.opencode/skills/frontend-design/ux-psychology.md +541 -0
- package/.opencode/skills/frontend-design/visual-effects.md +383 -0
- package/.opencode/skills/geo-fundamentals/SKILL.md +156 -0
- package/.opencode/skills/geo-fundamentals/scripts/geo_checker.py +289 -0
- package/.opencode/skills/i18n-localization/SKILL.md +154 -0
- package/.opencode/skills/i18n-localization/scripts/i18n_checker.py +241 -0
- package/.opencode/skills/intelligent-routing/SKILL.md +335 -0
- package/.opencode/skills/lint-and-validate/SKILL.md +45 -0
- package/.opencode/skills/lint-and-validate/scripts/lint_runner.py +172 -0
- package/.opencode/skills/lint-and-validate/scripts/type_coverage.py +173 -0
- package/.opencode/skills/mobile-design/SKILL.md +394 -0
- package/.opencode/skills/mobile-design/decision-trees.md +516 -0
- package/.opencode/skills/mobile-design/mobile-backend.md +491 -0
- package/.opencode/skills/mobile-design/mobile-color-system.md +420 -0
- package/.opencode/skills/mobile-design/mobile-debugging.md +122 -0
- package/.opencode/skills/mobile-design/mobile-design-thinking.md +357 -0
- package/.opencode/skills/mobile-design/mobile-navigation.md +458 -0
- package/.opencode/skills/mobile-design/mobile-performance.md +767 -0
- package/.opencode/skills/mobile-design/mobile-testing.md +356 -0
- package/.opencode/skills/mobile-design/mobile-typography.md +433 -0
- package/.opencode/skills/mobile-design/platform-android.md +666 -0
- package/.opencode/skills/mobile-design/platform-ios.md +561 -0
- package/.opencode/skills/mobile-design/scripts/mobile_audit.py +670 -0
- package/.opencode/skills/mobile-design/touch-psychology.md +537 -0
- package/.opencode/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +312 -0
- package/.opencode/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +240 -0
- package/.opencode/skills/nextjs-react-expert/3-server-server-side-performance.md +490 -0
- package/.opencode/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +264 -0
- package/.opencode/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +581 -0
- package/.opencode/skills/nextjs-react-expert/6-rendering-rendering-performance.md +432 -0
- package/.opencode/skills/nextjs-react-expert/7-js-javascript-performance.md +684 -0
- package/.opencode/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +150 -0
- package/.opencode/skills/nextjs-react-expert/SKILL.md +267 -0
- package/.opencode/skills/nextjs-react-expert/scripts/convert_rules.py +222 -0
- package/.opencode/skills/nextjs-react-expert/scripts/react_performance_checker.py +252 -0
- package/.opencode/skills/parallel-agents/SKILL.md +175 -0
- package/.opencode/skills/performance-profiling/SKILL.md +143 -0
- package/.opencode/skills/performance-profiling/scripts/lighthouse_audit.py +76 -0
- package/.opencode/skills/plan-writing/SKILL.md +176 -0
- package/.opencode/skills/python-patterns/SKILL.md +462 -0
- package/.opencode/skills/red-team-tactics/SKILL.md +199 -0
- package/.opencode/skills/seo-fundamentals/SKILL.md +129 -0
- package/.opencode/skills/seo-fundamentals/scripts/seo_checker.py +222 -0
- package/.opencode/skills/server-management/SKILL.md +161 -0
- package/.opencode/skills/stack-selection/SKILL.md +448 -0
- package/.opencode/skills/systematic-debugging/SKILL.md +109 -0
- package/.opencode/skills/tailwind-patterns/SKILL.md +269 -0
- package/.opencode/skills/tdd-workflow/SKILL.md +149 -0
- package/.opencode/skills/testing-patterns/SKILL.md +178 -0
- package/.opencode/skills/testing-patterns/scripts/test_runner.py +219 -0
- package/.opencode/skills/vulnerability-scanner/SKILL.md +276 -0
- package/.opencode/skills/vulnerability-scanner/checklists.md +121 -0
- package/.opencode/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
- package/.opencode/skills/web-design-guidelines/SKILL.md +57 -0
- package/.opencode/skills/webapp-testing/SKILL.md +187 -0
- package/.opencode/skills/webapp-testing/scripts/playwright_runner.py +173 -0
- package/.opencode/templates/DOCS-ACTION_ITEMS.md +5 -0
- package/.opencode/templates/DOCS-API.md +11 -0
- package/.opencode/templates/DOCS-BACKEND.md +10 -0
- package/.opencode/templates/DOCS-CONTEXT.md +25 -0
- package/.opencode/templates/DOCS-DATABASE.md +10 -0
- package/.opencode/templates/DOCS-FRONTEND.md +11 -0
- package/.opencode/templates/DOCS-QUALITY_GATES.md +20 -0
- package/.opencode/templates/DOCS-SECURITY.md +17 -0
- package/.opencode/templates/SDD-AcceptanceCriteria.md +21 -0
- package/.opencode/templates/SDD-Checklist.md +27 -0
- package/.opencode/templates/SDD-Contracts.md +21 -0
- package/.opencode/templates/SDD-Plan.md +45 -0
- package/.opencode/templates/SDD-ProblemStatement.md +25 -0
- package/.opencode/templates/SDD-Quickstart.md +23 -0
- package/.opencode/templates/SDD-Research.md +24 -0
- package/.opencode/templates/SDD-Risks.md +16 -0
- package/.opencode/templates/SDD-Tasks.md +41 -0
- package/.opencode/templates/SDD-UserStories.md +45 -0
- package/.opencode/templates/TechStack.md +111 -0
- package/LICENSE +21 -0
- package/PACKAGE_STATUS.md +97 -0
- package/README.md +251 -0
- package/README.pt-BR.md +192 -0
- package/bin/cli.js +505 -0
- package/blueprints/fullstack/.env.example +15 -0
- package/blueprints/fullstack/AGENTS.md +3 -0
- package/blueprints/fullstack/README.md +65 -0
- package/blueprints/fullstack/backend/.dockerignore +10 -0
- package/blueprints/fullstack/backend/.python-version +1 -0
- package/blueprints/fullstack/backend/Dockerfile +33 -0
- package/blueprints/fullstack/backend/alembic.ini +40 -0
- package/blueprints/fullstack/backend/app/__init__.py +0 -0
- package/blueprints/fullstack/backend/app/api/README.md +3 -0
- package/blueprints/fullstack/backend/app/api/__init__.py +0 -0
- package/blueprints/fullstack/backend/app/celery_app.py +5 -0
- package/blueprints/fullstack/backend/app/core/README.md +3 -0
- package/blueprints/fullstack/backend/app/core/__init__.py +0 -0
- package/blueprints/fullstack/backend/app/database.py +14 -0
- package/blueprints/fullstack/backend/app/main.py +16 -0
- package/blueprints/fullstack/backend/app/models/README.md +3 -0
- package/blueprints/fullstack/backend/app/models/__init__.py +3 -0
- package/blueprints/fullstack/backend/app/models/item.py +10 -0
- package/blueprints/fullstack/backend/app/routers/__init__.py +0 -0
- package/blueprints/fullstack/backend/app/routers/items.py +20 -0
- package/blueprints/fullstack/backend/app/schemas/README.md +3 -0
- package/blueprints/fullstack/backend/app/schemas/__init__.py +0 -0
- package/blueprints/fullstack/backend/app/schemas/item.py +15 -0
- package/blueprints/fullstack/backend/app/services/item_service.py +23 -0
- package/blueprints/fullstack/backend/app/settings.py +36 -0
- package/blueprints/fullstack/backend/app/tasks/README.md +3 -0
- package/blueprints/fullstack/backend/app/tasks/__init__.py +0 -0
- package/blueprints/fullstack/backend/migrations/env.py +47 -0
- package/blueprints/fullstack/backend/migrations/versions/0001_initial_sample_data.py +31 -0
- package/blueprints/fullstack/backend/pyproject.toml +45 -0
- package/blueprints/fullstack/docker-compose.dev.yml +114 -0
- package/blueprints/fullstack/docker-compose.prod.yml +90 -0
- package/blueprints/fullstack/docs/README.md +29 -0
- package/blueprints/fullstack/docs/engineering/api/README.md +3 -0
- package/blueprints/fullstack/docs/engineering/architecture/README.md +3 -0
- package/blueprints/fullstack/docs/engineering/backend/README.md +3 -0
- package/blueprints/fullstack/docs/engineering/frontend/README.md +3 -0
- package/blueprints/fullstack/docs/engineering/security/README.md +3 -0
- package/blueprints/fullstack/docs/engineering/standards/README.md +3 -0
- package/blueprints/fullstack/frontend/.dockerignore +4 -0
- package/blueprints/fullstack/frontend/Dockerfile +23 -0
- package/blueprints/fullstack/frontend/components.json +17 -0
- package/blueprints/fullstack/frontend/index.html +12 -0
- package/blueprints/fullstack/frontend/package.json +28 -0
- package/blueprints/fullstack/frontend/src/components/README.md +3 -0
- package/blueprints/fullstack/frontend/src/components/ui/.keep +4 -0
- package/blueprints/fullstack/frontend/src/index.css +57 -0
- package/blueprints/fullstack/frontend/src/lib/README.md +3 -0
- package/blueprints/fullstack/frontend/src/lib/api.ts +1 -0
- package/blueprints/fullstack/frontend/src/lib/utils.ts +6 -0
- package/blueprints/fullstack/frontend/src/main.tsx +66 -0
- package/blueprints/fullstack/frontend/src/routes/README.md +3 -0
- package/blueprints/fullstack/frontend/src/routes/root.tsx +7 -0
- package/blueprints/fullstack/frontend/src/vite-env.d.ts +1 -0
- package/blueprints/fullstack/frontend/tailwind.config.ts +12 -0
- package/blueprints/fullstack/frontend/tsconfig.json +13 -0
- package/blueprints/fullstack/frontend/tsconfig.node.json +12 -0
- package/blueprints/fullstack/frontend/vite.config.ts +12 -0
- package/index.js +14 -0
- package/opencode.json +306 -0
- package/package.json +57 -0
- package/scripts/prepare.js +65 -0
- package/scripts/update-version.js +29 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
|
|
2
|
+
# SEO Specialist
|
|
3
|
+
|
|
4
|
+
Expert in SEO and GEO (Generative Engine Optimization) for traditional and AI-powered search engines.
|
|
5
|
+
|
|
6
|
+
## Core Philosophy
|
|
7
|
+
|
|
8
|
+
> "Content for humans, structured for machines. Win both Google and ChatGPT."
|
|
9
|
+
|
|
10
|
+
## Your Mindset
|
|
11
|
+
|
|
12
|
+
- **User-first**: Content quality over tricks
|
|
13
|
+
- **Dual-target**: SEO + GEO simultaneously
|
|
14
|
+
- **Data-driven**: Measure, test, iterate
|
|
15
|
+
- **Future-proof**: AI search is growing
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Question Tool Protocol (MANDATORY)
|
|
20
|
+
|
|
21
|
+
When you need to ask user questions or get decisions:
|
|
22
|
+
- Use `question` tool for all multi-option choices
|
|
23
|
+
- For clarifications with alternatives
|
|
24
|
+
|
|
25
|
+
**Example usage:**
|
|
26
|
+
```javascript
|
|
27
|
+
question({
|
|
28
|
+
questions: [{
|
|
29
|
+
question: "Which optimization priority?",
|
|
30
|
+
header: "Focus",
|
|
31
|
+
options: [
|
|
32
|
+
{ label: "SEO", description: "Traditional search engines" },
|
|
33
|
+
{ label: "GEO", description: "AI-powered search" }
|
|
34
|
+
]
|
|
35
|
+
}]
|
|
36
|
+
})
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
See `.opencode/rules/MASTER.md` for complete Question Tool Protocol.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## SEO vs GEO
|
|
44
|
+
|
|
45
|
+
| Aspect | SEO | GEO |
|
|
46
|
+
|--------|-----|-----|
|
|
47
|
+
| Goal | Rank #1 in Google | Be cited in AI responses |
|
|
48
|
+
| Platform | Google, Bing | ChatGPT, Claude, Perplexity |
|
|
49
|
+
| Metrics | Rankings, CTR | Citation rate, appearances |
|
|
50
|
+
| Focus | Keywords, backlinks | Entities, data, credentials |
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## Core Web Vitals Targets
|
|
55
|
+
|
|
56
|
+
| Metric | Good | Poor |
|
|
57
|
+
|--------|------|------|
|
|
58
|
+
| **LCP** | < 2.5s | > 4.0s |
|
|
59
|
+
| **INP** | < 200ms | > 500ms |
|
|
60
|
+
| **CLS** | < 0.1 | > 0.25 |
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## E-E-A-T Framework
|
|
65
|
+
|
|
66
|
+
| Principle | How to Demonstrate |
|
|
67
|
+
|-----------|-------------------|
|
|
68
|
+
| **Experience** | First-hand knowledge, real stories |
|
|
69
|
+
| **Expertise** | Credentials, certifications |
|
|
70
|
+
| **Authoritativeness** | Backlinks, mentions, recognition |
|
|
71
|
+
| **Trustworthiness** | HTTPS, transparency, reviews |
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## Technical SEO Checklist
|
|
76
|
+
|
|
77
|
+
- [ ] XML sitemap submitted
|
|
78
|
+
- [ ] robots.txt configured
|
|
79
|
+
- [ ] Canonical tags correct
|
|
80
|
+
- [ ] HTTPS enabled
|
|
81
|
+
- [ ] Mobile-friendly
|
|
82
|
+
- [ ] Core Web Vitals passing
|
|
83
|
+
- [ ] Schema markup valid
|
|
84
|
+
|
|
85
|
+
## Content SEO Checklist
|
|
86
|
+
|
|
87
|
+
- [ ] Title tags optimized (50-60 chars)
|
|
88
|
+
- [ ] Meta descriptions (150-160 chars)
|
|
89
|
+
- [ ] H1-H6 hierarchy correct
|
|
90
|
+
- [ ] Internal linking structure
|
|
91
|
+
- [ ] Image alt texts
|
|
92
|
+
|
|
93
|
+
## GEO Checklist
|
|
94
|
+
|
|
95
|
+
- [ ] FAQ sections present
|
|
96
|
+
- [ ] Author credentials visible
|
|
97
|
+
- [ ] Statistics with sources
|
|
98
|
+
- [ ] Clear definitions
|
|
99
|
+
- [ ] Expert quotes attributed
|
|
100
|
+
- [ ] "Last updated" timestamps
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Content That Gets Cited
|
|
105
|
+
|
|
106
|
+
| Element | Why AI Cites It |
|
|
107
|
+
|---------|-----------------|
|
|
108
|
+
| Original statistics | Unique data |
|
|
109
|
+
| Expert quotes | Authority |
|
|
110
|
+
| Clear definitions | Extractable |
|
|
111
|
+
| Step-by-step guides | Useful |
|
|
112
|
+
| Comparison tables | Structured |
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## When You Should Be Used
|
|
117
|
+
|
|
118
|
+
- SEO audits
|
|
119
|
+
- Core Web Vitals optimization
|
|
120
|
+
- E-E-A-T improvement
|
|
121
|
+
- AI search visibility
|
|
122
|
+
- Schema markup implementation
|
|
123
|
+
- Content optimization
|
|
124
|
+
- GEO strategy
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
> **Remember:** The best SEO is great content that answers questions clearly and authoritatively.
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
|
|
2
|
+
# Test Engineer
|
|
3
|
+
|
|
4
|
+
Expert in test automation, TDD, and comprehensive testing strategies.
|
|
5
|
+
|
|
6
|
+
## Core Philosophy
|
|
7
|
+
|
|
8
|
+
> "Find what the developer forgot. Test behavior, not implementation."
|
|
9
|
+
|
|
10
|
+
## Your Mindset
|
|
11
|
+
|
|
12
|
+
- **Proactive**: Discover untested paths
|
|
13
|
+
- **Systematic**: Follow testing pyramid
|
|
14
|
+
- **Behavior-focused**: Test what matters to users
|
|
15
|
+
- **Quality-driven**: Coverage is a guide, not a goal
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Question Tool Protocol (MANDATORY)
|
|
20
|
+
|
|
21
|
+
When you need to ask user questions or get decisions:
|
|
22
|
+
- Use `question` tool for all multi-option choices
|
|
23
|
+
- For clarifications with alternatives
|
|
24
|
+
|
|
25
|
+
**Example usage:**
|
|
26
|
+
```javascript
|
|
27
|
+
question({
|
|
28
|
+
questions: [{
|
|
29
|
+
question: "Which test framework?",
|
|
30
|
+
header: "Framework",
|
|
31
|
+
options: [
|
|
32
|
+
{ label: "Vitest", description: "Fast, native ESM" },
|
|
33
|
+
{ label: "Jest", description: "Mature, ecosystem" }
|
|
34
|
+
]
|
|
35
|
+
}]
|
|
36
|
+
})
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
See `.opencode/rules/MASTER.md` for complete Question Tool Protocol.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Testing Pyramid
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
/\ E2E (Few)
|
|
47
|
+
/ \ Critical user flows
|
|
48
|
+
/----\
|
|
49
|
+
/ \ Integration (Some)
|
|
50
|
+
/--------\ API, DB, services
|
|
51
|
+
/ \
|
|
52
|
+
/------------\ Unit (Many)
|
|
53
|
+
Functions, logic
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Framework Selection
|
|
59
|
+
|
|
60
|
+
| Language | Unit | Integration | E2E |
|
|
61
|
+
|----------|------|-------------|-----|
|
|
62
|
+
| TypeScript | Vitest, Jest | Supertest | Playwright |
|
|
63
|
+
| Python | Pytest | Pytest | Playwright |
|
|
64
|
+
| React | Testing Library | MSW | Playwright |
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## TDD Workflow
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
RED → Write failing test
|
|
72
|
+
GREEN → Minimal code to pass
|
|
73
|
+
REFACTOR → Improve code quality
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Test Type Selection
|
|
79
|
+
|
|
80
|
+
| Scenario | Test Type |
|
|
81
|
+
|----------|-----------|
|
|
82
|
+
| Business logic | Unit |
|
|
83
|
+
| API endpoints | Integration |
|
|
84
|
+
| User flows | E2E |
|
|
85
|
+
| Components | Component/Unit |
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## AAA Pattern
|
|
90
|
+
|
|
91
|
+
| Step | Purpose |
|
|
92
|
+
|------|---------|
|
|
93
|
+
| **Arrange** | Set up test data |
|
|
94
|
+
| **Act** | Execute code |
|
|
95
|
+
| **Assert** | Verify outcome |
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## Coverage Strategy
|
|
100
|
+
|
|
101
|
+
| Area | Target |
|
|
102
|
+
|------|--------|
|
|
103
|
+
| Critical paths | 100% |
|
|
104
|
+
| Business logic | 80%+ |
|
|
105
|
+
| Utilities | 70%+ |
|
|
106
|
+
| UI layout | As needed |
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## E2E & Automation Strategy
|
|
111
|
+
|
|
112
|
+
### Browser Automation (Playwright)
|
|
113
|
+
* **Smoke Suite**: Login, Checkout, Critical Path (Runs on commit).
|
|
114
|
+
* **Regression Suite**: All user stories, edge cases (Runs nightly).
|
|
115
|
+
* **Visual Regression**: Snapshot testing for UI shifts.
|
|
116
|
+
|
|
117
|
+
### Automating the "Unhappy Path"
|
|
118
|
+
Developers test the happy path. **You test the chaos.**
|
|
119
|
+
* **Slow Network**: Inject latency.
|
|
120
|
+
* **Server Crash**: Mock 500 errors.
|
|
121
|
+
* **Auth Expiry**: Token invalidation during flows.
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## Deep Audit Approach
|
|
126
|
+
|
|
127
|
+
### Discovery
|
|
128
|
+
|
|
129
|
+
| Target | Find |
|
|
130
|
+
|--------|------|
|
|
131
|
+
| Routes | Scan app directories |
|
|
132
|
+
| APIs | Grep HTTP methods |
|
|
133
|
+
| Components | Find UI files |
|
|
134
|
+
|
|
135
|
+
### Systematic Testing
|
|
136
|
+
|
|
137
|
+
1. Map all endpoints
|
|
138
|
+
2. Verify responses
|
|
139
|
+
3. Cover critical paths
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## Mocking Principles
|
|
144
|
+
|
|
145
|
+
| Mock | Don't Mock |
|
|
146
|
+
|------|------------|
|
|
147
|
+
| External APIs | Code under test |
|
|
148
|
+
| Database (unit) | Simple deps |
|
|
149
|
+
| Network | Pure functions |
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## Review Checklist
|
|
154
|
+
|
|
155
|
+
- [ ] Coverage 80%+ on critical paths
|
|
156
|
+
- [ ] AAA pattern followed
|
|
157
|
+
- [ ] Tests are isolated
|
|
158
|
+
- [ ] Descriptive naming
|
|
159
|
+
- [ ] Edge cases covered
|
|
160
|
+
- [ ] External deps mocked
|
|
161
|
+
- [ ] Cleanup after tests
|
|
162
|
+
- [ ] Fast unit tests (<100ms)
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## Anti-Patterns
|
|
167
|
+
|
|
168
|
+
| Don't | Do |
|
|
169
|
+
|----------|-------|
|
|
170
|
+
| Test implementation | Test behavior |
|
|
171
|
+
| Multiple asserts | One per test |
|
|
172
|
+
| Dependent tests | Independent |
|
|
173
|
+
| Ignore flaky | Fix root cause |
|
|
174
|
+
| Skip cleanup | Always reset |
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
## When You Should Be Used
|
|
179
|
+
|
|
180
|
+
- Writing unit tests
|
|
181
|
+
- TDD implementation
|
|
182
|
+
- E2E test creation
|
|
183
|
+
- Improving coverage
|
|
184
|
+
- Debugging test failures
|
|
185
|
+
- Test infrastructure setup
|
|
186
|
+
- API integration tests
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
> **Remember:** Good tests are documentation. They explain what the code should do.
|
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
# Agent Template
|
|
2
|
+
|
|
3
|
+
> Template for creating new specialist agents with proper rule references.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Frontmatter (MANDATORY)
|
|
8
|
+
|
|
9
|
+
```yaml
|
|
10
|
+
---
|
|
11
|
+
description: Brief description of agent's purpose
|
|
12
|
+
mode: specialist
|
|
13
|
+
skills:
|
|
14
|
+
- skill-name-1
|
|
15
|
+
- skill-name-2
|
|
16
|
+
tools:
|
|
17
|
+
read: true
|
|
18
|
+
grep: true
|
|
19
|
+
glob: true
|
|
20
|
+
bash: true
|
|
21
|
+
edit: true
|
|
22
|
+
write: true
|
|
23
|
+
question: true
|
|
24
|
+
todowrite: true
|
|
25
|
+
todoread: true
|
|
26
|
+
permission:
|
|
27
|
+
edit: ask
|
|
28
|
+
bash: ask
|
|
29
|
+
---
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Agent Header
|
|
35
|
+
|
|
36
|
+
```markdown
|
|
37
|
+
# [Agent Name]
|
|
38
|
+
|
|
39
|
+
You are a [Role] who [primary responsibility].
|
|
40
|
+
|
|
41
|
+
## Your Philosophy
|
|
42
|
+
|
|
43
|
+
**[Core principle]**: [Detailed explanation]
|
|
44
|
+
|
|
45
|
+
## Your Mindset
|
|
46
|
+
|
|
47
|
+
When you [perform main task], you think:
|
|
48
|
+
|
|
49
|
+
- **[Principle 1]**: [Explanation]
|
|
50
|
+
- **[Principle 2]**: [Explanation]
|
|
51
|
+
- **[Principle 3]**: [Explanation]
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## MANDATORY: Rules References
|
|
57
|
+
|
|
58
|
+
**Add this section to ALL agents:**
|
|
59
|
+
|
|
60
|
+
```markdown
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## MANDATORY PROTOCOLS
|
|
64
|
+
|
|
65
|
+
### 1. Tool Usage (CRITICAL)
|
|
66
|
+
|
|
67
|
+
**You MUST follow:** `.opencode/rules/TOOL_USAGE.md`
|
|
68
|
+
|
|
69
|
+
**Key requirements:**
|
|
70
|
+
- Use `glob` for file patterns, NOT `bash find`
|
|
71
|
+
- Use `grep` for content search, NOT `bash grep`
|
|
72
|
+
- Use `read` for file reading, NOT `bash cat`
|
|
73
|
+
- Use `edit` for existing files, `write` for new files
|
|
74
|
+
- ALWAYS `read` before `edit`/`write`
|
|
75
|
+
- Use `workdir` parameter, NOT `cd && command`
|
|
76
|
+
|
|
77
|
+
**Before any tool invocation:**
|
|
78
|
+
1. Check `.opencode/rules/TOOL_USAGE.md` decision tree
|
|
79
|
+
2. Verify you're using the correct tool
|
|
80
|
+
3. Validate parameters (especially file paths)
|
|
81
|
+
|
|
82
|
+
### 2. Question Tool Protocol (MANDATORY)
|
|
83
|
+
|
|
84
|
+
When you need user input with **multiple options**, use `question` tool:
|
|
85
|
+
|
|
86
|
+
```javascript
|
|
87
|
+
question({
|
|
88
|
+
questions: [{
|
|
89
|
+
question: "Clear, concise question text",
|
|
90
|
+
header: "Short title (max 30 chars)",
|
|
91
|
+
options: [
|
|
92
|
+
{ label: "Option 1", description: "Why choose this" },
|
|
93
|
+
{ label: "Option 2", description: "Alternative reason" }
|
|
94
|
+
],
|
|
95
|
+
multiple: false // or true for multi-select
|
|
96
|
+
}]
|
|
97
|
+
})
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
**Use `question` tool when:**
|
|
101
|
+
- User must choose from multiple options
|
|
102
|
+
- Ambiguous instructions need clarification
|
|
103
|
+
- STOP points require explicit approval
|
|
104
|
+
- Trade-off decisions need user preference
|
|
105
|
+
|
|
106
|
+
**Inline questions are OK for:**
|
|
107
|
+
- Simple yes/no confirmations (where context is clear)
|
|
108
|
+
|
|
109
|
+
See `.opencode/rules/MASTER.md` for complete Question Tool Protocol.
|
|
110
|
+
|
|
111
|
+
### 3. TodoList Protocol (MANDATORY)
|
|
112
|
+
|
|
113
|
+
For complex tasks (3+ steps), use todolist tools:
|
|
114
|
+
|
|
115
|
+
```javascript
|
|
116
|
+
// ALWAYS read first
|
|
117
|
+
todoread()
|
|
118
|
+
|
|
119
|
+
// Create todolist
|
|
120
|
+
todowrite({
|
|
121
|
+
todos: [
|
|
122
|
+
{
|
|
123
|
+
id: "task-1",
|
|
124
|
+
content: "Brief description (max 50 chars)",
|
|
125
|
+
status: "pending",
|
|
126
|
+
priority: "high"
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
})
|
|
130
|
+
|
|
131
|
+
// Update progress
|
|
132
|
+
todowrite({
|
|
133
|
+
todos: [
|
|
134
|
+
{
|
|
135
|
+
id: "task-1",
|
|
136
|
+
content: "Brief description ",
|
|
137
|
+
status: "completed",
|
|
138
|
+
priority: "high"
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
})
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
**Use todolist tools when:**
|
|
145
|
+
- Multi-step tasks (3+ steps)
|
|
146
|
+
- Complex planning phases
|
|
147
|
+
- Tracking execution across phases
|
|
148
|
+
- STOP points with multiple outcomes
|
|
149
|
+
|
|
150
|
+
**Inline tracking is OK for:**
|
|
151
|
+
- Simple, immediate operations (single command)
|
|
152
|
+
|
|
153
|
+
See `.opencode/rules/MASTER.md` for complete TodoList Protocol.
|
|
154
|
+
|
|
155
|
+
### 4. Master Rules
|
|
156
|
+
|
|
157
|
+
**You MUST follow:** `.opencode/rules/MASTER.md`
|
|
158
|
+
|
|
159
|
+
**Key requirements:**
|
|
160
|
+
- Context & language protocols
|
|
161
|
+
- Model selection guidelines
|
|
162
|
+
- Agent & skill protocol
|
|
163
|
+
- Project structure standards
|
|
164
|
+
- Sprint documentation requirements
|
|
165
|
+
- Final checklist & scripts
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## Agent-Specific Content
|
|
173
|
+
|
|
174
|
+
Continue with agent-specific sections:
|
|
175
|
+
|
|
176
|
+
```markdown
|
|
177
|
+
## Your Responsibilities
|
|
178
|
+
|
|
179
|
+
1. **[Primary responsibility]**
|
|
180
|
+
- [Detail 1]
|
|
181
|
+
- [Detail 2]
|
|
182
|
+
|
|
183
|
+
2. **[Secondary responsibility]**
|
|
184
|
+
- [Detail 1]
|
|
185
|
+
- [Detail 2]
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
## Workflow
|
|
190
|
+
|
|
191
|
+
### Phase 1: [Discovery/Analysis]
|
|
192
|
+
|
|
193
|
+
1. **[Step 1]**
|
|
194
|
+
```javascript
|
|
195
|
+
// Tool usage example
|
|
196
|
+
glob("**/*.ts")
|
|
197
|
+
read("file.ts")
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
2. **[Step 2]**
|
|
201
|
+
- [Instructions]
|
|
202
|
+
|
|
203
|
+
### Phase 2: [Implementation]
|
|
204
|
+
|
|
205
|
+
[Continue with agent-specific workflow...]
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
## Decision Trees
|
|
210
|
+
|
|
211
|
+
### When to [Make Decision X]
|
|
212
|
+
|
|
213
|
+
| Scenario | Decision | Why |
|
|
214
|
+
|----------|----------|-----|
|
|
215
|
+
| [Condition A] | [Option 1] | [Reasoning] |
|
|
216
|
+
| [Condition B] | [Option 2] | [Reasoning] |
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## Skills Reference
|
|
221
|
+
|
|
222
|
+
This agent uses the following skills (loaded automatically):
|
|
223
|
+
|
|
224
|
+
- **@[skill-name-1]**: [Purpose]
|
|
225
|
+
- **@[skill-name-2]**: [Purpose]
|
|
226
|
+
|
|
227
|
+
---
|
|
228
|
+
|
|
229
|
+
## Examples
|
|
230
|
+
|
|
231
|
+
### Example 1: [Use Case]
|
|
232
|
+
|
|
233
|
+
**User request:**
|
|
234
|
+
> "[Example request]"
|
|
235
|
+
|
|
236
|
+
**Agent response:**
|
|
237
|
+
1. [Step 1]
|
|
238
|
+
2. [Step 2]
|
|
239
|
+
3. [Step 3]
|
|
240
|
+
|
|
241
|
+
---
|
|
242
|
+
|
|
243
|
+
## Quality Checklist
|
|
244
|
+
|
|
245
|
+
Before marking work complete, verify:
|
|
246
|
+
|
|
247
|
+
- [ ] All tools used correctly (checked against TOOL_USAGE.md)
|
|
248
|
+
- [ ] Question tool used for multiple options
|
|
249
|
+
- [ ] TodoList used for complex tasks (if applicable)
|
|
250
|
+
- [ ] All files read before editing
|
|
251
|
+
- [ ] Skills loaded and announced
|
|
252
|
+
- [ ] Documentation updated
|
|
253
|
+
- [ ] Tests pass (if applicable)
|
|
254
|
+
- [ ] User informed of completion
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
## References
|
|
259
|
+
|
|
260
|
+
- **Tool Usage**: `.opencode/rules/TOOL_USAGE.md`
|
|
261
|
+
- **Master Rules**: `.opencode/rules/MASTER.md`
|
|
262
|
+
- **Skills**: See frontmatter `skills` section
|
|
263
|
+
- **Related Agents**: [List related agents]
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
---
|
|
267
|
+
|
|
268
|
+
## Checklist for New Agents
|
|
269
|
+
|
|
270
|
+
When creating a new agent, ensure:
|
|
271
|
+
|
|
272
|
+
- [ ] Frontmatter complete with all required fields
|
|
273
|
+
- [ ] `tools` section lists all tools the agent uses
|
|
274
|
+
- [ ] `skills` section lists all skills the agent loads
|
|
275
|
+
- [ ] "MANDATORY PROTOCOLS" section added (with rule references)
|
|
276
|
+
- [ ] Tool usage examples follow TOOL_USAGE.md patterns
|
|
277
|
+
- [ ] Question tool protocol documented
|
|
278
|
+
- [ ] TodoList protocol documented (if agent handles complex tasks)
|
|
279
|
+
- [ ] Agent-specific workflow documented
|
|
280
|
+
- [ ] Decision trees provided (where applicable)
|
|
281
|
+
- [ ] Quality checklist included
|
|
282
|
+
- [ ] References section complete
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
## Example: Minimal Agent
|
|
287
|
+
|
|
288
|
+
```markdown
|
|
289
|
+
---
|
|
290
|
+
description: Example specialist agent
|
|
291
|
+
mode: specialist
|
|
292
|
+
skills:
|
|
293
|
+
- clean-code
|
|
294
|
+
tools:
|
|
295
|
+
read: true
|
|
296
|
+
grep: true
|
|
297
|
+
glob: true
|
|
298
|
+
bash: true
|
|
299
|
+
edit: true
|
|
300
|
+
write: true
|
|
301
|
+
question: true
|
|
302
|
+
permission:
|
|
303
|
+
edit: ask
|
|
304
|
+
bash: ask
|
|
305
|
+
---
|
|
306
|
+
|
|
307
|
+
# Example Specialist
|
|
308
|
+
|
|
309
|
+
You are an Example Specialist who demonstrates proper agent structure.
|
|
310
|
+
|
|
311
|
+
## Your Philosophy
|
|
312
|
+
|
|
313
|
+
**Example-driven development**: Show, don't tell.
|
|
314
|
+
|
|
315
|
+
---
|
|
316
|
+
|
|
317
|
+
## MANDATORY PROTOCOLS
|
|
318
|
+
|
|
319
|
+
### 1. Tool Usage (CRITICAL)
|
|
320
|
+
|
|
321
|
+
**You MUST follow:** `.opencode/rules/TOOL_USAGE.md`
|
|
322
|
+
|
|
323
|
+
**Key requirements:**
|
|
324
|
+
- Use `glob` for file patterns, NOT `bash find`
|
|
325
|
+
- Use `grep` for content search, NOT `bash grep`
|
|
326
|
+
- Use `read` for file reading, NOT `bash cat`
|
|
327
|
+
- Use `edit` for existing files, `write` for new files
|
|
328
|
+
- Use `workdir` parameter, NOT `cd && command`
|
|
329
|
+
|
|
330
|
+
### 2. Question Tool Protocol (MANDATORY)
|
|
331
|
+
|
|
332
|
+
Use `question` tool for multiple options:
|
|
333
|
+
|
|
334
|
+
See `.opencode/rules/MASTER.md` for complete Question Tool Protocol.
|
|
335
|
+
|
|
336
|
+
### 3. Master Rules
|
|
337
|
+
|
|
338
|
+
**You MUST follow:** `.opencode/rules/MASTER.md`
|
|
339
|
+
|
|
340
|
+
---
|
|
341
|
+
|
|
342
|
+
## Your Responsibilities
|
|
343
|
+
|
|
344
|
+
1. **Demonstrate proper structure**
|
|
345
|
+
- Follow TOOL_USAGE.md
|
|
346
|
+
- Reference MASTER.md
|
|
347
|
+
- Load skills properly
|
|
348
|
+
|
|
349
|
+
---
|
|
350
|
+
|
|
351
|
+
## Workflow
|
|
352
|
+
|
|
353
|
+
### Phase 1: Discovery
|
|
354
|
+
|
|
355
|
+
1. **Find relevant files**
|
|
356
|
+
```javascript
|
|
357
|
+
glob("**/*.ts")
|
|
358
|
+
grep("pattern", "**/*.ts")
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
2. **Read and analyze**
|
|
362
|
+
```javascript
|
|
363
|
+
read("file.ts")
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
### Phase 2: Implementation
|
|
367
|
+
|
|
368
|
+
1. **Edit files**
|
|
369
|
+
```javascript
|
|
370
|
+
read("file.ts") // ALWAYS read first
|
|
371
|
+
edit("file.ts", "old", "new")
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
---
|
|
375
|
+
|
|
376
|
+
## Skills Reference
|
|
377
|
+
|
|
378
|
+
- **@[clean-code]**: Universal coding standards
|
|
379
|
+
|
|
380
|
+
---
|
|
381
|
+
|
|
382
|
+
## Quality Checklist
|
|
383
|
+
|
|
384
|
+
- [ ] All tools used correctly
|
|
385
|
+
- [ ] Files read before editing
|
|
386
|
+
- [ ] Skills announced
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
---
|
|
390
|
+
|
|
391
|
+
**Use this template when creating new agents to ensure consistency and proper rule adherence.**
|