cc-codeconductor 0.2.9 → 0.3.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 +105 -25
- package/dist/index.js +662 -291
- package/package.json +1 -1
- package/presets/agy/AGENTS.md +365 -0
- package/presets/agy/README.md +47 -0
- package/presets/agy/hooks.json +30 -0
- package/presets/agy/mcp_config.json +3 -0
- package/presets/agy/rules/commit-style.md +1 -0
- package/presets/agy/rules/graphify.md +14 -0
- package/presets/agy/scripts/post-tool.sh +25 -0
- package/presets/agy/scripts/pre-tool.sh +56 -0
- package/presets/agy/settings.json +8 -0
- package/presets/agy/skills/cc-api-contract/SKILL.md +71 -0
- package/presets/agy/skills/cc-db-migration/SKILL.md +70 -0
- package/presets/agy/skills/cc-feature/SKILL.md +115 -0
- package/presets/agy/skills/cc-fix/SKILL.md +124 -0
- package/presets/agy/skills/cc-pagespeed/SKILL.md +101 -0
- package/presets/agy/skills/cc-refactor/SKILL.md +149 -0
- package/presets/agy/skills/cc-review/SKILL.md +142 -0
- package/presets/agy/skills/cc-tdd-cycle/SKILL.md +226 -0
- package/presets/agy/skills/cc-test-plan/SKILL.md +145 -0
- package/presets/agy/skills/commit/SKILL.md +5 -0
- package/presets/agy/workflows/cc-api-contract.md +71 -0
- package/presets/agy/workflows/cc-db-migration.md +70 -0
- package/presets/agy/workflows/cc-feature.md +115 -0
- package/presets/agy/workflows/cc-fix.md +124 -0
- package/presets/agy/workflows/cc-pagespeed.md +101 -0
- package/presets/agy/workflows/cc-refactor.md +149 -0
- package/presets/agy/workflows/cc-review.md +142 -0
- package/presets/agy/workflows/cc-tdd-cycle.md +226 -0
- package/presets/agy/workflows/cc-test-plan.md +145 -0
- package/presets/agy/workflows/commit.md +1 -0
- package/presets/claude/CLAUDE.md +47 -3
- package/presets/claude/claude.json +6 -0
- package/presets/claude/commands/cc/pagespeed.md +103 -0
- package/presets/claude/settings.json +249 -2
- package/presets/claude/skills/android/SKILL.md +119 -0
- package/presets/claude/skills/conductor-setup/SKILL.md +125 -0
- package/presets/claude/skills/find-skills/SKILL.md +142 -0
- package/presets/claude/skills/laravel-specialist/SKILL.md +264 -0
- package/presets/claude/skills/laravel-specialist/references/eloquent.md +351 -0
- package/presets/claude/skills/laravel-specialist/references/livewire.md +512 -0
- package/presets/claude/skills/laravel-specialist/references/queues.md +423 -0
- package/presets/claude/skills/laravel-specialist/references/routing.md +362 -0
- package/presets/claude/skills/laravel-specialist/references/testing.md +522 -0
- package/presets/claude/skills/multi-agent-orchestration/README.md +144 -0
- package/presets/claude/skills/multi-agent-orchestration/SKILL.md +579 -0
- package/presets/claude/skills/multi-agent-orchestration/examples/framework_implementations.py +362 -0
- package/presets/claude/skills/multi-agent-orchestration/examples/orchestration_patterns.py +411 -0
- package/presets/claude/skills/multi-agent-orchestration/scripts/agent_communication.py +334 -0
- package/presets/claude/skills/multi-agent-orchestration/scripts/benchmarking.py +341 -0
- package/presets/claude/skills/multi-agent-orchestration/scripts/workflow_management.py +334 -0
- package/presets/claude/skills/pagespeed-insights/SKILL.md +443 -0
- package/presets/claude/skills/pagespeed-insights/reference.md +50 -0
- package/presets/claude/skills/pagespeed-perf/SKILL.md +279 -0
- package/presets/claude/skills/php-pro/SKILL.md +208 -0
- package/presets/claude/skills/php-pro/references/async-patterns.md +412 -0
- package/presets/claude/skills/php-pro/references/laravel-patterns.md +377 -0
- package/presets/claude/skills/php-pro/references/modern-php-features.md +323 -0
- package/presets/claude/skills/php-pro/references/symfony-patterns.md +466 -0
- package/presets/claude/skills/php-pro/references/testing-quality.md +466 -0
- package/presets/claude/skills/workflow-orchestration-patterns/SKILL.md +98 -0
- package/presets/claude/skills/workflow-orchestration-patterns/references/details.md +223 -0
- package/presets/codex/AGENTS.md +38 -14
- package/presets/codex/skills/android/SKILL.md +119 -0
- package/presets/codex/skills/conductor-setup/SKILL.md +125 -0
- package/presets/codex/skills/find-skills/SKILL.md +142 -0
- package/presets/codex/skills/laravel-specialist/SKILL.md +264 -0
- package/presets/codex/skills/laravel-specialist/references/eloquent.md +351 -0
- package/presets/codex/skills/laravel-specialist/references/livewire.md +512 -0
- package/presets/codex/skills/laravel-specialist/references/queues.md +423 -0
- package/presets/codex/skills/laravel-specialist/references/routing.md +362 -0
- package/presets/codex/skills/laravel-specialist/references/testing.md +522 -0
- package/presets/codex/skills/multi-agent-orchestration/README.md +144 -0
- package/presets/codex/skills/multi-agent-orchestration/SKILL.md +579 -0
- package/presets/codex/skills/multi-agent-orchestration/examples/framework_implementations.py +362 -0
- package/presets/codex/skills/multi-agent-orchestration/examples/orchestration_patterns.py +411 -0
- package/presets/codex/skills/multi-agent-orchestration/scripts/agent_communication.py +334 -0
- package/presets/codex/skills/multi-agent-orchestration/scripts/benchmarking.py +341 -0
- package/presets/codex/skills/multi-agent-orchestration/scripts/workflow_management.py +334 -0
- package/presets/codex/skills/pagespeed-insights/SKILL.md +443 -0
- package/presets/codex/skills/pagespeed-insights/reference.md +50 -0
- package/presets/codex/skills/pagespeed-perf/SKILL.md +279 -0
- package/presets/codex/skills/php-pro/SKILL.md +208 -0
- package/presets/codex/skills/php-pro/references/async-patterns.md +412 -0
- package/presets/codex/skills/php-pro/references/laravel-patterns.md +377 -0
- package/presets/codex/skills/php-pro/references/modern-php-features.md +323 -0
- package/presets/codex/skills/php-pro/references/symfony-patterns.md +466 -0
- package/presets/codex/skills/php-pro/references/testing-quality.md +466 -0
- package/presets/codex/skills/workflow-orchestration-patterns/SKILL.md +98 -0
- package/presets/codex/skills/workflow-orchestration-patterns/references/details.md +223 -0
- package/presets/opencode/README.md +11 -10
- package/presets/opencode/agents/orchestrator.md +121 -1
- package/presets/opencode/agents/reviewer.md +31 -0
- package/presets/opencode/commands/cc-pagespeed.md +100 -0
- package/presets/opencode/prompts/v0.3.0/architect.md +221 -0
- package/presets/opencode/prompts/v0.3.0/docs.md +189 -0
- package/presets/opencode/prompts/v0.3.0/implementer.md +162 -0
- package/presets/opencode/prompts/v0.3.0/orchestrator.md +360 -0
- package/presets/opencode/prompts/v0.3.0/repo-explorer.md +110 -0
- package/presets/opencode/prompts/v0.3.0/reviewer.md +225 -0
- package/presets/opencode/prompts/v0.3.0/task-coach.md +155 -0
- package/presets/opencode/prompts/v0.3.0/tester.md +251 -0
- package/presets/opencode/skills/android/SKILL.md +119 -0
- package/presets/opencode/skills/conductor-setup/SKILL.md +125 -0
- package/presets/opencode/skills/find-skills/SKILL.md +142 -0
- package/presets/opencode/skills/laravel-specialist/SKILL.md +264 -0
- package/presets/opencode/skills/laravel-specialist/references/eloquent.md +351 -0
- package/presets/opencode/skills/laravel-specialist/references/livewire.md +512 -0
- package/presets/opencode/skills/laravel-specialist/references/queues.md +423 -0
- package/presets/opencode/skills/laravel-specialist/references/routing.md +362 -0
- package/presets/opencode/skills/laravel-specialist/references/testing.md +522 -0
- package/presets/opencode/skills/multi-agent-orchestration/README.md +144 -0
- package/presets/opencode/skills/multi-agent-orchestration/SKILL.md +579 -0
- package/presets/opencode/skills/multi-agent-orchestration/examples/framework_implementations.py +362 -0
- package/presets/opencode/skills/multi-agent-orchestration/examples/orchestration_patterns.py +411 -0
- package/presets/opencode/skills/multi-agent-orchestration/scripts/agent_communication.py +334 -0
- package/presets/opencode/skills/multi-agent-orchestration/scripts/benchmarking.py +341 -0
- package/presets/opencode/skills/multi-agent-orchestration/scripts/workflow_management.py +334 -0
- package/presets/opencode/skills/pagespeed-insights/SKILL.md +443 -0
- package/presets/opencode/skills/pagespeed-insights/reference.md +50 -0
- package/presets/opencode/skills/pagespeed-perf/SKILL.md +279 -0
- package/presets/opencode/skills/php-pro/SKILL.md +208 -0
- package/presets/opencode/skills/php-pro/references/async-patterns.md +412 -0
- package/presets/opencode/skills/php-pro/references/laravel-patterns.md +377 -0
- package/presets/opencode/skills/php-pro/references/modern-php-features.md +323 -0
- package/presets/opencode/skills/php-pro/references/symfony-patterns.md +466 -0
- package/presets/opencode/skills/php-pro/references/testing-quality.md +466 -0
- package/presets/opencode/skills/workflow-orchestration-patterns/SKILL.md +98 -0
- package/presets/opencode/skills/workflow-orchestration-patterns/references/details.md +223 -0
- package/presets/seo-hotel/commands/cc-seo-audit.md +17 -9
- package/presets/seo-hotel/settings.json +225 -0
- package/presets/seo-hotel/skills/find-skills/SKILL.md +142 -0
- package/presets/seo-hotel/skills/pagespeed-insights/SKILL.md +443 -0
- package/presets/seo-hotel/skills/pagespeed-insights/reference.md +50 -0
- package/src/presets/manifests/agy.yml +38 -3
- package/src/presets/manifests/claude.yml +8 -2
- package/src/presets/manifests/codex.yml +3 -2
- package/src/presets/manifests/cursor.yml +3 -2
- package/src/presets/manifests/gemini.yml +3 -2
- package/src/presets/manifests/opencode.yml +7 -2
- package/src/presets/models/agy.yml +16 -0
- package/src/presets/models/opencode.yml +6 -6
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
# workflow-orchestration-patterns — detailed patterns and worked examples
|
|
2
|
+
|
|
3
|
+
## Critical Design Decision: Workflows vs Activities
|
|
4
|
+
|
|
5
|
+
**The Fundamental Rule** (Source: temporal.io/blog/workflow-engine-principles):
|
|
6
|
+
|
|
7
|
+
- **Workflows** = Orchestration logic and decision-making
|
|
8
|
+
- **Activities** = External interactions (APIs, databases, network calls)
|
|
9
|
+
|
|
10
|
+
### Workflows (Orchestration)
|
|
11
|
+
|
|
12
|
+
**Characteristics:**
|
|
13
|
+
|
|
14
|
+
- Contain business logic and coordination
|
|
15
|
+
- **MUST be deterministic** (same inputs → same outputs)
|
|
16
|
+
- **Cannot** perform direct external calls
|
|
17
|
+
- State automatically preserved across failures
|
|
18
|
+
- Can run for years despite infrastructure failures
|
|
19
|
+
|
|
20
|
+
**Example workflow tasks:**
|
|
21
|
+
|
|
22
|
+
- Decide which steps to execute
|
|
23
|
+
- Handle compensation logic
|
|
24
|
+
- Manage timeouts and retries
|
|
25
|
+
- Coordinate child workflows
|
|
26
|
+
|
|
27
|
+
### Activities (External Interactions)
|
|
28
|
+
|
|
29
|
+
**Characteristics:**
|
|
30
|
+
|
|
31
|
+
- Handle all external system interactions
|
|
32
|
+
- Can be non-deterministic (API calls, DB writes)
|
|
33
|
+
- Include built-in timeouts and retry logic
|
|
34
|
+
- **Must be idempotent** (calling N times = calling once)
|
|
35
|
+
- Short-lived (seconds to minutes typically)
|
|
36
|
+
|
|
37
|
+
**Example activity tasks:**
|
|
38
|
+
|
|
39
|
+
- Call payment gateway API
|
|
40
|
+
- Write to database
|
|
41
|
+
- Send emails or notifications
|
|
42
|
+
- Query external services
|
|
43
|
+
|
|
44
|
+
### Design Decision Framework
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
Does it touch external systems? → Activity
|
|
48
|
+
Is it orchestration/decision logic? → Workflow
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Core Workflow Patterns
|
|
52
|
+
|
|
53
|
+
### 1. Saga Pattern with Compensation
|
|
54
|
+
|
|
55
|
+
**Purpose**: Implement distributed transactions with rollback capability
|
|
56
|
+
|
|
57
|
+
**Pattern** (Source: temporal.io/blog/compensating-actions-part-of-a-complete-breakfast-with-sagas):
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
For each step:
|
|
61
|
+
1. Register compensation BEFORE executing
|
|
62
|
+
2. Execute the step (via activity)
|
|
63
|
+
3. On failure, run all compensations in reverse order (LIFO)
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
**Example: Payment Workflow**
|
|
67
|
+
|
|
68
|
+
1. Reserve inventory (compensation: release inventory)
|
|
69
|
+
2. Charge payment (compensation: refund payment)
|
|
70
|
+
3. Fulfill order (compensation: cancel fulfillment)
|
|
71
|
+
|
|
72
|
+
**Critical Requirements:**
|
|
73
|
+
|
|
74
|
+
- Compensations must be idempotent
|
|
75
|
+
- Register compensation BEFORE executing step
|
|
76
|
+
- Run compensations in reverse order
|
|
77
|
+
- Handle partial failures gracefully
|
|
78
|
+
|
|
79
|
+
### 2. Entity Workflows (Actor Model)
|
|
80
|
+
|
|
81
|
+
**Purpose**: Long-lived workflow representing single entity instance
|
|
82
|
+
|
|
83
|
+
**Pattern** (Source: docs.temporal.io/evaluate/use-cases-design-patterns):
|
|
84
|
+
|
|
85
|
+
- One workflow execution = one entity (cart, account, inventory item)
|
|
86
|
+
- Workflow persists for entity lifetime
|
|
87
|
+
- Receives signals for state changes
|
|
88
|
+
- Supports queries for current state
|
|
89
|
+
|
|
90
|
+
**Example Use Cases:**
|
|
91
|
+
|
|
92
|
+
- Shopping cart (add items, checkout, expiration)
|
|
93
|
+
- Bank account (deposits, withdrawals, balance checks)
|
|
94
|
+
- Product inventory (stock updates, reservations)
|
|
95
|
+
|
|
96
|
+
**Benefits:**
|
|
97
|
+
|
|
98
|
+
- Encapsulates entity behavior
|
|
99
|
+
- Guarantees consistency per entity
|
|
100
|
+
- Natural event sourcing
|
|
101
|
+
|
|
102
|
+
### 3. Fan-Out/Fan-In (Parallel Execution)
|
|
103
|
+
|
|
104
|
+
**Purpose**: Execute multiple tasks in parallel, aggregate results
|
|
105
|
+
|
|
106
|
+
**Pattern:**
|
|
107
|
+
|
|
108
|
+
- Spawn child workflows or parallel activities
|
|
109
|
+
- Wait for all to complete
|
|
110
|
+
- Aggregate results
|
|
111
|
+
- Handle partial failures
|
|
112
|
+
|
|
113
|
+
**Scaling Rule** (Source: temporal.io/blog/workflow-engine-principles):
|
|
114
|
+
|
|
115
|
+
- Don't scale individual workflows
|
|
116
|
+
- For 1M tasks: spawn 1K child workflows × 1K tasks each
|
|
117
|
+
- Keep each workflow bounded
|
|
118
|
+
|
|
119
|
+
### 4. Async Callback Pattern
|
|
120
|
+
|
|
121
|
+
**Purpose**: Wait for external event or human approval
|
|
122
|
+
|
|
123
|
+
**Pattern:**
|
|
124
|
+
|
|
125
|
+
- Workflow sends request and waits for signal
|
|
126
|
+
- External system processes asynchronously
|
|
127
|
+
- Sends signal to resume workflow
|
|
128
|
+
- Workflow continues with response
|
|
129
|
+
|
|
130
|
+
**Use Cases:**
|
|
131
|
+
|
|
132
|
+
- Human approval workflows
|
|
133
|
+
- Webhook callbacks
|
|
134
|
+
- Long-running external processes
|
|
135
|
+
|
|
136
|
+
## State Management and Determinism
|
|
137
|
+
|
|
138
|
+
### Automatic State Preservation
|
|
139
|
+
|
|
140
|
+
**How Temporal Works** (Source: docs.temporal.io/workflows):
|
|
141
|
+
|
|
142
|
+
- Complete program state preserved automatically
|
|
143
|
+
- Event History records every command and event
|
|
144
|
+
- Seamless recovery from crashes
|
|
145
|
+
- Applications restore pre-failure state
|
|
146
|
+
|
|
147
|
+
### Determinism Constraints
|
|
148
|
+
|
|
149
|
+
**Workflows Execute as State Machines**:
|
|
150
|
+
|
|
151
|
+
- Replay behavior must be consistent
|
|
152
|
+
- Same inputs → identical outputs every time
|
|
153
|
+
|
|
154
|
+
**Prohibited in Workflows** (Source: docs.temporal.io/workflows):
|
|
155
|
+
|
|
156
|
+
- ❌ Threading, locks, synchronization primitives
|
|
157
|
+
- ❌ Random number generation (`random()`)
|
|
158
|
+
- ❌ Global state or static variables
|
|
159
|
+
- ❌ System time (`datetime.now()`)
|
|
160
|
+
- ❌ Direct file I/O or network calls
|
|
161
|
+
- ❌ Non-deterministic libraries
|
|
162
|
+
|
|
163
|
+
**Allowed in Workflows**:
|
|
164
|
+
|
|
165
|
+
- ✅ `workflow.now()` (deterministic time)
|
|
166
|
+
- ✅ `workflow.random()` (deterministic random)
|
|
167
|
+
- ✅ Pure functions and calculations
|
|
168
|
+
- ✅ Calling activities (non-deterministic operations)
|
|
169
|
+
|
|
170
|
+
### Versioning Strategies
|
|
171
|
+
|
|
172
|
+
**Challenge**: Changing workflow code while old executions still running
|
|
173
|
+
|
|
174
|
+
**Solutions**:
|
|
175
|
+
|
|
176
|
+
1. **Versioning API**: Use `workflow.get_version()` for safe changes
|
|
177
|
+
2. **New Workflow Type**: Create new workflow, route new executions to it
|
|
178
|
+
3. **Backward Compatibility**: Ensure old events replay correctly
|
|
179
|
+
|
|
180
|
+
## Resilience and Error Handling
|
|
181
|
+
|
|
182
|
+
### Retry Policies
|
|
183
|
+
|
|
184
|
+
**Default Behavior**: Temporal retries activities forever
|
|
185
|
+
|
|
186
|
+
**Configure Retry**:
|
|
187
|
+
|
|
188
|
+
- Initial retry interval
|
|
189
|
+
- Backoff coefficient (exponential backoff)
|
|
190
|
+
- Maximum interval (cap retry delay)
|
|
191
|
+
- Maximum attempts (eventually fail)
|
|
192
|
+
|
|
193
|
+
**Non-Retryable Errors**:
|
|
194
|
+
|
|
195
|
+
- Invalid input (validation failures)
|
|
196
|
+
- Business rule violations
|
|
197
|
+
- Permanent failures (resource not found)
|
|
198
|
+
|
|
199
|
+
### Idempotency Requirements
|
|
200
|
+
|
|
201
|
+
**Why Critical** (Source: docs.temporal.io/activities):
|
|
202
|
+
|
|
203
|
+
- Activities may execute multiple times
|
|
204
|
+
- Network failures trigger retries
|
|
205
|
+
- Duplicate execution must be safe
|
|
206
|
+
|
|
207
|
+
**Implementation Strategies**:
|
|
208
|
+
|
|
209
|
+
- Idempotency keys (deduplication)
|
|
210
|
+
- Check-then-act with unique constraints
|
|
211
|
+
- Upsert operations instead of insert
|
|
212
|
+
- Track processed request IDs
|
|
213
|
+
|
|
214
|
+
### Activity Heartbeats
|
|
215
|
+
|
|
216
|
+
**Purpose**: Detect stalled long-running activities
|
|
217
|
+
|
|
218
|
+
**Pattern**:
|
|
219
|
+
|
|
220
|
+
- Activity sends periodic heartbeat
|
|
221
|
+
- Includes progress information
|
|
222
|
+
- Timeout if no heartbeat received
|
|
223
|
+
- Enables progress-based retry
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Run a comprehensive SEO and GEO audit on hotel and hospitality websites.
|
|
4
4
|
|
|
5
|
+
> Spanish prose/docs/reports/Markdown: preserve natural Spanish orthography,
|
|
6
|
+
> including accents, `ñ`, `¿`, `¡`, and normal Unicode. The ASCII-only editing
|
|
7
|
+
> preference does not apply to these artifacts.
|
|
8
|
+
|
|
5
9
|
## Usage
|
|
6
10
|
|
|
7
11
|
```
|
|
@@ -12,15 +16,15 @@ Run a comprehensive SEO and GEO audit on hotel and hospitality websites.
|
|
|
12
16
|
|
|
13
17
|
## Parameters
|
|
14
18
|
|
|
15
|
-
| Parameter
|
|
16
|
-
|
|
17
|
-
| `--url`
|
|
19
|
+
| Parameter | Required | Description |
|
|
20
|
+
| ----------- | ----------------------------- | -------------------------------------------------------------- |
|
|
21
|
+
| `--url` | One of `--url` or `--sitemap` | Single URL to audit |
|
|
18
22
|
| `--sitemap` | One of `--url` or `--sitemap` | Remote sitemap XML URL. Only URLs listed here will be audited. |
|
|
19
|
-
| `--format`
|
|
20
|
-
| `--fail-on` | No
|
|
21
|
-
| `--astro`
|
|
22
|
-
| `--path`
|
|
23
|
-
| `--delay`
|
|
23
|
+
| `--format` | No | Output format: `cli` (default) or `json` |
|
|
24
|
+
| `--fail-on` | No | Exit code trigger: `error` (default) or `warning` |
|
|
25
|
+
| `--astro` | No | Run Astro-specific SEO validation on source code |
|
|
26
|
+
| `--path` | With `--astro` | Path to Astro source directory |
|
|
27
|
+
| `--delay` | No | Delay between requests in ms (default: 500) |
|
|
24
28
|
|
|
25
29
|
## Workflow
|
|
26
30
|
|
|
@@ -55,7 +59,8 @@ Run a comprehensive SEO and GEO audit on hotel and hospitality websites.
|
|
|
55
59
|
|
|
56
60
|
## Hard Rules
|
|
57
61
|
|
|
58
|
-
- **Sitemap-scoped only.** When `--sitemap` is provided, only audit URLs from
|
|
62
|
+
- **Sitemap-scoped only.** When `--sitemap` is provided, only audit URLs from
|
|
63
|
+
the sitemap.
|
|
59
64
|
- **No external crawling.** Never follow hyperlinks found on pages.
|
|
60
65
|
- **GET only.** No POST, PUT, DELETE requests.
|
|
61
66
|
- **No auth.** Never send cookies, tokens, or API keys.
|
|
@@ -85,3 +90,6 @@ Run a comprehensive SEO and GEO audit on hotel and hospitality websites.
|
|
|
85
90
|
- `geo-readiness` — AI-search readiness (GEO)
|
|
86
91
|
- `astro-seo` — Astro framework SEO validation
|
|
87
92
|
- `off-page` — Off-page SEO strategy guidance
|
|
93
|
+
- `pagespeed-insights` — Audit web pages for performance optimization following
|
|
94
|
+
PageSpeed Insights guidelines
|
|
95
|
+
- `find-skills` — Discover and install agent skills
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/claude-code-settings.json",
|
|
3
|
+
"env": {
|
|
4
|
+
"CLAUDE_CODE_ATTRIBUTION_HEADER": "0",
|
|
5
|
+
"CLAUDE_CODE_DISABLE_1M_CONTEXT": "1",
|
|
6
|
+
"CLAUDE_CODE_DISABLE_AUTO_MEMORY": "1",
|
|
7
|
+
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1",
|
|
8
|
+
"CLAUDE_CODE_DISABLE_TERMINAL_TITLE": "1",
|
|
9
|
+
"DISABLE_EXTRA_USAGE_COMMAND": "1",
|
|
10
|
+
"CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT": "1",
|
|
11
|
+
"ENABLE_TOOL_SEARCH": "auto",
|
|
12
|
+
"CLAUDE_AUTOCOMPACT_PCT_OVERRIDE": "80",
|
|
13
|
+
"DISABLE_BUG_COMMAND": "1"
|
|
14
|
+
},
|
|
15
|
+
"includeCoAuthoredBy": false,
|
|
16
|
+
"includeGitInstructions": false,
|
|
17
|
+
"permissions": {
|
|
18
|
+
"allow": [
|
|
19
|
+
"Bash(git status*)",
|
|
20
|
+
"Bash(git diff*)",
|
|
21
|
+
"Bash(git log*)",
|
|
22
|
+
"Bash(./gradlew test*)",
|
|
23
|
+
"Bash(./gradlew build*)",
|
|
24
|
+
"Bash(./gradlew check*)",
|
|
25
|
+
"Bash(npm test*)",
|
|
26
|
+
"Bash(npm run lint*)",
|
|
27
|
+
"Bash(ls *)",
|
|
28
|
+
"Bash(cat *)",
|
|
29
|
+
"Bash(grep *)",
|
|
30
|
+
"Bash(rg *)",
|
|
31
|
+
"Bash(find *)",
|
|
32
|
+
"Bash(tree *)",
|
|
33
|
+
"Bash(echo *)",
|
|
34
|
+
"Bash(pwd)",
|
|
35
|
+
"Bash(which *)",
|
|
36
|
+
"Bash(head *)",
|
|
37
|
+
"Bash(tail *)",
|
|
38
|
+
"Bash(wc *)",
|
|
39
|
+
"Bash(diff *)",
|
|
40
|
+
"Bash(git branch*)",
|
|
41
|
+
"Bash(git show*)",
|
|
42
|
+
"Bash(git add*)",
|
|
43
|
+
"Bash(git commit*)",
|
|
44
|
+
"Bash(git stash*)",
|
|
45
|
+
"Bash(git checkout*)",
|
|
46
|
+
"Bash(git restore*)",
|
|
47
|
+
"Bash(git pull*)",
|
|
48
|
+
"Bash(git fetch*)",
|
|
49
|
+
"Bash(git merge*)",
|
|
50
|
+
"Bash(npm run *)",
|
|
51
|
+
"Bash(npm ci)",
|
|
52
|
+
"Bash(pnpm run *)",
|
|
53
|
+
"Bash(pnpm test*)",
|
|
54
|
+
"Bash(pnpm exec *)",
|
|
55
|
+
"Bash(pnpm dlx *)",
|
|
56
|
+
"Bash(yarn run *)",
|
|
57
|
+
"Bash(yarn test*)",
|
|
58
|
+
"Bash(npx *)",
|
|
59
|
+
"Bash(python *)",
|
|
60
|
+
"Bash(python3 *)",
|
|
61
|
+
"Bash(pip list*)",
|
|
62
|
+
"Bash(pip show *)",
|
|
63
|
+
"Bash(pytest*)",
|
|
64
|
+
"Bash(ruff*)",
|
|
65
|
+
"Bash(black --check *)",
|
|
66
|
+
"Bash(./gradlew *)",
|
|
67
|
+
"Bash(gradle *)",
|
|
68
|
+
"Bash(mvn test*)",
|
|
69
|
+
"Bash(mvn compile*)",
|
|
70
|
+
"Bash(java -version)",
|
|
71
|
+
"Bash(kotlin -version)",
|
|
72
|
+
"Bash(docker ps*)",
|
|
73
|
+
"Bash(docker logs*)",
|
|
74
|
+
"Bash(docker compose ps*)",
|
|
75
|
+
"Bash(docker compose logs*)",
|
|
76
|
+
"Read(**)",
|
|
77
|
+
"Write(./src/**)",
|
|
78
|
+
"Write(./app/**)",
|
|
79
|
+
"Write(./pages/**)",
|
|
80
|
+
"Write(./components/**)",
|
|
81
|
+
"Write(./lib/**)",
|
|
82
|
+
"Write(./tests/**)",
|
|
83
|
+
"Write(./test/**)",
|
|
84
|
+
"Write(./__tests__/**)",
|
|
85
|
+
"Write(./prisma/**)",
|
|
86
|
+
"Write(./drizzle/**)",
|
|
87
|
+
"Write(./public/**)",
|
|
88
|
+
"Write(./styles/**)",
|
|
89
|
+
"Write(./scripts/**)",
|
|
90
|
+
"Write(./docs/**)",
|
|
91
|
+
"Edit(**)",
|
|
92
|
+
"WebFetch(*)"
|
|
93
|
+
],
|
|
94
|
+
"deny": [
|
|
95
|
+
"Bash(rm -rf *)",
|
|
96
|
+
"Bash(sudo *)",
|
|
97
|
+
"Bash(su *)",
|
|
98
|
+
"Bash(chmod 777 *)",
|
|
99
|
+
"Bash(chown *)",
|
|
100
|
+
"Bash(dd *)",
|
|
101
|
+
"Bash(mkfs *)",
|
|
102
|
+
"Bash(diskutil *)",
|
|
103
|
+
"Bash(mount *)",
|
|
104
|
+
"Bash(umount *)",
|
|
105
|
+
"Bash(systemctl *)",
|
|
106
|
+
"Bash(launchctl *)",
|
|
107
|
+
"Bash(curl * | sh)",
|
|
108
|
+
"Bash(curl * | bash)",
|
|
109
|
+
"Bash(wget * | sh)",
|
|
110
|
+
"Bash(wget * | bash)",
|
|
111
|
+
"Bash(git push --force*)",
|
|
112
|
+
"Bash(git push -f*)",
|
|
113
|
+
"Bash(git rebase *)",
|
|
114
|
+
"Bash(git reset --hard *)",
|
|
115
|
+
"Bash(rm -fr *)",
|
|
116
|
+
"Bash(chmod -R *)",
|
|
117
|
+
"Bash(eval *)",
|
|
118
|
+
"Bash(git push --force origin main*)",
|
|
119
|
+
"Bash(git push --force origin master*)",
|
|
120
|
+
"Bash(git push -f origin main*)",
|
|
121
|
+
"Bash(git push -f origin master*)",
|
|
122
|
+
"Read(./.env)",
|
|
123
|
+
"Read(./.env.*)",
|
|
124
|
+
"Read(./**/.env)",
|
|
125
|
+
"Read(./**/.env.*)",
|
|
126
|
+
"Read(./secrets/**)",
|
|
127
|
+
"Read(./**/credentials.json)",
|
|
128
|
+
"Read(./**/serviceAccount*.json)",
|
|
129
|
+
"Read(./**/*.pem)",
|
|
130
|
+
"Read(./**/*.key)",
|
|
131
|
+
"Read(./**/id_rsa*)",
|
|
132
|
+
"Read(~/.ssh/**)",
|
|
133
|
+
"Read(~/.aws/**)",
|
|
134
|
+
"Read(~/.gnupg/**)",
|
|
135
|
+
"Write(./.env)",
|
|
136
|
+
"Write(./.env.*)",
|
|
137
|
+
"Write(./**/.env)",
|
|
138
|
+
"Edit(./.env)",
|
|
139
|
+
"Edit(./.env.*)",
|
|
140
|
+
"Edit(./**/.env)"
|
|
141
|
+
],
|
|
142
|
+
"ask": [
|
|
143
|
+
"Bash(git push*)",
|
|
144
|
+
"Bash(git push --force*)",
|
|
145
|
+
"Bash(git reset --hard*)",
|
|
146
|
+
"Bash(npm install*)",
|
|
147
|
+
"Bash(npm i *)",
|
|
148
|
+
"Bash(pnpm install*)",
|
|
149
|
+
"Bash(pnpm add *)",
|
|
150
|
+
"Bash(yarn add *)",
|
|
151
|
+
"Bash(pip install*)",
|
|
152
|
+
"Bash(docker run*)",
|
|
153
|
+
"Bash(docker compose up*)",
|
|
154
|
+
"Bash(docker compose down*)",
|
|
155
|
+
"Bash(./gradlew build*)",
|
|
156
|
+
"Bash(./gradlew bootRun*)",
|
|
157
|
+
"Bash(mvn install*)",
|
|
158
|
+
"Bash(mvn deploy*)",
|
|
159
|
+
"Bash(vercel*)",
|
|
160
|
+
"Bash(npx vercel*)"
|
|
161
|
+
],
|
|
162
|
+
"defaultMode": "acceptEdits"
|
|
163
|
+
},
|
|
164
|
+
"hooks": {
|
|
165
|
+
"PostToolUse": [
|
|
166
|
+
{
|
|
167
|
+
"matcher": "Write|Edit|MultiEdit",
|
|
168
|
+
"hooks": [
|
|
169
|
+
{
|
|
170
|
+
"type": "command",
|
|
171
|
+
"command": "if echo \"$CLAUDE_TOOL_INPUT_FILE_PATH\" | grep -qE '\\.(ts|tsx|js|jsx|mjs|cjs|json|jsonc|md|mdx|css|scss|html|astro|yaml|yml)$'; then npx --no-install prettier --write \"$CLAUDE_TOOL_INPUT_FILE_PATH\" 2>/dev/null || true; fi"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"type": "command",
|
|
175
|
+
"command": "if echo \"$CLAUDE_TOOL_INPUT_FILE_PATH\" | grep -qE '\\.(ts|tsx|js|jsx|mjs|cjs)$'; then npx --no-install eslint --fix \"$CLAUDE_TOOL_INPUT_FILE_PATH\" 2>/dev/null || true; fi"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"type": "command",
|
|
179
|
+
"command": "if echo \"$CLAUDE_TOOL_INPUT_FILE_PATH\" | grep -qE '\\.py$'; then ruff format \"$CLAUDE_TOOL_INPUT_FILE_PATH\" 2>/dev/null && ruff check --fix \"$CLAUDE_TOOL_INPUT_FILE_PATH\" 2>/dev/null || true; fi"
|
|
180
|
+
}
|
|
181
|
+
]
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
"PreToolUse": [
|
|
185
|
+
{
|
|
186
|
+
"matcher": "Bash",
|
|
187
|
+
"hooks": [
|
|
188
|
+
{
|
|
189
|
+
"type": "command",
|
|
190
|
+
"command": "if echo \"$CLAUDE_TOOL_INPUT_COMMAND\" | grep -qE '(\\.env|secrets/|id_rsa|\\.pem|\\.key)\\b' && echo \"$CLAUDE_TOOL_INPUT_COMMAND\" | grep -qE '(cat|less|more|head|tail|cp |mv |scp )'; then echo 'Bloqueado: intento de leer archivos sensibles' >&2; exit 2; fi"
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
"extraKnownMarketplaces": {
|
|
197
|
+
"agricidaniel-claude-seo": {
|
|
198
|
+
"source": {
|
|
199
|
+
"source": "github",
|
|
200
|
+
"repo": "AgriciDaniel/claude-seo"
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"language": "spanish",
|
|
205
|
+
"feedbackSurveyRate": 0,
|
|
206
|
+
"spinnerTipsEnabled": false,
|
|
207
|
+
"alwaysThinkingEnabled": true,
|
|
208
|
+
"effortLevel": "xhigh",
|
|
209
|
+
"awaySummaryEnabled": false,
|
|
210
|
+
"showClearContextOnPlanAccept": true,
|
|
211
|
+
"autoUpdatesChannel": "stable",
|
|
212
|
+
"prefersReducedMotion": false,
|
|
213
|
+
"autoMemoryEnabled": false,
|
|
214
|
+
"showThinkingSummaries": true,
|
|
215
|
+
"skipDangerousModePermissionPrompt": true,
|
|
216
|
+
"editorMode": "vim",
|
|
217
|
+
"fileCheckpointingEnabled": true,
|
|
218
|
+
"showTurnDuration": true,
|
|
219
|
+
"terminalProgressBarEnabled": true,
|
|
220
|
+
"autoConnectIde": true,
|
|
221
|
+
"autoInstallIdeExtension": false,
|
|
222
|
+
"enabledPlugins": {
|
|
223
|
+
"claude-seo@agricidaniel-claude-seo": true
|
|
224
|
+
}
|
|
225
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: find-skills
|
|
3
|
+
description: Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Find Skills
|
|
7
|
+
|
|
8
|
+
This skill helps you discover and install skills from the open agent skills ecosystem.
|
|
9
|
+
|
|
10
|
+
## When to Use This Skill
|
|
11
|
+
|
|
12
|
+
Use this skill when the user:
|
|
13
|
+
|
|
14
|
+
- Asks "how do I do X" where X might be a common task with an existing skill
|
|
15
|
+
- Says "find a skill for X" or "is there a skill for X"
|
|
16
|
+
- Asks "can you do X" where X is a specialized capability
|
|
17
|
+
- Expresses interest in extending agent capabilities
|
|
18
|
+
- Wants to search for tools, templates, or workflows
|
|
19
|
+
- Mentions they wish they had help with a specific domain (design, testing, deployment, etc.)
|
|
20
|
+
|
|
21
|
+
## What is the Skills CLI?
|
|
22
|
+
|
|
23
|
+
The Skills CLI (`npx skills`) is the package manager for the open agent skills ecosystem. Skills are modular packages that extend agent capabilities with specialized knowledge, workflows, and tools.
|
|
24
|
+
|
|
25
|
+
**Key commands:**
|
|
26
|
+
|
|
27
|
+
- `npx skills find [query]` - Search for skills interactively or by keyword
|
|
28
|
+
- `npx skills add <package>` - Install a skill from GitHub or other sources
|
|
29
|
+
- `npx skills check` - Check for skill updates
|
|
30
|
+
- `npx skills update` - Update all installed skills
|
|
31
|
+
|
|
32
|
+
**Browse skills at:** https://skills.sh/
|
|
33
|
+
|
|
34
|
+
## How to Help Users Find Skills
|
|
35
|
+
|
|
36
|
+
### Step 1: Understand What They Need
|
|
37
|
+
|
|
38
|
+
When a user asks for help with something, identify:
|
|
39
|
+
|
|
40
|
+
1. The domain (e.g., React, testing, design, deployment)
|
|
41
|
+
2. The specific task (e.g., writing tests, creating animations, reviewing PRs)
|
|
42
|
+
3. Whether this is a common enough task that a skill likely exists
|
|
43
|
+
|
|
44
|
+
### Step 2: Check the Leaderboard First
|
|
45
|
+
|
|
46
|
+
Before running a CLI search, check the [skills.sh leaderboard](https://skills.sh/) to see if a well-known skill already exists for the domain. The leaderboard ranks skills by total installs, surfacing the most popular and battle-tested options.
|
|
47
|
+
|
|
48
|
+
For example, top skills for web development include:
|
|
49
|
+
- `vercel-labs/agent-skills` — React, Next.js, web design (100K+ installs each)
|
|
50
|
+
- `anthropics/skills` — Frontend design, document processing (100K+ installs)
|
|
51
|
+
|
|
52
|
+
### Step 3: Search for Skills
|
|
53
|
+
|
|
54
|
+
If the leaderboard doesn't cover the user's need, run the find command:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
npx skills find [query]
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
For example:
|
|
61
|
+
|
|
62
|
+
- User asks "how do I make my React app faster?" → `npx skills find react performance`
|
|
63
|
+
- User asks "can you help me with PR reviews?" → `npx skills find pr review`
|
|
64
|
+
- User asks "I need to create a changelog" → `npx skills find changelog`
|
|
65
|
+
|
|
66
|
+
### Step 4: Verify Quality Before Recommending
|
|
67
|
+
|
|
68
|
+
**Do not recommend a skill based solely on search results.** Always verify:
|
|
69
|
+
|
|
70
|
+
1. **Install count** — Prefer skills with 1K+ installs. Be cautious with anything under 100.
|
|
71
|
+
2. **Source reputation** — Official sources (`vercel-labs`, `anthropics`, `microsoft`) are more trustworthy than unknown authors.
|
|
72
|
+
3. **GitHub stars** — Check the source repository. A skill from a repo with <100 stars should be treated with skepticism.
|
|
73
|
+
|
|
74
|
+
### Step 5: Present Options to the User
|
|
75
|
+
|
|
76
|
+
When you find relevant skills, present them to the user with:
|
|
77
|
+
|
|
78
|
+
1. The skill name and what it does
|
|
79
|
+
2. The install count and source
|
|
80
|
+
3. The install command they can run
|
|
81
|
+
4. A link to learn more at skills.sh
|
|
82
|
+
|
|
83
|
+
Example response:
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
I found a skill that might help! The "react-best-practices" skill provides
|
|
87
|
+
React and Next.js performance optimization guidelines from Vercel Engineering.
|
|
88
|
+
(185K installs)
|
|
89
|
+
|
|
90
|
+
To install it:
|
|
91
|
+
npx skills add vercel-labs/agent-skills@react-best-practices
|
|
92
|
+
|
|
93
|
+
Learn more: https://skills.sh/vercel-labs/agent-skills/react-best-practices
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Step 6: Offer to Install
|
|
97
|
+
|
|
98
|
+
If the user wants to proceed, you can install the skill for them:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
npx skills add <owner/repo@skill> -g -y
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
The `-g` flag installs globally (user-level) and `-y` skips confirmation prompts.
|
|
105
|
+
|
|
106
|
+
## Common Skill Categories
|
|
107
|
+
|
|
108
|
+
When searching, consider these common categories:
|
|
109
|
+
|
|
110
|
+
| Category | Example Queries |
|
|
111
|
+
| --------------- | ---------------------------------------- |
|
|
112
|
+
| Web Development | react, nextjs, typescript, css, tailwind |
|
|
113
|
+
| Testing | testing, jest, playwright, e2e |
|
|
114
|
+
| DevOps | deploy, docker, kubernetes, ci-cd |
|
|
115
|
+
| Documentation | docs, readme, changelog, api-docs |
|
|
116
|
+
| Code Quality | review, lint, refactor, best-practices |
|
|
117
|
+
| Design | ui, ux, design-system, accessibility |
|
|
118
|
+
| Productivity | workflow, automation, git |
|
|
119
|
+
|
|
120
|
+
## Tips for Effective Searches
|
|
121
|
+
|
|
122
|
+
1. **Use specific keywords**: "react testing" is better than just "testing"
|
|
123
|
+
2. **Try alternative terms**: If "deploy" doesn't work, try "deployment" or "ci-cd"
|
|
124
|
+
3. **Check popular sources**: Many skills come from `vercel-labs/agent-skills` or `ComposioHQ/awesome-claude-skills`
|
|
125
|
+
|
|
126
|
+
## When No Skills Are Found
|
|
127
|
+
|
|
128
|
+
If no relevant skills exist:
|
|
129
|
+
|
|
130
|
+
1. Acknowledge that no existing skill was found
|
|
131
|
+
2. Offer to help with the task directly using your general capabilities
|
|
132
|
+
3. Suggest the user could create their own skill with `npx skills init`
|
|
133
|
+
|
|
134
|
+
Example:
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
I searched for skills related to "xyz" but didn't find any matches.
|
|
138
|
+
I can still help you with this task directly! Would you like me to proceed?
|
|
139
|
+
|
|
140
|
+
If this is something you do often, you could create your own skill:
|
|
141
|
+
npx skills init my-xyz-skill
|
|
142
|
+
```
|