namnam-skills 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +223 -0
- package/package.json +63 -0
- package/src/cli.js +460 -0
- package/src/index.js +1 -0
- package/src/postinstall.js +162 -0
- package/src/templates/bmad/bmb/agents/agent-builder.md +14 -0
- package/src/templates/bmad/bmb/agents/module-builder.md +14 -0
- package/src/templates/bmad/bmb/agents/workflow-builder.md +14 -0
- package/src/templates/bmad/bmb/workflows/agent.md +5 -0
- package/src/templates/bmad/bmb/workflows/module.md +5 -0
- package/src/templates/bmad/bmb/workflows/workflow.md +5 -0
- package/src/templates/bmad/bmgd/agents/game-architect.md +14 -0
- package/src/templates/bmad/bmgd/agents/game-designer.md +14 -0
- package/src/templates/bmad/bmgd/agents/game-dev.md +14 -0
- package/src/templates/bmad/bmgd/agents/game-qa.md +14 -0
- package/src/templates/bmad/bmgd/agents/game-scrum-master.md +14 -0
- package/src/templates/bmad/bmgd/agents/game-solo-dev.md +14 -0
- package/src/templates/bmad/bmgd/workflows/brainstorm-game.md +13 -0
- package/src/templates/bmad/bmgd/workflows/code-review.md +13 -0
- package/src/templates/bmad/bmgd/workflows/correct-course.md +13 -0
- package/src/templates/bmad/bmgd/workflows/create-game-brief.md +5 -0
- package/src/templates/bmad/bmgd/workflows/create-gdd.md +5 -0
- package/src/templates/bmad/bmgd/workflows/create-story.md +13 -0
- package/src/templates/bmad/bmgd/workflows/dev-story.md +13 -0
- package/src/templates/bmad/bmgd/workflows/game-architecture.md +13 -0
- package/src/templates/bmad/bmgd/workflows/game-brief.md +13 -0
- package/src/templates/bmad/bmgd/workflows/gametest-automate.md +13 -0
- package/src/templates/bmad/bmgd/workflows/gametest-framework.md +13 -0
- package/src/templates/bmad/bmgd/workflows/gametest-performance.md +13 -0
- package/src/templates/bmad/bmgd/workflows/gametest-playtest-plan.md +13 -0
- package/src/templates/bmad/bmgd/workflows/gametest-test-design.md +13 -0
- package/src/templates/bmad/bmgd/workflows/gametest-test-review.md +13 -0
- package/src/templates/bmad/bmgd/workflows/gdd.md +13 -0
- package/src/templates/bmad/bmgd/workflows/generate-project-context.md +5 -0
- package/src/templates/bmad/bmgd/workflows/narrative.md +13 -0
- package/src/templates/bmad/bmgd/workflows/quick-dev.md +13 -0
- package/src/templates/bmad/bmgd/workflows/quick-prototype.md +13 -0
- package/src/templates/bmad/bmgd/workflows/quick-spec.md +13 -0
- package/src/templates/bmad/bmgd/workflows/retrospective.md +13 -0
- package/src/templates/bmad/bmgd/workflows/sprint-planning.md +13 -0
- package/src/templates/bmad/bmgd/workflows/sprint-status.md +13 -0
- package/src/templates/bmad/bmgd/workflows/workflow-init.md +13 -0
- package/src/templates/bmad/bmgd/workflows/workflow-status.md +13 -0
- package/src/templates/bmad/bmm/agents/analyst.md +14 -0
- package/src/templates/bmad/bmm/agents/architect.md +14 -0
- package/src/templates/bmad/bmm/agents/dev.md +14 -0
- package/src/templates/bmad/bmm/agents/pm.md +14 -0
- package/src/templates/bmad/bmm/agents/quick-flow-solo-dev.md +14 -0
- package/src/templates/bmad/bmm/agents/sm.md +14 -0
- package/src/templates/bmad/bmm/agents/tea.md +14 -0
- package/src/templates/bmad/bmm/agents/tech-writer.md +14 -0
- package/src/templates/bmad/bmm/agents/ux-designer.md +14 -0
- package/src/templates/bmad/bmm/workflows/check-implementation-readiness.md +5 -0
- package/src/templates/bmad/bmm/workflows/code-review.md +13 -0
- package/src/templates/bmad/bmm/workflows/correct-course.md +13 -0
- package/src/templates/bmad/bmm/workflows/create-architecture.md +5 -0
- package/src/templates/bmad/bmm/workflows/create-epics-and-stories.md +5 -0
- package/src/templates/bmad/bmm/workflows/create-excalidraw-dataflow.md +13 -0
- package/src/templates/bmad/bmm/workflows/create-excalidraw-diagram.md +13 -0
- package/src/templates/bmad/bmm/workflows/create-excalidraw-flowchart.md +13 -0
- package/src/templates/bmad/bmm/workflows/create-excalidraw-wireframe.md +13 -0
- package/src/templates/bmad/bmm/workflows/create-product-brief.md +5 -0
- package/src/templates/bmad/bmm/workflows/create-story.md +13 -0
- package/src/templates/bmad/bmm/workflows/create-ux-design.md +5 -0
- package/src/templates/bmad/bmm/workflows/dev-story.md +13 -0
- package/src/templates/bmad/bmm/workflows/document-project.md +13 -0
- package/src/templates/bmad/bmm/workflows/generate-project-context.md +5 -0
- package/src/templates/bmad/bmm/workflows/prd.md +5 -0
- package/src/templates/bmad/bmm/workflows/quick-dev.md +5 -0
- package/src/templates/bmad/bmm/workflows/quick-spec.md +5 -0
- package/src/templates/bmad/bmm/workflows/research.md +5 -0
- package/src/templates/bmad/bmm/workflows/retrospective.md +13 -0
- package/src/templates/bmad/bmm/workflows/sprint-planning.md +13 -0
- package/src/templates/bmad/bmm/workflows/sprint-status.md +13 -0
- package/src/templates/bmad/bmm/workflows/testarch-atdd.md +13 -0
- package/src/templates/bmad/bmm/workflows/testarch-automate.md +13 -0
- package/src/templates/bmad/bmm/workflows/testarch-ci.md +13 -0
- package/src/templates/bmad/bmm/workflows/testarch-framework.md +13 -0
- package/src/templates/bmad/bmm/workflows/testarch-nfr.md +13 -0
- package/src/templates/bmad/bmm/workflows/testarch-test-design.md +13 -0
- package/src/templates/bmad/bmm/workflows/testarch-test-review.md +13 -0
- package/src/templates/bmad/bmm/workflows/testarch-trace.md +13 -0
- package/src/templates/bmad/bmm/workflows/workflow-init.md +13 -0
- package/src/templates/bmad/bmm/workflows/workflow-status.md +13 -0
- package/src/templates/bmad/cis/agents/brainstorming-coach.md +14 -0
- package/src/templates/bmad/cis/agents/creative-problem-solver.md +14 -0
- package/src/templates/bmad/cis/agents/design-thinking-coach.md +14 -0
- package/src/templates/bmad/cis/agents/innovation-strategist.md +14 -0
- package/src/templates/bmad/cis/agents/presentation-master.md +14 -0
- package/src/templates/bmad/cis/agents/storyteller.md +14 -0
- package/src/templates/bmad/cis/workflows/design-thinking.md +13 -0
- package/src/templates/bmad/cis/workflows/innovation-strategy.md +13 -0
- package/src/templates/bmad/cis/workflows/problem-solving.md +13 -0
- package/src/templates/bmad/cis/workflows/storytelling.md +13 -0
- package/src/templates/bmad/core/agents/bmad-master.md +14 -0
- package/src/templates/bmad/core/tasks/index-docs.md +9 -0
- package/src/templates/bmad/core/tasks/shard-doc.md +9 -0
- package/src/templates/bmad/core/workflows/brainstorming.md +5 -0
- package/src/templates/bmad/core/workflows/party-mode.md +5 -0
- package/src/templates/claudekit/agents/ai-sdk-expert.md +135 -0
- package/src/templates/claudekit/agents/cli-expert.md +135 -0
- package/src/templates/claudekit/agents/code-review-expert.md +132 -0
- package/src/templates/claudekit/agents/code-search.md +83 -0
- package/src/templates/claudekit/agents/nestjs-expert.md +128 -0
- package/src/templates/claudekit/agents/oracle.md +120 -0
- package/src/templates/claudekit/agents/research-expert.md +115 -0
- package/src/templates/claudekit/agents/triage-expert.md +116 -0
- package/src/templates/claudekit/commands/checkpoint-create.md +54 -0
- package/src/templates/claudekit/commands/checkpoint-list.md +40 -0
- package/src/templates/claudekit/commands/checkpoint-restore.md +50 -0
- package/src/templates/claudekit/commands/create-command.md +107 -0
- package/src/templates/claudekit/commands/create-subagent.md +96 -0
- package/src/templates/core/code-review.md +70 -0
- package/src/templates/core/git-commit.md +57 -0
- package/src/templates/core/git-push.md +53 -0
- package/src/templates/core/git-status.md +48 -0
- package/src/templates/core/namnam.md +324 -0
- package/src/templates/core/validate-and-fix.md +69 -0
- package/src/templates/cursor-rules/data-science-ml.md +54 -0
- package/src/templates/cursor-rules/devops-infrastructure.md +59 -0
- package/src/templates/cursor-rules/golang-expert.md +61 -0
- package/src/templates/cursor-rules/nestjs-expert.md +60 -0
- package/src/templates/cursor-rules/python-expert.md +53 -0
- package/src/templates/cursor-rules/react-native-expo.md +51 -0
- package/src/templates/cursor-rules/rust-expert.md +61 -0
- package/src/templates/cursor-rules/solidity-web3.md +54 -0
- package/src/templates/cursor-rules/typescript-expert.md +42 -0
- package/src/templates/cursor-rules/vue-nuxt-expert.md +50 -0
- package/src/templates/official-plugins/claude-opus-migration.md +33 -0
- package/src/templates/official-plugins/commit-push-pr.md +55 -0
- package/src/templates/official-plugins/commit.md +60 -0
- package/src/templates/official-plugins/feature-dev.md +65 -0
- package/src/templates/official-plugins/frontend-design.md +53 -0
- package/src/templates/official-plugins/hookify.md +52 -0
- package/src/templates/official-plugins/new-sdk-app.md +45 -0
- package/src/templates/official-plugins/plugin-dev.md +53 -0
- package/src/templates/official-plugins/pr-review-toolkit.md +68 -0
- package/src/templates/official-plugins/ralph-loop.md +51 -0
- package/src/templates/official-plugins/security-guidance.md +36 -0
- package/src/templates/platforms/AGENTS.md +326 -0
- package/src/templates/platforms/aider/aider-template.md +75 -0
- package/src/templates/platforms/cline/clinerules-template.md +205 -0
- package/src/templates/platforms/codex/codex-template.md +74 -0
- package/src/templates/platforms/cursor/cursorrules-template.md +124 -0
- package/src/templates/platforms/gemini/gemini-template.md +93 -0
- package/src/templates/platforms/windsurf/windsurfrules-template.md +166 -0
- package/src/templates/system-prompts/cline-agent-patterns.md +286 -0
- package/src/templates/system-prompts/cursor-agent-patterns.md +177 -0
- package/src/templates/system-prompts/google-antigravity-patterns.md +274 -0
- package/src/templates/system-prompts/industry-best-practices.md +334 -0
- package/src/templates/system-prompts/multi-platform-engineering.md +343 -0
- package/src/templates/system-prompts/vscode-agent-patterns.md +288 -0
- package/src/templates/system-prompts/windsurf-cascade-patterns.md +264 -0
- package/src/templates/vercel-skills/react-best-practices.md +117 -0
- package/src/templates/vercel-skills/web-design-guidelines.md +88 -0
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
# AGENTS.md - Universal AI Agent Configuration
|
|
2
|
+
|
|
3
|
+
> **Industry-Grade Configuration** compatible with all AI coding assistants
|
|
4
|
+
> Powered by insights from Claude Code, Cursor, Windsurf, Cline, VSCode Agent, and 25+ AI platforms
|
|
5
|
+
|
|
6
|
+
This file is automatically read by:
|
|
7
|
+
- **Claude Code** (Anthropic) - Primary support
|
|
8
|
+
- **Cursor** (reads AGENTS.md as fallback)
|
|
9
|
+
- **Windsurf** (reads AGENTS.md as fallback)
|
|
10
|
+
- **Cline** (reads AGENTS.md)
|
|
11
|
+
- **OpenAI Codex** (reads project context)
|
|
12
|
+
- **Aider** (reads project context)
|
|
13
|
+
- **Google Gemini** (reads GEMINI.md)
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Project Overview
|
|
18
|
+
|
|
19
|
+
| Property | Value |
|
|
20
|
+
|----------|-------|
|
|
21
|
+
| **Name** | [Your Project Name] |
|
|
22
|
+
| **Type** | [Web App / API / Library / CLI] |
|
|
23
|
+
| **Stack** | TypeScript, React/Next.js, Node.js |
|
|
24
|
+
| **Test Framework** | Vitest / Jest / Playwright |
|
|
25
|
+
| **Package Manager** | npm / pnpm / yarn |
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Universal Agent Behavior
|
|
30
|
+
|
|
31
|
+
### Core Philosophy
|
|
32
|
+
```
|
|
33
|
+
1. Research before modifying - NEVER guess
|
|
34
|
+
2. Read files before editing
|
|
35
|
+
3. Verify success before proceeding
|
|
36
|
+
4. Handle errors gracefully
|
|
37
|
+
5. Complete tasks autonomously
|
|
38
|
+
6. Ask only when genuinely blocked
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Communication Style
|
|
42
|
+
- **Concise**: Keep responses short and direct
|
|
43
|
+
- **Technical**: Focus on facts, not validation
|
|
44
|
+
- **No filler**: Never start with "Great", "Certainly", "Sure"
|
|
45
|
+
- **Markdown**: Use proper formatting, backticks for code
|
|
46
|
+
- **Direct**: Answer questions, don't explain obvious things
|
|
47
|
+
|
|
48
|
+
### Task Execution Model
|
|
49
|
+
```
|
|
50
|
+
1. Analyze the request fully
|
|
51
|
+
2. Extract ALL requirements to checklist
|
|
52
|
+
3. Research and gather context
|
|
53
|
+
4. Plan minimal, focused changes
|
|
54
|
+
5. Execute with proper error handling
|
|
55
|
+
6. Verify changes work
|
|
56
|
+
7. Update progress tracking
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## Code Style
|
|
62
|
+
|
|
63
|
+
### Always Do
|
|
64
|
+
| Rule | Reason |
|
|
65
|
+
|------|--------|
|
|
66
|
+
| Use TypeScript strict mode | Type safety |
|
|
67
|
+
| Prefer async/await | Readability |
|
|
68
|
+
| Handle errors with try-catch | Robustness |
|
|
69
|
+
| Add all necessary imports | Immediate runnable |
|
|
70
|
+
| Follow existing conventions | Consistency |
|
|
71
|
+
| Use functional patterns | Predictability |
|
|
72
|
+
|
|
73
|
+
### Never Do
|
|
74
|
+
| Rule | Reason |
|
|
75
|
+
|------|--------|
|
|
76
|
+
| Use `any` types | Type safety |
|
|
77
|
+
| Leave console.log | Production cleanliness |
|
|
78
|
+
| Use inline styles | Maintainability |
|
|
79
|
+
| Use magic numbers | Readability |
|
|
80
|
+
| Mutate state directly | Predictability |
|
|
81
|
+
| Skip error handling | Reliability |
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## Naming Conventions
|
|
86
|
+
|
|
87
|
+
| Type | Convention | Example |
|
|
88
|
+
|------|------------|---------|
|
|
89
|
+
| Components | PascalCase | `UserProfile` |
|
|
90
|
+
| Functions | camelCase | `getUserData` |
|
|
91
|
+
| Constants | UPPER_SNAKE | `API_BASE_URL` |
|
|
92
|
+
| Files | kebab-case | `user-profile.tsx` |
|
|
93
|
+
| Types | PascalCase | `UserData` |
|
|
94
|
+
| Hooks | camelCase with use | `useUserAuth` |
|
|
95
|
+
| Test files | *.test.ts / *.spec.ts | `auth.test.ts` |
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## Project Structure
|
|
100
|
+
|
|
101
|
+
```
|
|
102
|
+
src/
|
|
103
|
+
├── app/ # Next.js app router / Entry points
|
|
104
|
+
├── components/ # React components
|
|
105
|
+
│ ├── ui/ # Base UI components (Button, Input, etc.)
|
|
106
|
+
│ └── features/ # Feature-specific components
|
|
107
|
+
├── hooks/ # Custom React hooks
|
|
108
|
+
├── lib/ # Utility functions and helpers
|
|
109
|
+
├── types/ # TypeScript type definitions
|
|
110
|
+
├── server/ # Server-side code / API routes
|
|
111
|
+
├── services/ # External service integrations
|
|
112
|
+
├── stores/ # State management (Zustand, etc.)
|
|
113
|
+
└── tests/ # Test files (if not co-located)
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## Tool Usage Patterns
|
|
119
|
+
|
|
120
|
+
### Research First (CRITICAL)
|
|
121
|
+
```
|
|
122
|
+
Before ANY modification:
|
|
123
|
+
1. Read the target file
|
|
124
|
+
2. Understand existing patterns
|
|
125
|
+
3. Check related files
|
|
126
|
+
4. Identify dependencies
|
|
127
|
+
5. Plan minimal changes
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Parallel Execution
|
|
131
|
+
```
|
|
132
|
+
When operations are independent:
|
|
133
|
+
- Run file reads in parallel
|
|
134
|
+
- Batch similar operations
|
|
135
|
+
- Don't wait unnecessarily
|
|
136
|
+
|
|
137
|
+
When operations depend on each other:
|
|
138
|
+
- Wait for results
|
|
139
|
+
- Validate outputs
|
|
140
|
+
- Use results as inputs
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Task Tracking
|
|
144
|
+
```
|
|
145
|
+
For complex tasks (3+ steps):
|
|
146
|
+
1. Create todo list immediately
|
|
147
|
+
2. Mark items in_progress when starting
|
|
148
|
+
3. Mark complete when finished
|
|
149
|
+
4. Update progress regularly
|
|
150
|
+
5. Don't batch completions
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## Security Requirements
|
|
156
|
+
|
|
157
|
+
### Absolute Rules
|
|
158
|
+
- **NEVER** expose API keys in code
|
|
159
|
+
- **NEVER** commit secrets to repository
|
|
160
|
+
- **NEVER** log sensitive information
|
|
161
|
+
- **NEVER** skip input validation
|
|
162
|
+
- **NEVER** use eval() or similar
|
|
163
|
+
|
|
164
|
+
### Always Do
|
|
165
|
+
- Validate all user input
|
|
166
|
+
- Use parameterized database queries
|
|
167
|
+
- Sanitize HTML output
|
|
168
|
+
- Implement proper authentication
|
|
169
|
+
- Use HTTPS for external requests
|
|
170
|
+
- Follow OWASP guidelines
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
## Preferred Libraries
|
|
175
|
+
|
|
176
|
+
| Purpose | Library | Alternative |
|
|
177
|
+
|---------|---------|-------------|
|
|
178
|
+
| State Management | Zustand | React Query / Jotai |
|
|
179
|
+
| Forms | React Hook Form | Formik |
|
|
180
|
+
| Validation | Zod | Yup |
|
|
181
|
+
| Styling | Tailwind CSS | CSS Modules |
|
|
182
|
+
| Testing (Unit) | Vitest | Jest |
|
|
183
|
+
| Testing (E2E) | Playwright | Cypress |
|
|
184
|
+
| HTTP Client | Axios | fetch API |
|
|
185
|
+
| Dates | date-fns | dayjs |
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
## AI Agent Behavior
|
|
190
|
+
|
|
191
|
+
### When Generating Code
|
|
192
|
+
1. Follow existing patterns in the codebase
|
|
193
|
+
2. Use TypeScript types from `src/types`
|
|
194
|
+
3. Match the existing code style exactly
|
|
195
|
+
4. Add appropriate error handling
|
|
196
|
+
5. Include all necessary imports
|
|
197
|
+
6. Ensure code runs immediately
|
|
198
|
+
|
|
199
|
+
### When Modifying Code
|
|
200
|
+
1. Read the file first (ALWAYS)
|
|
201
|
+
2. Preserve existing functionality
|
|
202
|
+
3. Keep changes minimal and focused
|
|
203
|
+
4. Update related tests if needed
|
|
204
|
+
5. Don't refactor unrelated code
|
|
205
|
+
6. Verify changes work
|
|
206
|
+
|
|
207
|
+
### When Asked to Review
|
|
208
|
+
1. Check for security issues first
|
|
209
|
+
2. Verify type safety
|
|
210
|
+
3. Look for performance problems
|
|
211
|
+
4. Identify missing error handling
|
|
212
|
+
5. Suggest improvements constructively
|
|
213
|
+
|
|
214
|
+
### When Debugging
|
|
215
|
+
1. Understand the error fully
|
|
216
|
+
2. Read relevant context
|
|
217
|
+
3. Identify root cause (not symptoms)
|
|
218
|
+
4. Plan a fix
|
|
219
|
+
5. Implement and verify
|
|
220
|
+
6. Don't guess at solutions
|
|
221
|
+
|
|
222
|
+
---
|
|
223
|
+
|
|
224
|
+
## Custom Commands (Claude Code)
|
|
225
|
+
|
|
226
|
+
### Available Skills
|
|
227
|
+
| Command | Description |
|
|
228
|
+
|---------|-------------|
|
|
229
|
+
| `/namnam <task>` | Orchestrate multiple agents |
|
|
230
|
+
| `/namnam --full <task>` | Maximum power mode |
|
|
231
|
+
| `/code-review` | Multi-aspect code review |
|
|
232
|
+
| `/validate-and-fix` | Run checks and auto-fix |
|
|
233
|
+
| `/git:commit` | Smart commit with message |
|
|
234
|
+
| `/git:push` | Smart push with checks |
|
|
235
|
+
| `/research <topic>` | Deep research with citations |
|
|
236
|
+
|
|
237
|
+
### For Other Platforms
|
|
238
|
+
When using Cursor, Windsurf, Cline, or other agents:
|
|
239
|
+
- Reference this file for project conventions
|
|
240
|
+
- Follow the structure and naming rules
|
|
241
|
+
- Use the preferred libraries
|
|
242
|
+
- Avoid forbidden patterns
|
|
243
|
+
- Maintain code style consistency
|
|
244
|
+
|
|
245
|
+
---
|
|
246
|
+
|
|
247
|
+
## Web Development Standards
|
|
248
|
+
|
|
249
|
+
### Design Philosophy
|
|
250
|
+
- **Visual Excellence**: Users should be impressed at first glance
|
|
251
|
+
- **Modern Aesthetics**: Use contemporary design patterns
|
|
252
|
+
- **Premium Feel**: No basic/simple designs
|
|
253
|
+
- **Dynamic**: Micro-animations, hover effects
|
|
254
|
+
- **Responsive**: Works on all devices
|
|
255
|
+
|
|
256
|
+
### Implementation
|
|
257
|
+
1. Build design system first (tokens, utilities)
|
|
258
|
+
2. Create reusable components
|
|
259
|
+
3. Assemble pages with proper routing
|
|
260
|
+
4. Polish with transitions and animations
|
|
261
|
+
5. Optimize for performance
|
|
262
|
+
|
|
263
|
+
### Accessibility
|
|
264
|
+
- Semantic HTML
|
|
265
|
+
- ARIA labels where needed
|
|
266
|
+
- Keyboard navigation
|
|
267
|
+
- Color contrast compliance
|
|
268
|
+
- Screen reader support
|
|
269
|
+
|
|
270
|
+
---
|
|
271
|
+
|
|
272
|
+
## Memory & Context
|
|
273
|
+
|
|
274
|
+
### What to Remember
|
|
275
|
+
- Important architectural decisions
|
|
276
|
+
- User preferences and patterns
|
|
277
|
+
- Project-specific conventions
|
|
278
|
+
- Previous solutions to similar problems
|
|
279
|
+
- Known issues and workarounds
|
|
280
|
+
|
|
281
|
+
### Knowledge Discovery
|
|
282
|
+
- Check existing documentation first
|
|
283
|
+
- Build on prior analysis
|
|
284
|
+
- Avoid redundant research
|
|
285
|
+
- Reference previous work
|
|
286
|
+
- Store important context
|
|
287
|
+
|
|
288
|
+
---
|
|
289
|
+
|
|
290
|
+
## Error Handling
|
|
291
|
+
|
|
292
|
+
### Strategy
|
|
293
|
+
```
|
|
294
|
+
1. Understand the error message
|
|
295
|
+
2. Read relevant context
|
|
296
|
+
3. Identify the root cause
|
|
297
|
+
4. Plan a fix
|
|
298
|
+
5. Implement solution
|
|
299
|
+
6. Verify fix works
|
|
300
|
+
7. Don't give up immediately
|
|
301
|
+
8. Try alternative approaches
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
### Don't
|
|
305
|
+
- Guess at solutions without research
|
|
306
|
+
- Ignore error messages
|
|
307
|
+
- Skip verification
|
|
308
|
+
- Give up without trying alternatives
|
|
309
|
+
- Assume success without checking
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
## Quality Checklist
|
|
314
|
+
|
|
315
|
+
Before considering any task complete:
|
|
316
|
+
- [ ] Code follows existing patterns
|
|
317
|
+
- [ ] TypeScript types are correct
|
|
318
|
+
- [ ] Error handling is in place
|
|
319
|
+
- [ ] No security vulnerabilities
|
|
320
|
+
- [ ] Changes are minimal and focused
|
|
321
|
+
- [ ] Code runs without errors
|
|
322
|
+
- [ ] Related tests pass (if applicable)
|
|
323
|
+
|
|
324
|
+
---
|
|
325
|
+
|
|
326
|
+
**Generated by namnam-skills** | **Source**: [system-prompts-and-models-of-ai-tools](https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools)
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Aider Configuration
|
|
2
|
+
|
|
3
|
+
> Configuration for Aider AI pair programming assistant
|
|
4
|
+
|
|
5
|
+
## File: .aider.conf.yml
|
|
6
|
+
|
|
7
|
+
Place this file in your project root to configure Aider behavior.
|
|
8
|
+
|
|
9
|
+
```yaml
|
|
10
|
+
# Aider Configuration
|
|
11
|
+
|
|
12
|
+
# Model settings
|
|
13
|
+
model: gpt-4-turbo
|
|
14
|
+
edit-format: diff
|
|
15
|
+
|
|
16
|
+
# File handling
|
|
17
|
+
auto-commits: true
|
|
18
|
+
dirty-commits: false
|
|
19
|
+
attribute-author: true
|
|
20
|
+
attribute-committer: true
|
|
21
|
+
|
|
22
|
+
# Code style
|
|
23
|
+
lint-cmd: npm run lint
|
|
24
|
+
test-cmd: npm test
|
|
25
|
+
|
|
26
|
+
# Context
|
|
27
|
+
read:
|
|
28
|
+
- README.md
|
|
29
|
+
- package.json
|
|
30
|
+
- tsconfig.json
|
|
31
|
+
|
|
32
|
+
# Ignore patterns (also respects .gitignore)
|
|
33
|
+
ignore:
|
|
34
|
+
- node_modules/
|
|
35
|
+
- dist/
|
|
36
|
+
- .next/
|
|
37
|
+
- coverage/
|
|
38
|
+
|
|
39
|
+
# Git settings
|
|
40
|
+
git-depth: 10
|
|
41
|
+
show-diffs: true
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## File: .aider.input.md
|
|
45
|
+
|
|
46
|
+
Optional file for persistent instructions:
|
|
47
|
+
|
|
48
|
+
```markdown
|
|
49
|
+
# Aider Instructions
|
|
50
|
+
|
|
51
|
+
## Project Context
|
|
52
|
+
This is a Next.js 14 application using:
|
|
53
|
+
- TypeScript with strict mode
|
|
54
|
+
- Tailwind CSS for styling
|
|
55
|
+
- Prisma for database
|
|
56
|
+
- NextAuth for authentication
|
|
57
|
+
|
|
58
|
+
## Code Style
|
|
59
|
+
- Use functional components
|
|
60
|
+
- Prefer server components where possible
|
|
61
|
+
- Use Zod for validation
|
|
62
|
+
- Handle errors with try-catch
|
|
63
|
+
|
|
64
|
+
## When Making Changes
|
|
65
|
+
1. Follow existing code patterns
|
|
66
|
+
2. Add TypeScript types
|
|
67
|
+
3. Update tests if needed
|
|
68
|
+
4. Keep commits atomic
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Usage
|
|
72
|
+
|
|
73
|
+
1. Copy `.aider.conf.yml` to project root
|
|
74
|
+
2. Optionally add `.aider.input.md` for persistent context
|
|
75
|
+
3. Run `aider` in your project directory
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
# Cline Rules - Industry-Grade Configuration
|
|
2
|
+
|
|
3
|
+
> Powered by insights from Cline (formerly Claude Dev) and 25+ AI coding assistants
|
|
4
|
+
|
|
5
|
+
## File: .clinerules
|
|
6
|
+
|
|
7
|
+
Place this content in your project root to configure Cline behavior.
|
|
8
|
+
|
|
9
|
+
```yaml
|
|
10
|
+
# Industry-Grade Cline Configuration
|
|
11
|
+
# Source: system-prompts-and-models-of-ai-tools
|
|
12
|
+
|
|
13
|
+
identity:
|
|
14
|
+
role: "Expert software engineer with extensive knowledge in many languages and frameworks"
|
|
15
|
+
behavior: "Agentic - complete tasks autonomously before yielding to user"
|
|
16
|
+
|
|
17
|
+
core_philosophy:
|
|
18
|
+
- "Research before modifying - NEVER guess"
|
|
19
|
+
- "Read files before editing"
|
|
20
|
+
- "Verify success before proceeding"
|
|
21
|
+
- "Handle errors gracefully"
|
|
22
|
+
- "Complete tasks autonomously"
|
|
23
|
+
- "Ask only when genuinely blocked"
|
|
24
|
+
|
|
25
|
+
tool_usage:
|
|
26
|
+
strategy: "one_at_a_time"
|
|
27
|
+
wait_for_confirmation: true
|
|
28
|
+
verify_success: true
|
|
29
|
+
|
|
30
|
+
guidelines:
|
|
31
|
+
- "Use one tool per message"
|
|
32
|
+
- "Wait for user response with results"
|
|
33
|
+
- "Analyze results before next action"
|
|
34
|
+
- "Each step informed by previous results"
|
|
35
|
+
- "Never assume tool success"
|
|
36
|
+
|
|
37
|
+
file_editing:
|
|
38
|
+
default_tool: "replace_in_file"
|
|
39
|
+
|
|
40
|
+
write_to_file:
|
|
41
|
+
use_when:
|
|
42
|
+
- "Creating new files"
|
|
43
|
+
- "Overwriting large boilerplate"
|
|
44
|
+
- "Extensive changes make replace unwieldy"
|
|
45
|
+
- "Complete restructuring needed"
|
|
46
|
+
|
|
47
|
+
replace_in_file:
|
|
48
|
+
use_when:
|
|
49
|
+
- "Small, localized changes (DEFAULT)"
|
|
50
|
+
- "Updating specific portions"
|
|
51
|
+
- "Long files with minimal changes"
|
|
52
|
+
format: "SEARCH/REPLACE blocks"
|
|
53
|
+
rules:
|
|
54
|
+
- "Match content EXACTLY including whitespace"
|
|
55
|
+
- "Include enough context for uniqueness"
|
|
56
|
+
- "List blocks in file order"
|
|
57
|
+
- "Keep blocks concise"
|
|
58
|
+
- "Complete lines only, no partial"
|
|
59
|
+
|
|
60
|
+
modes:
|
|
61
|
+
plan_mode:
|
|
62
|
+
purpose: "Gather information, clarify requirements, create detailed plans"
|
|
63
|
+
tools: ["plan_mode_respond", "read_file", "search_files"]
|
|
64
|
+
actions:
|
|
65
|
+
- "Ask clarifying questions"
|
|
66
|
+
- "Create mermaid diagrams"
|
|
67
|
+
- "Brainstorm approaches"
|
|
68
|
+
- "Get user approval"
|
|
69
|
+
|
|
70
|
+
act_mode:
|
|
71
|
+
purpose: "Execute tasks, use all tools, complete user requests"
|
|
72
|
+
tools: "all except plan_mode_respond"
|
|
73
|
+
actions:
|
|
74
|
+
- "Make changes"
|
|
75
|
+
- "Run commands"
|
|
76
|
+
- "Complete tasks"
|
|
77
|
+
- "Present results"
|
|
78
|
+
|
|
79
|
+
code_style:
|
|
80
|
+
language: "TypeScript"
|
|
81
|
+
mode: "strict"
|
|
82
|
+
|
|
83
|
+
always:
|
|
84
|
+
- "Use async/await over Promise chains"
|
|
85
|
+
- "Handle errors with try-catch"
|
|
86
|
+
- "Add all necessary imports"
|
|
87
|
+
- "Follow existing conventions"
|
|
88
|
+
- "Functional components for React"
|
|
89
|
+
|
|
90
|
+
never:
|
|
91
|
+
- "Use any types"
|
|
92
|
+
- "Leave console.log in production"
|
|
93
|
+
- "Use inline styles"
|
|
94
|
+
- "Use magic numbers"
|
|
95
|
+
- "Direct state mutation"
|
|
96
|
+
- "var declarations"
|
|
97
|
+
|
|
98
|
+
naming_conventions:
|
|
99
|
+
components: "PascalCase"
|
|
100
|
+
functions: "camelCase"
|
|
101
|
+
constants: "SCREAMING_SNAKE_CASE"
|
|
102
|
+
files: "kebab-case"
|
|
103
|
+
types: "PascalCase"
|
|
104
|
+
hooks: "camelCase with use prefix"
|
|
105
|
+
|
|
106
|
+
communication:
|
|
107
|
+
style: "Direct and technical"
|
|
108
|
+
format: "Markdown with proper code blocks"
|
|
109
|
+
|
|
110
|
+
forbidden_phrases:
|
|
111
|
+
- "Great"
|
|
112
|
+
- "Certainly"
|
|
113
|
+
- "Okay"
|
|
114
|
+
- "Sure"
|
|
115
|
+
- "Sounds good"
|
|
116
|
+
|
|
117
|
+
correct_examples:
|
|
118
|
+
bad: "Great, I've updated the CSS"
|
|
119
|
+
good: "Updated the CSS with dark mode styles"
|
|
120
|
+
|
|
121
|
+
mcp_integration:
|
|
122
|
+
enabled: true
|
|
123
|
+
operations: "sequential"
|
|
124
|
+
wait_for_confirmation: true
|
|
125
|
+
|
|
126
|
+
usage:
|
|
127
|
+
- "One MCP operation at a time"
|
|
128
|
+
- "Wait for confirmation before proceeding"
|
|
129
|
+
- "Use server_name and tool_name correctly"
|
|
130
|
+
|
|
131
|
+
task_handoff:
|
|
132
|
+
when:
|
|
133
|
+
- "Current task complete"
|
|
134
|
+
- "Context switch needed"
|
|
135
|
+
- "User may want fresh start"
|
|
136
|
+
|
|
137
|
+
content:
|
|
138
|
+
- "What was accomplished"
|
|
139
|
+
- "Specific file names"
|
|
140
|
+
- "Next steps and focus"
|
|
141
|
+
- "Critical information"
|
|
142
|
+
- "Relation to overall workflow"
|
|
143
|
+
|
|
144
|
+
security:
|
|
145
|
+
never:
|
|
146
|
+
- "Expose API keys in code"
|
|
147
|
+
- "Commit secrets to repository"
|
|
148
|
+
- "Log sensitive information"
|
|
149
|
+
- "Skip input validation"
|
|
150
|
+
- "Use eval() or similar"
|
|
151
|
+
|
|
152
|
+
always:
|
|
153
|
+
- "Validate user input"
|
|
154
|
+
- "Use parameterized queries"
|
|
155
|
+
- "Sanitize HTML output"
|
|
156
|
+
- "Implement proper authentication"
|
|
157
|
+
|
|
158
|
+
preferred_libraries:
|
|
159
|
+
state_management: ["Zustand", "React Query"]
|
|
160
|
+
forms: ["React Hook Form", "Zod"]
|
|
161
|
+
styling: "Tailwind CSS"
|
|
162
|
+
testing: ["Vitest", "Playwright", "Testing Library"]
|
|
163
|
+
http: ["Axios", "fetch"]
|
|
164
|
+
|
|
165
|
+
debugging:
|
|
166
|
+
strategy:
|
|
167
|
+
- "Understand the error fully"
|
|
168
|
+
- "Read relevant context"
|
|
169
|
+
- "Identify root cause (not symptoms)"
|
|
170
|
+
- "Plan a fix"
|
|
171
|
+
- "Implement and verify"
|
|
172
|
+
- "Don't guess at solutions"
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
## Usage
|
|
176
|
+
|
|
177
|
+
Copy the content between the triple backticks to `.clinerules` in your project root.
|
|
178
|
+
Cline will follow these rules when generating and modifying code.
|
|
179
|
+
|
|
180
|
+
## Key Cline Features
|
|
181
|
+
|
|
182
|
+
### SEARCH/REPLACE Format
|
|
183
|
+
```
|
|
184
|
+
<<<<<<< SEARCH
|
|
185
|
+
[exact content to find]
|
|
186
|
+
=======
|
|
187
|
+
[new content to replace with]
|
|
188
|
+
>>>>>>> REPLACE
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### Plan Mode vs Act Mode
|
|
192
|
+
- **Plan Mode**: Design and discuss before implementing
|
|
193
|
+
- **Act Mode**: Execute with full tool access
|
|
194
|
+
|
|
195
|
+
### MCP Server Integration
|
|
196
|
+
- Use `use_mcp_tool` for external tools
|
|
197
|
+
- Use `access_mcp_resource` for data sources
|
|
198
|
+
- One operation at a time, wait for confirmation
|
|
199
|
+
|
|
200
|
+
### Task Handoff
|
|
201
|
+
Create comprehensive context for new tasks:
|
|
202
|
+
- Like a handoff file for a new developer
|
|
203
|
+
- Include all necessary context to continue
|
|
204
|
+
|
|
205
|
+
**Source**: Cline System Prompt + Industry Best Practices
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# OpenAI Codex Configuration
|
|
2
|
+
|
|
3
|
+
> Configuration for OpenAI Codex CLI agent
|
|
4
|
+
|
|
5
|
+
## File: codex.md or CODEX.md
|
|
6
|
+
|
|
7
|
+
Place this file in your project root to configure Codex behavior.
|
|
8
|
+
|
|
9
|
+
```markdown
|
|
10
|
+
# Codex Project Instructions
|
|
11
|
+
|
|
12
|
+
## Project Overview
|
|
13
|
+
- **Name**: [Your Project Name]
|
|
14
|
+
- **Type**: [Web App / API / Library]
|
|
15
|
+
- **Stack**: TypeScript, React, Node.js
|
|
16
|
+
|
|
17
|
+
## Code Generation Rules
|
|
18
|
+
|
|
19
|
+
### Style Guidelines
|
|
20
|
+
1. Use TypeScript with strict mode
|
|
21
|
+
2. Prefer functional programming patterns
|
|
22
|
+
3. Use async/await for asynchronous code
|
|
23
|
+
4. Handle all errors explicitly
|
|
24
|
+
|
|
25
|
+
### Project Structure
|
|
26
|
+
\`\`\`
|
|
27
|
+
src/
|
|
28
|
+
├── components/ # React components
|
|
29
|
+
├── hooks/ # Custom hooks
|
|
30
|
+
├── lib/ # Utilities and helpers
|
|
31
|
+
├── types/ # TypeScript types
|
|
32
|
+
├── api/ # API routes
|
|
33
|
+
└── tests/ # Test files
|
|
34
|
+
\`\`\`
|
|
35
|
+
|
|
36
|
+
### Naming Conventions
|
|
37
|
+
- **Components**: PascalCase (UserProfile.tsx)
|
|
38
|
+
- **Functions**: camelCase (getUserData)
|
|
39
|
+
- **Constants**: SCREAMING_SNAKE_CASE (API_BASE_URL)
|
|
40
|
+
- **Files**: kebab-case (user-profile.tsx)
|
|
41
|
+
|
|
42
|
+
### Best Practices
|
|
43
|
+
- No `any` types - use proper typing
|
|
44
|
+
- Extract reusable logic into custom hooks
|
|
45
|
+
- Keep functions under 50 lines
|
|
46
|
+
- Write unit tests for business logic
|
|
47
|
+
|
|
48
|
+
### Forbidden Patterns
|
|
49
|
+
- console.log in production code
|
|
50
|
+
- Inline styles
|
|
51
|
+
- Magic numbers
|
|
52
|
+
- Deeply nested callbacks
|
|
53
|
+
- Mutation of state directly
|
|
54
|
+
|
|
55
|
+
### Preferred Libraries
|
|
56
|
+
| Purpose | Library |
|
|
57
|
+
|---------|---------|
|
|
58
|
+
| State | Zustand, React Query |
|
|
59
|
+
| Forms | React Hook Form + Zod |
|
|
60
|
+
| Styling | Tailwind CSS |
|
|
61
|
+
| Testing | Jest, Vitest |
|
|
62
|
+
| HTTP | Axios, fetch |
|
|
63
|
+
|
|
64
|
+
## Safety Rules
|
|
65
|
+
- Never expose API keys in code
|
|
66
|
+
- Validate all user input
|
|
67
|
+
- Use parameterized queries for DB
|
|
68
|
+
- Sanitize output to prevent XSS
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Usage
|
|
72
|
+
|
|
73
|
+
Place this file as `codex.md` or `CODEX.md` in your project root.
|
|
74
|
+
Codex will read and follow these instructions.
|