@el-j/magic-helix-core 4.0.0-beta.2 → 4.0.0-beta.3
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/dist/index-B88j4AyE.js +13 -0
- package/dist/index-B88j4AyE.js.map +1 -0
- package/dist/index-CY-pQbuu.cjs +2 -0
- package/dist/index-CY-pQbuu.cjs.map +1 -0
- package/dist/index.cjs +75 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.mjs +2234 -51
- package/dist/index.mjs.map +1 -1
- package/dist/pattern-combiner.d.ts +1 -1
- package/dist/plugin-loader.d.ts +2 -1
- package/package.json +4 -4
- package/dist/BasePlugin-6wv0hYJ9.js +0 -98
- package/dist/BasePlugin-6wv0hYJ9.js.map +0 -1
- package/dist/BasePlugin-odQJAKA-.cjs +0 -2
- package/dist/BasePlugin-odQJAKA-.cjs.map +0 -1
- package/dist/builtin-plugins/base/BasePlugin.d.ts +0 -69
- package/dist/builtin-plugins/cpp/index.d.ts +0 -46
- package/dist/builtin-plugins/csharp/index.d.ts +0 -20
- package/dist/builtin-plugins/go/index.d.ts +0 -23
- package/dist/builtin-plugins/index.d.ts +0 -16
- package/dist/builtin-plugins/java/index.d.ts +0 -22
- package/dist/builtin-plugins/nodejs/index.d.ts +0 -44
- package/dist/builtin-plugins/php/index.d.ts +0 -20
- package/dist/builtin-plugins/python/index.d.ts +0 -27
- package/dist/builtin-plugins/ruby/index.d.ts +0 -20
- package/dist/builtin-plugins/rust/index.d.ts +0 -53
- package/dist/builtin-plugins/swift/index.d.ts +0 -22
- package/dist/default_templates/angular/angular-core.md +0 -19
- package/dist/default_templates/architecture/codeowners.md +0 -123
- package/dist/default_templates/architecture/monorepo.md +0 -146
- package/dist/default_templates/architecture/nx.md +0 -122
- package/dist/default_templates/architecture/turborepo.md +0 -114
- package/dist/default_templates/ci/github-actions.md +0 -268
- package/dist/default_templates/ci/gitlab-ci.md +0 -330
- package/dist/default_templates/containers/docker-multistage.md +0 -120
- package/dist/default_templates/containers/kubernetes-deploy.md +0 -210
- package/dist/default_templates/devops/docker-compose.md +0 -111
- package/dist/default_templates/devops/docker-dockerfile.md +0 -94
- package/dist/default_templates/devops/github-actions.md +0 -160
- package/dist/default_templates/devops/gitlab-ci.md +0 -210
- package/dist/default_templates/dotnet/framework-aspnetcore.md +0 -205
- package/dist/default_templates/dotnet/framework-blazor.md +0 -271
- package/dist/default_templates/dotnet/lang-csharp.md +0 -162
- package/dist/default_templates/generic/lang-typescript.md +0 -57
- package/dist/default_templates/generic/state-redux.md +0 -21
- package/dist/default_templates/generic/state-rxjs.md +0 -6
- package/dist/default_templates/generic/style-mui.md +0 -23
- package/dist/default_templates/generic/style-tailwind.md +0 -76
- package/dist/default_templates/generic/test-cypress.md +0 -21
- package/dist/default_templates/generic/test-jest.md +0 -20
- package/dist/default_templates/generic/test-playwright.md +0 -21
- package/dist/default_templates/generic/test-vitest.md +0 -131
- package/dist/default_templates/go/lang-go.md +0 -571
- package/dist/default_templates/java/build-gradle.md +0 -102
- package/dist/default_templates/java/build-maven.md +0 -86
- package/dist/default_templates/java/framework-spring-boot.md +0 -179
- package/dist/default_templates/java/lang-java.md +0 -78
- package/dist/default_templates/java/lang-kotlin.md +0 -88
- package/dist/default_templates/meta/magic-helix-meta.md +0 -213
- package/dist/default_templates/meta/meta-debug.md +0 -459
- package/dist/default_templates/meta/meta-implement.md +0 -450
- package/dist/default_templates/meta/meta-roadmap.md +0 -265
- package/dist/default_templates/nestjs/nestjs-core.md +0 -7
- package/dist/default_templates/patterns/architecture/clean-architecture.md +0 -469
- package/dist/default_templates/patterns/architecture/dependency-injection.md +0 -517
- package/dist/default_templates/patterns/architecture/domain-driven-design.md +0 -621
- package/dist/default_templates/patterns/architecture/layered-architecture.md +0 -382
- package/dist/default_templates/patterns/architecture/repository-pattern.md +0 -408
- package/dist/default_templates/patterns/domain-expertise/nextjs-rules.md +0 -115
- package/dist/default_templates/patterns/domain-expertise/react-patterns.md +0 -181
- package/dist/default_templates/patterns/domain-expertise/server-components.md +0 -212
- package/dist/default_templates/patterns/domain-expertise/shadcn-ui.md +0 -52
- package/dist/default_templates/patterns/domain-expertise/tailwind-patterns.md +0 -52
- package/dist/default_templates/patterns/environment/container-awareness.md +0 -17
- package/dist/default_templates/patterns/environment/ide-features.md +0 -17
- package/dist/default_templates/patterns/environment/os-commands.md +0 -17
- package/dist/default_templates/patterns/organization/heading-hierarchy.md +0 -103
- package/dist/default_templates/patterns/organization/sequential-workflows.md +0 -102
- package/dist/default_templates/patterns/organization/xml-rule-groups.md +0 -64
- package/dist/default_templates/patterns/reasoning/agent-loop.md +0 -151
- package/dist/default_templates/patterns/reasoning/confirmation-gates.md +0 -141
- package/dist/default_templates/patterns/reasoning/dependency-analysis.md +0 -132
- package/dist/default_templates/patterns/reasoning/one-tool-per-iteration.md +0 -152
- package/dist/default_templates/patterns/reasoning/preview-before-action.md +0 -194
- package/dist/default_templates/patterns/reasoning/reflection-checkpoints.md +0 -166
- package/dist/default_templates/patterns/reasoning/result-verification.md +0 -157
- package/dist/default_templates/patterns/reasoning/subtask-breakdown.md +0 -131
- package/dist/default_templates/patterns/reasoning/thinking-tags.md +0 -100
- package/dist/default_templates/patterns/role-definition/capability-declarations.md +0 -72
- package/dist/default_templates/patterns/role-definition/expert-identity.md +0 -45
- package/dist/default_templates/patterns/role-definition/scope-boundaries.md +0 -61
- package/dist/default_templates/patterns/safety/code-safety-rules.md +0 -17
- package/dist/default_templates/patterns/safety/credential-handling.md +0 -17
- package/dist/default_templates/patterns/safety/destructive-warnings.md +0 -17
- package/dist/default_templates/patterns/safety/refusal-messages.md +0 -17
- package/dist/default_templates/patterns/tone/adaptive-tone.md +0 -17
- package/dist/default_templates/patterns/tone/concise-communication.md +0 -17
- package/dist/default_templates/patterns/tone/forbidden-phrases.md +0 -17
- package/dist/default_templates/patterns/tool-guidelines/function-schemas.md +0 -143
- package/dist/default_templates/patterns/tool-guidelines/parameter-examples.md +0 -137
- package/dist/default_templates/patterns/tool-guidelines/usage-policies.md +0 -105
- package/dist/default_templates/php/framework-laravel.md +0 -112
- package/dist/default_templates/php/lang-php.md +0 -94
- package/dist/default_templates/python/lang-python.md +0 -508
- package/dist/default_templates/react/react-core.md +0 -677
- package/dist/default_templates/react/react-zustand.md +0 -7
- package/dist/default_templates/ruby/framework-rails.md +0 -309
- package/dist/default_templates/ruby/framework-sinatra.md +0 -227
- package/dist/default_templates/ruby/lang-ruby.md +0 -216
- package/dist/default_templates/rust/lang-rust.md +0 -89
- package/dist/default_templates/swift/framework-vapor.md +0 -352
- package/dist/default_templates/swift/lang-swift.md +0 -291
- package/dist/default_templates/vue/style-primevue.md +0 -6
- package/dist/default_templates/vue/style-quasar.md +0 -22
- package/dist/default_templates/vue/vue-core.md +0 -108
- package/dist/default_templates/vue/vue-pinia.md +0 -5
- package/dist/index-0GK4RlUx.js +0 -1748
- package/dist/index-0GK4RlUx.js.map +0 -1
- package/dist/index-AkVwRl-r.js +0 -92
- package/dist/index-AkVwRl-r.js.map +0 -1
- package/dist/index-B6BeG1yT.cjs +0 -68
- package/dist/index-B6BeG1yT.cjs.map +0 -1
- package/dist/index-B8pyjKdF.js +0 -94
- package/dist/index-B8pyjKdF.js.map +0 -1
- package/dist/index-BQ6v041y.js +0 -13
- package/dist/index-BQ6v041y.js.map +0 -1
- package/dist/index-Baxb1vI_.js +0 -210
- package/dist/index-Baxb1vI_.js.map +0 -1
- package/dist/index-Bg8DD8ku.js +0 -216
- package/dist/index-Bg8DD8ku.js.map +0 -1
- package/dist/index-BqTqxCpG.cjs +0 -89
- package/dist/index-BqTqxCpG.cjs.map +0 -1
- package/dist/index-Bv4Q1Pr7.cjs +0 -33
- package/dist/index-Bv4Q1Pr7.cjs.map +0 -1
- package/dist/index-CN8J45Nc.cjs +0 -24
- package/dist/index-CN8J45Nc.cjs.map +0 -1
- package/dist/index-CPbv2Od1.js +0 -62
- package/dist/index-CPbv2Od1.js.map +0 -1
- package/dist/index-Cf-MC6Al.js +0 -63
- package/dist/index-Cf-MC6Al.js.map +0 -1
- package/dist/index-DDPXXXDy.cjs +0 -19
- package/dist/index-DDPXXXDy.cjs.map +0 -1
- package/dist/index-DO30AzDe.cjs +0 -19
- package/dist/index-DO30AzDe.cjs.map +0 -1
- package/dist/index-DkvW5yBY.js +0 -2249
- package/dist/index-DkvW5yBY.js.map +0 -1
- package/dist/index-Dn1ehjIj.cjs +0 -80
- package/dist/index-Dn1ehjIj.cjs.map +0 -1
- package/dist/index-DqHvgoXJ.cjs +0 -19
- package/dist/index-DqHvgoXJ.cjs.map +0 -1
- package/dist/index-K39pdw94.cjs +0 -31
- package/dist/index-K39pdw94.cjs.map +0 -1
- package/dist/index-OT2XAJkc.js +0 -117
- package/dist/index-OT2XAJkc.js.map +0 -1
- package/dist/index-TPAX4XKg.cjs +0 -30
- package/dist/index-TPAX4XKg.cjs.map +0 -1
- package/dist/index-WmVSB57y.js +0 -107
- package/dist/index-WmVSB57y.js.map +0 -1
- package/dist/index-mYXvc3Fs.js +0 -68
- package/dist/index-mYXvc3Fs.js.map +0 -1
- package/dist/index-nioXOg4m.cjs +0 -76
- package/dist/index-nioXOg4m.cjs.map +0 -1
- package/dist/index-okhY3fWD.cjs +0 -2
- package/dist/index-okhY3fWD.cjs.map +0 -1
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
# Thinking Tags Pattern
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
Encourage explicit pre-action analysis and planning. From **v0** pattern.
|
|
5
|
-
|
|
6
|
-
## Template
|
|
7
|
-
|
|
8
|
-
```markdown
|
|
9
|
-
Before executing any action, think through:
|
|
10
|
-
|
|
11
|
-
<thinking>
|
|
12
|
-
1. **Understand**: {WHAT_USER_WANTS}
|
|
13
|
-
2. **Analyze**: {CURRENT_STATE_AND_CONSTRAINTS}
|
|
14
|
-
3. **Plan**: {APPROACH_TO_TAKE}
|
|
15
|
-
4. **Anticipate**: {POTENTIAL_ISSUES}
|
|
16
|
-
</thinking>
|
|
17
|
-
|
|
18
|
-
Then proceed with execution.
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Examples
|
|
22
|
-
|
|
23
|
-
### v0 (Component Generation)
|
|
24
|
-
```markdown
|
|
25
|
-
Before generating code, think through the requirements:
|
|
26
|
-
|
|
27
|
-
<thinking>
|
|
28
|
-
1. **Understand**: What component is needed?
|
|
29
|
-
- Is this a new component or modification?
|
|
30
|
-
- What props/state does it need?
|
|
31
|
-
- What's the visual hierarchy?
|
|
32
|
-
|
|
33
|
-
2. **Analyze**: What are the constraints?
|
|
34
|
-
- Framework: Next.js App Router or Pages?
|
|
35
|
-
- Styling: Tailwind, CSS modules, or styled-components?
|
|
36
|
-
- Dependencies: What libraries are available?
|
|
37
|
-
|
|
38
|
-
3. **Plan**: What's the implementation approach?
|
|
39
|
-
- Component structure (parent/children)
|
|
40
|
-
- Data flow (props down, events up)
|
|
41
|
-
- File organization (co-located vs separate)
|
|
42
|
-
|
|
43
|
-
4. **Anticipate**: What could go wrong?
|
|
44
|
-
- Missing types (add proper TypeScript interfaces)
|
|
45
|
-
- Accessibility issues (add ARIA labels)
|
|
46
|
-
- Responsive design (include breakpoints)
|
|
47
|
-
</thinking>
|
|
48
|
-
|
|
49
|
-
Then generate the component code.
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
### Manus (Tool Selection)
|
|
53
|
-
```markdown
|
|
54
|
-
Before calling a tool, analyze the situation:
|
|
55
|
-
|
|
56
|
-
<thinking>
|
|
57
|
-
1. **Understand**: What information do I need?
|
|
58
|
-
- What's the user's end goal?
|
|
59
|
-
- What data is missing?
|
|
60
|
-
- What assumptions am I making?
|
|
61
|
-
|
|
62
|
-
2. **Analyze**: What tools are available?
|
|
63
|
-
- Which tool provides the needed information?
|
|
64
|
-
- Are there dependencies between tools?
|
|
65
|
-
- Can I gather everything in one call?
|
|
66
|
-
|
|
67
|
-
3. **Plan**: What's the optimal tool sequence?
|
|
68
|
-
- Start with broad context (file search)
|
|
69
|
-
- Then narrow down (read specific files)
|
|
70
|
-
- Validate with targeted checks (grep for patterns)
|
|
71
|
-
|
|
72
|
-
4. **Anticipate**: What if the tool fails?
|
|
73
|
-
- File doesn't exist → search for similar names
|
|
74
|
-
- Permission denied → check alternate paths
|
|
75
|
-
- Timeout → break into smaller operations
|
|
76
|
-
</thinking>
|
|
77
|
-
|
|
78
|
-
Then proceed with tool call.
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
## Variables
|
|
82
|
-
- `{WHAT_USER_WANTS}`: Parsed intent from user message
|
|
83
|
-
- `{CURRENT_STATE_AND_CONSTRAINTS}`: Known facts and limitations
|
|
84
|
-
- `{APPROACH_TO_TAKE}`: High-level strategy
|
|
85
|
-
- `{POTENTIAL_ISSUES}`: Risk assessment
|
|
86
|
-
|
|
87
|
-
## Best Practices
|
|
88
|
-
1. Use `<thinking>` tags to separate planning from execution
|
|
89
|
-
2. Keep each section concise (2-4 bullet points)
|
|
90
|
-
3. Ask questions to surface uncertainties
|
|
91
|
-
4. Reference specific context (files, variables, constraints)
|
|
92
|
-
5. State assumptions explicitly
|
|
93
|
-
6. Consider failure modes and fallbacks
|
|
94
|
-
7. Benefits: Reduces errors, improves reasoning transparency, enables self-correction
|
|
95
|
-
|
|
96
|
-
## Implementation Notes
|
|
97
|
-
- Some models (Claude, GPT-4) benefit from explicit thinking sections
|
|
98
|
-
- Can be hidden from user output (system-level reasoning)
|
|
99
|
-
- Useful for complex tasks (code generation, debugging, architecture decisions)
|
|
100
|
-
- Can be skipped for simple operations (basic calculations, lookups)
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
# Capability Declarations Pattern
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
Enumerate specific tasks the AI can perform with concrete examples. From **ChatGPT 4o** and **Bolt.new** patterns.
|
|
5
|
-
|
|
6
|
-
## Template
|
|
7
|
-
|
|
8
|
-
```
|
|
9
|
-
## Core Capabilities
|
|
10
|
-
|
|
11
|
-
### [CAPABILITY_CATEGORY_1]
|
|
12
|
-
I can [ACTION_VERB] [OBJECT] by [METHOD].
|
|
13
|
-
Example: "[CONCRETE_EXAMPLE]"
|
|
14
|
-
|
|
15
|
-
### [CAPABILITY_CATEGORY_2]
|
|
16
|
-
I can [ACTION_VERB] [OBJECT] by [METHOD].
|
|
17
|
-
Example: "[CONCRETE_EXAMPLE]"
|
|
18
|
-
|
|
19
|
-
### [CAPABILITY_CATEGORY_3]
|
|
20
|
-
I can [ACTION_VERB] [OBJECT] by [METHOD].
|
|
21
|
-
Example: "[CONCRETE_EXAMPLE]"
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## Examples
|
|
25
|
-
|
|
26
|
-
### ChatGPT 4o (Multimodal Capabilities)
|
|
27
|
-
```
|
|
28
|
-
## Core Capabilities
|
|
29
|
-
|
|
30
|
-
### Image Generation
|
|
31
|
-
I can create images using DALL-E 3 by translating natural language descriptions into detailed visual prompts.
|
|
32
|
-
Example: "Create a sunset over a cyberpunk city with neon reflections"
|
|
33
|
-
|
|
34
|
-
### Code Analysis
|
|
35
|
-
I can review and explain code across 50+ languages by parsing structure, identifying patterns, and suggesting improvements.
|
|
36
|
-
Example: "Analyze this React component for performance bottlenecks"
|
|
37
|
-
|
|
38
|
-
### Data Processing
|
|
39
|
-
I can analyze CSV/JSON data by computing statistics, generating visualizations, and identifying trends.
|
|
40
|
-
Example: "Summarize sales trends from this quarterly report"
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
### Bolt.new (Full-Stack Development)
|
|
44
|
-
```
|
|
45
|
-
## Core Capabilities
|
|
46
|
-
|
|
47
|
-
### Application Scaffolding
|
|
48
|
-
I can generate complete full-stack applications by analyzing requirements and selecting appropriate frameworks.
|
|
49
|
-
Example: "Create a Next.js blog with MDX support and Tailwind CSS"
|
|
50
|
-
|
|
51
|
-
### Live Preview
|
|
52
|
-
I can run code in a WebContainer by compiling and serving apps in your browser with hot reload.
|
|
53
|
-
Example: "Preview this React app with instant updates as you edit"
|
|
54
|
-
|
|
55
|
-
### Dependency Management
|
|
56
|
-
I can install packages and configure build tools by detecting framework requirements and resolving version conflicts.
|
|
57
|
-
Example: "Add Prisma ORM with PostgreSQL adapter and generate migrations"
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
## Variables
|
|
61
|
-
- `{CAPABILITY_CATEGORY_X}`: Functional domain (e.g., "Code Generation", "Debugging")
|
|
62
|
-
- `{ACTION_VERB}`: What you do (e.g., "generate", "analyze", "refactor")
|
|
63
|
-
- `{OBJECT}`: What you operate on (e.g., "React components", "SQL queries")
|
|
64
|
-
- `{METHOD}`: How you do it (e.g., "using AST analysis", "by pattern matching")
|
|
65
|
-
- `{CONCRETE_EXAMPLE}`: Real user request demonstrating the capability
|
|
66
|
-
|
|
67
|
-
## Best Practices
|
|
68
|
-
1. Use action-oriented language ("I can..." not "I might be able to...")
|
|
69
|
-
2. Include concrete examples users can copy/paste
|
|
70
|
-
3. Specify technical methods (not just outcomes)
|
|
71
|
-
4. Group related capabilities under clear categories
|
|
72
|
-
5. Mention limitations within each capability (e.g., "up to 10MB files")
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# Expert Identity Pattern
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
Establish the AI agent's expertise domain, capabilities, and authority. From **v0** and **Claude Sonnet 3.7** patterns.
|
|
5
|
-
|
|
6
|
-
## Template
|
|
7
|
-
|
|
8
|
-
```
|
|
9
|
-
You are an expert [DOMAIN] specialist with deep knowledge in [SPECIFIC_AREAS].
|
|
10
|
-
Your expertise includes:
|
|
11
|
-
- [SKILL_1]
|
|
12
|
-
- [SKILL_2]
|
|
13
|
-
- [SKILL_3]
|
|
14
|
-
|
|
15
|
-
You excel at [PRIMARY_TASK] and have mastery of [TOOLS_OR_FRAMEWORKS].
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## Examples
|
|
19
|
-
|
|
20
|
-
### v0 (Next.js/React Expert)
|
|
21
|
-
```
|
|
22
|
-
You are v0, an AI assistant created by Vercel to be an expert web developer.
|
|
23
|
-
You excel at writing React (in TSX), HTML, CSS, and Tailwind.
|
|
24
|
-
You have deep knowledge of Next.js App Router, Server Components, and modern web development best practices.
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
### Claude (Problem-Solving Expert)
|
|
28
|
-
```
|
|
29
|
-
You are Claude, an AI assistant created by Anthropic to be helpful, harmless, and honest.
|
|
30
|
-
You excel at thoughtful, nuanced analysis and clear communication.
|
|
31
|
-
You have expertise across many domains while maintaining intellectual humility.
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## Variables
|
|
35
|
-
- `{DOMAIN}`: Primary expertise area (e.g., "web development", "data science")
|
|
36
|
-
- `{SPECIFIC_AREAS}`: Comma-separated specializations
|
|
37
|
-
- `{SKILL_X}`: Concrete capabilities
|
|
38
|
-
- `{PRIMARY_TASK}`: Core function (e.g., "generating production-ready code")
|
|
39
|
-
- `{TOOLS_OR_FRAMEWORKS}`: Technology stack
|
|
40
|
-
|
|
41
|
-
## Best Practices
|
|
42
|
-
1. Be specific about technical domains
|
|
43
|
-
2. List concrete capabilities, not vague claims
|
|
44
|
-
3. Mention version-specific knowledge (e.g., "Next.js 14 App Router")
|
|
45
|
-
4. Align expertise with actual training data
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
# Scope Boundaries Pattern
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
Define what the AI agent will and won't do. From **same.new** and **Cline** patterns.
|
|
5
|
-
|
|
6
|
-
## Template
|
|
7
|
-
|
|
8
|
-
```
|
|
9
|
-
## What I Can Do
|
|
10
|
-
- [CAPABILITY_1]
|
|
11
|
-
- [CAPABILITY_2]
|
|
12
|
-
- [CAPABILITY_3]
|
|
13
|
-
|
|
14
|
-
## What I Won't Do
|
|
15
|
-
- [LIMITATION_1]
|
|
16
|
-
- [LIMITATION_2]
|
|
17
|
-
- [LIMITATION_3]
|
|
18
|
-
|
|
19
|
-
## When to Ask for Help
|
|
20
|
-
If you need [OUT_OF_SCOPE_TASK], I will [FALLBACK_BEHAVIOR].
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Examples
|
|
24
|
-
|
|
25
|
-
### same.new (Code Execution Boundary)
|
|
26
|
-
```
|
|
27
|
-
## What I Can Do
|
|
28
|
-
- Write, preview, and modify code in real-time
|
|
29
|
-
- Install npm packages and configure build tools
|
|
30
|
-
- Generate complete application structures
|
|
31
|
-
|
|
32
|
-
## What I Won't Do
|
|
33
|
-
- Execute arbitrary shell commands without confirmation
|
|
34
|
-
- Make destructive filesystem changes without preview
|
|
35
|
-
- Access external APIs without explicit user consent
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### Cline (Autonomous vs Manual)
|
|
39
|
-
```
|
|
40
|
-
## What I Can Do
|
|
41
|
-
- Read and edit files directly
|
|
42
|
-
- Run terminal commands with your approval
|
|
43
|
-
- Search and analyze your codebase
|
|
44
|
-
|
|
45
|
-
## What I Won't Do
|
|
46
|
-
- Make changes without showing you a preview first
|
|
47
|
-
- Run commands that require sudo without explicit confirmation
|
|
48
|
-
- Access files outside your project directory
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
## Variables
|
|
52
|
-
- `{CAPABILITY_X}`: Permitted actions
|
|
53
|
-
- `{LIMITATION_X}`: Prohibited actions
|
|
54
|
-
- `{OUT_OF_SCOPE_TASK}`: Example boundary case
|
|
55
|
-
- `{FALLBACK_BEHAVIOR}`: How to handle out-of-scope requests
|
|
56
|
-
|
|
57
|
-
## Best Practices
|
|
58
|
-
1. Be explicit about destructive operations (delete, overwrite)
|
|
59
|
-
2. Clarify data access boundaries (local vs remote)
|
|
60
|
-
3. State confirmation requirements for risky actions
|
|
61
|
-
4. Explain what happens when limits are reached
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# $(basename "$file" .md | tr '-' ' ' | sed 's/\b\(.\)/\u\1/g') Pattern
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
[Pattern description from integration document]
|
|
5
|
-
|
|
6
|
-
## Template
|
|
7
|
-
```markdown
|
|
8
|
-
[Key structure and variables]
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Examples
|
|
12
|
-
[Concrete examples from v0, Claude, ChatGPT, Cline, etc.]
|
|
13
|
-
|
|
14
|
-
## Best Practices
|
|
15
|
-
1. [Guideline 1]
|
|
16
|
-
2. [Guideline 2]
|
|
17
|
-
3. Benefits: [Key advantages]
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# $(basename "$file" .md | tr '-' ' ' | sed 's/\b\(.\)/\u\1/g') Pattern
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
[Pattern description from integration document]
|
|
5
|
-
|
|
6
|
-
## Template
|
|
7
|
-
```markdown
|
|
8
|
-
[Key structure and variables]
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Examples
|
|
12
|
-
[Concrete examples from v0, Claude, ChatGPT, Cline, etc.]
|
|
13
|
-
|
|
14
|
-
## Best Practices
|
|
15
|
-
1. [Guideline 1]
|
|
16
|
-
2. [Guideline 2]
|
|
17
|
-
3. Benefits: [Key advantages]
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# $(basename "$file" .md | tr '-' ' ' | sed 's/\b\(.\)/\u\1/g') Pattern
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
[Pattern description from integration document]
|
|
5
|
-
|
|
6
|
-
## Template
|
|
7
|
-
```markdown
|
|
8
|
-
[Key structure and variables]
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Examples
|
|
12
|
-
[Concrete examples from v0, Claude, ChatGPT, Cline, etc.]
|
|
13
|
-
|
|
14
|
-
## Best Practices
|
|
15
|
-
1. [Guideline 1]
|
|
16
|
-
2. [Guideline 2]
|
|
17
|
-
3. Benefits: [Key advantages]
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# $(basename "$file" .md | tr '-' ' ' | sed 's/\b\(.\)/\u\1/g') Pattern
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
[Pattern description from integration document]
|
|
5
|
-
|
|
6
|
-
## Template
|
|
7
|
-
```markdown
|
|
8
|
-
[Key structure and variables]
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Examples
|
|
12
|
-
[Concrete examples from v0, Claude, ChatGPT, Cline, etc.]
|
|
13
|
-
|
|
14
|
-
## Best Practices
|
|
15
|
-
1. [Guideline 1]
|
|
16
|
-
2. [Guideline 2]
|
|
17
|
-
3. Benefits: [Key advantages]
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# $(basename "$file" .md | tr '-' ' ' | sed 's/\b\(.\)/\u\1/g') Pattern
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
[Pattern description from integration document]
|
|
5
|
-
|
|
6
|
-
## Template
|
|
7
|
-
```markdown
|
|
8
|
-
[Key structure and variables]
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Examples
|
|
12
|
-
[Concrete examples from v0, Claude, ChatGPT, Cline, etc.]
|
|
13
|
-
|
|
14
|
-
## Best Practices
|
|
15
|
-
1. [Guideline 1]
|
|
16
|
-
2. [Guideline 2]
|
|
17
|
-
3. Benefits: [Key advantages]
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# $(basename "$file" .md | tr '-' ' ' | sed 's/\b\(.\)/\u\1/g') Pattern
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
[Pattern description from integration document]
|
|
5
|
-
|
|
6
|
-
## Template
|
|
7
|
-
```markdown
|
|
8
|
-
[Key structure and variables]
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Examples
|
|
12
|
-
[Concrete examples from v0, Claude, ChatGPT, Cline, etc.]
|
|
13
|
-
|
|
14
|
-
## Best Practices
|
|
15
|
-
1. [Guideline 1]
|
|
16
|
-
2. [Guideline 2]
|
|
17
|
-
3. Benefits: [Key advantages]
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# $(basename "$file" .md | tr '-' ' ' | sed 's/\b\(.\)/\u\1/g') Pattern
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
[Pattern description from integration document]
|
|
5
|
-
|
|
6
|
-
## Template
|
|
7
|
-
```markdown
|
|
8
|
-
[Key structure and variables]
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Examples
|
|
12
|
-
[Concrete examples from v0, Claude, ChatGPT, Cline, etc.]
|
|
13
|
-
|
|
14
|
-
## Best Practices
|
|
15
|
-
1. [Guideline 1]
|
|
16
|
-
2. [Guideline 2]
|
|
17
|
-
3. Benefits: [Key advantages]
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
# Function Schemas Pattern
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
Document tool/function interfaces with inline JSON schemas. From **ChatGPT 4o** pattern.
|
|
5
|
-
|
|
6
|
-
## Template
|
|
7
|
-
|
|
8
|
-
```markdown
|
|
9
|
-
## {TOOL_NAME}
|
|
10
|
-
|
|
11
|
-
**Purpose**: {WHAT_IT_DOES}
|
|
12
|
-
|
|
13
|
-
**Parameters**:
|
|
14
|
-
```json
|
|
15
|
-
{
|
|
16
|
-
"parameter1": {
|
|
17
|
-
"type": "{TYPE}",
|
|
18
|
-
"description": "{DESCRIPTION}",
|
|
19
|
-
"required": {BOOLEAN}
|
|
20
|
-
},
|
|
21
|
-
"parameter2": {
|
|
22
|
-
"type": "{TYPE}",
|
|
23
|
-
"description": "{DESCRIPTION}",
|
|
24
|
-
"required": {BOOLEAN}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
**Returns**: {RETURN_TYPE} - {RETURN_DESCRIPTION}
|
|
30
|
-
|
|
31
|
-
**Example**:
|
|
32
|
-
```
|
|
33
|
-
{EXAMPLE_USAGE}
|
|
34
|
-
```
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
## Examples
|
|
38
|
-
|
|
39
|
-
### ChatGPT (DALL-E Image Generation)
|
|
40
|
-
```markdown
|
|
41
|
-
## generate_image
|
|
42
|
-
|
|
43
|
-
**Purpose**: Creates images using DALL-E 3 based on text descriptions.
|
|
44
|
-
|
|
45
|
-
**Parameters**:
|
|
46
|
-
```json
|
|
47
|
-
{
|
|
48
|
-
"prompt": {
|
|
49
|
-
"type": "string",
|
|
50
|
-
"description": "Detailed description of the image to generate. Should be specific and vivid.",
|
|
51
|
-
"required": true
|
|
52
|
-
},
|
|
53
|
-
"size": {
|
|
54
|
-
"type": "string",
|
|
55
|
-
"enum": ["1024x1024", "1792x1024", "1024x1792"],
|
|
56
|
-
"description": "Image dimensions. Use landscape for wide scenes, portrait for tall subjects.",
|
|
57
|
-
"required": false,
|
|
58
|
-
"default": "1024x1024"
|
|
59
|
-
},
|
|
60
|
-
"quality": {
|
|
61
|
-
"type": "string",
|
|
62
|
-
"enum": ["standard", "hd"],
|
|
63
|
-
"description": "Image quality level. HD provides more detail but takes longer.",
|
|
64
|
-
"required": false,
|
|
65
|
-
"default": "standard"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
**Returns**: `ImageResult` - Object containing image URL and revised prompt
|
|
71
|
-
|
|
72
|
-
**Example**:
|
|
73
|
-
```
|
|
74
|
-
generate_image({
|
|
75
|
-
prompt: "A serene Japanese garden with a koi pond, cherry blossoms, and a wooden bridge at sunset",
|
|
76
|
-
size: "1792x1024",
|
|
77
|
-
quality: "hd"
|
|
78
|
-
})
|
|
79
|
-
```
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
### Cline (File Reading)
|
|
83
|
-
```markdown
|
|
84
|
-
## read_file
|
|
85
|
-
|
|
86
|
-
**Purpose**: Reads contents of a file within specified line range.
|
|
87
|
-
|
|
88
|
-
**Parameters**:
|
|
89
|
-
```json
|
|
90
|
-
{
|
|
91
|
-
"filePath": {
|
|
92
|
-
"type": "string",
|
|
93
|
-
"description": "Absolute path to the file. Must exist in workspace.",
|
|
94
|
-
"required": true
|
|
95
|
-
},
|
|
96
|
-
"startLine": {
|
|
97
|
-
"type": "number",
|
|
98
|
-
"description": "Line number to start reading from (1-indexed).",
|
|
99
|
-
"required": true
|
|
100
|
-
},
|
|
101
|
-
"endLine": {
|
|
102
|
-
"type": "number",
|
|
103
|
-
"description": "Line number to end reading at (inclusive, 1-indexed).",
|
|
104
|
-
"required": true
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
**Returns**: `string` - File contents between startLine and endLine
|
|
110
|
-
|
|
111
|
-
**Example**:
|
|
112
|
-
```
|
|
113
|
-
read_file({
|
|
114
|
-
filePath: "/Users/me/project/src/app.ts",
|
|
115
|
-
startLine: 10,
|
|
116
|
-
endLine: 50
|
|
117
|
-
})
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
**Best Practices**:
|
|
121
|
-
- Read large ranges (20-50 lines) to minimize API calls
|
|
122
|
-
- Prefer one large read over many small reads
|
|
123
|
-
- Use parallel reads when examining multiple files
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
## Variables
|
|
127
|
-
- `{TOOL_NAME}`: Function/tool identifier
|
|
128
|
-
- `{WHAT_IT_DOES}`: Single-sentence purpose
|
|
129
|
-
- `{TYPE}`: JSON type (string, number, boolean, object, array)
|
|
130
|
-
- `{DESCRIPTION}`: Parameter explanation
|
|
131
|
-
- `{BOOLEAN}`: true/false for required field
|
|
132
|
-
- `{RETURN_TYPE}`: Return value type
|
|
133
|
-
- `{RETURN_DESCRIPTION}`: What the function returns
|
|
134
|
-
- `{EXAMPLE_USAGE}`: Concrete function call
|
|
135
|
-
|
|
136
|
-
## Best Practices
|
|
137
|
-
1. Use JSON schema format for precise typing
|
|
138
|
-
2. Include enums for restricted values
|
|
139
|
-
3. Specify default values when applicable
|
|
140
|
-
4. Add "Best Practices" section for complex tools
|
|
141
|
-
5. Show realistic examples (not placeholder values)
|
|
142
|
-
6. Document error cases and edge behavior
|
|
143
|
-
7. Benefits: Type safety, autocomplete support, clear contracts
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
# Parameter Examples Pattern
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
Provide concrete examples for tool parameters with realistic values. From **v0** and **Cline** patterns.
|
|
5
|
-
|
|
6
|
-
## Template
|
|
7
|
-
|
|
8
|
-
```markdown
|
|
9
|
-
## {TOOL_NAME} Parameter Examples
|
|
10
|
-
|
|
11
|
-
### {PARAMETER_NAME}
|
|
12
|
-
- **Type**: `{TYPE}`
|
|
13
|
-
- **Description**: {DESCRIPTION}
|
|
14
|
-
|
|
15
|
-
**Examples**:
|
|
16
|
-
```
|
|
17
|
-
✅ GOOD: {GOOD_EXAMPLE_1}
|
|
18
|
-
✅ GOOD: {GOOD_EXAMPLE_2}
|
|
19
|
-
❌ BAD: {BAD_EXAMPLE_1} (Reason: {WHY_BAD})
|
|
20
|
-
❌ BAD: {BAD_EXAMPLE_2} (Reason: {WHY_BAD})
|
|
21
|
-
```
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## Examples
|
|
25
|
-
|
|
26
|
-
### v0 (Component Generation)
|
|
27
|
-
```markdown
|
|
28
|
-
## create_component Parameter Examples
|
|
29
|
-
|
|
30
|
-
### componentName
|
|
31
|
-
- **Type**: `string`
|
|
32
|
-
- **Description**: Name of React component to generate
|
|
33
|
-
|
|
34
|
-
**Examples**:
|
|
35
|
-
```
|
|
36
|
-
✅ GOOD: "UserProfile"
|
|
37
|
-
✅ GOOD: "ProductCard"
|
|
38
|
-
✅ GOOD: "NavigationMenu"
|
|
39
|
-
❌ BAD: "userprofile" (Reason: Use PascalCase for components)
|
|
40
|
-
❌ BAD: "user-profile" (Reason: Hyphens not allowed in JSX names)
|
|
41
|
-
❌ BAD: "div" (Reason: Conflicts with HTML element)
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
### styling
|
|
45
|
-
- **Type**: `"tailwind" | "css-modules" | "styled-components"`
|
|
46
|
-
- **Description**: CSS approach to use
|
|
47
|
-
|
|
48
|
-
**Examples**:
|
|
49
|
-
```
|
|
50
|
-
✅ GOOD: "tailwind"
|
|
51
|
-
✅ GOOD: "css-modules"
|
|
52
|
-
❌ BAD: "scss" (Reason: Not in enum, use "css-modules" instead)
|
|
53
|
-
❌ BAD: null (Reason: Required parameter, must specify)
|
|
54
|
-
```
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
### Cline (File Editing)
|
|
58
|
-
```markdown
|
|
59
|
-
## replace_string_in_file Parameter Examples
|
|
60
|
-
|
|
61
|
-
### oldString
|
|
62
|
-
- **Type**: `string`
|
|
63
|
-
- **Description**: Exact literal text to replace, including 3-5 lines of context
|
|
64
|
-
|
|
65
|
-
**Examples**:
|
|
66
|
-
```
|
|
67
|
-
✅ GOOD:
|
|
68
|
-
```
|
|
69
|
-
function calculateTotal() {
|
|
70
|
-
const subtotal = items.reduce((sum, item) => sum + item.price, 0);
|
|
71
|
-
const tax = subtotal * 0.1;
|
|
72
|
-
return subtotal + tax;
|
|
73
|
-
}
|
|
74
|
-
```
|
|
75
|
-
(Includes function signature and full body for unique match)
|
|
76
|
-
|
|
77
|
-
❌ BAD:
|
|
78
|
-
```
|
|
79
|
-
const tax = subtotal * 0.1;
|
|
80
|
-
```
|
|
81
|
-
(Too generic, might match multiple locations)
|
|
82
|
-
|
|
83
|
-
❌ BAD:
|
|
84
|
-
```
|
|
85
|
-
function calculateTotal() {
|
|
86
|
-
// ...existing code...
|
|
87
|
-
return subtotal + tax;
|
|
88
|
-
}
|
|
89
|
-
```
|
|
90
|
-
(Contains placeholder comments instead of actual code)
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
### newString
|
|
94
|
-
- **Type**: `string`
|
|
95
|
-
- **Description**: Exact replacement text with same indentation
|
|
96
|
-
|
|
97
|
-
**Examples**:
|
|
98
|
-
```
|
|
99
|
-
✅ GOOD:
|
|
100
|
-
```
|
|
101
|
-
function calculateTotal() {
|
|
102
|
-
const subtotal = items.reduce((sum, item) => sum + item.price, 0);
|
|
103
|
-
const tax = subtotal * TAX_RATE; // Use constant instead of magic number
|
|
104
|
-
const discount = calculateDiscount(subtotal);
|
|
105
|
-
return subtotal + tax - discount;
|
|
106
|
-
}
|
|
107
|
-
```
|
|
108
|
-
(Preserves indentation, includes full context)
|
|
109
|
-
|
|
110
|
-
❌ BAD:
|
|
111
|
-
```
|
|
112
|
-
function calculateTotal() {
|
|
113
|
-
const tax = subtotal * TAX_RATE;
|
|
114
|
-
return subtotal + tax;
|
|
115
|
-
}
|
|
116
|
-
```
|
|
117
|
-
(Lost indentation, will cause syntax errors)
|
|
118
|
-
```
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
## Variables
|
|
122
|
-
- `{TOOL_NAME}`: Function/tool identifier
|
|
123
|
-
- `{PARAMETER_NAME}`: Specific parameter
|
|
124
|
-
- `{TYPE}`: TypeScript/JSON type
|
|
125
|
-
- `{DESCRIPTION}`: What the parameter does
|
|
126
|
-
- `{GOOD_EXAMPLE_X}`: Valid, idiomatic usage
|
|
127
|
-
- `{BAD_EXAMPLE_X}`: Invalid or non-idiomatic usage
|
|
128
|
-
- `{WHY_BAD}`: Explanation of what's wrong
|
|
129
|
-
|
|
130
|
-
## Best Practices
|
|
131
|
-
1. Show 2-3 good examples per parameter
|
|
132
|
-
2. Show 2-3 bad examples with explanations
|
|
133
|
-
3. Use realistic values (not "foo", "bar", "example")
|
|
134
|
-
4. Include edge cases (empty strings, large numbers, special chars)
|
|
135
|
-
5. Show proper formatting (indentation, quotes, escaping)
|
|
136
|
-
6. Demonstrate common mistakes users make
|
|
137
|
-
7. Benefits: Reduces trial-and-error, clarifies expectations, speeds development
|