@codeharbor/agent-playbook 0.2.1 → 0.2.2
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/package.json
CHANGED
|
@@ -58,11 +58,11 @@ git diff --name-only main..HEAD | grep "^skills/"
|
|
|
58
58
|
|
|
59
59
|
### Auto-Trigger Changes Require Update
|
|
60
60
|
|
|
61
|
-
If a skill's `hooks
|
|
61
|
+
If a skill's `metadata.hooks` front matter was modified, the **Auto-Trigger** column in the Skills Catalog must be updated:
|
|
62
62
|
|
|
63
63
|
```bash
|
|
64
64
|
# Check if hooks were modified
|
|
65
|
-
git diff main..HEAD -- skills/*/SKILL.md | grep -E "^\+.*hooks:|^\+.*trigger:"
|
|
65
|
+
git diff main..HEAD -- skills/*/SKILL.md | grep -E "^\+.*metadata:|^\+.*hooks:|^\+.*trigger:"
|
|
66
66
|
```
|
|
67
67
|
|
|
68
68
|
If hooks changed → Update README.md and README.zh-CN.md Auto-Trigger column.
|
|
@@ -2,18 +2,19 @@
|
|
|
2
2
|
name: figma-designer
|
|
3
3
|
description: Analyzes Figma designs and generates implementation-ready PRDs with detailed visual specifications. Use when user provides Figma link or uploads design screenshots. Requires Figma MCP server connection.
|
|
4
4
|
allowed-tools: Read, Write, Edit, Bash, Grep, Glob, WebFetch, WebSearch, AskUserQuestion
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
metadata:
|
|
6
|
+
hooks:
|
|
7
|
+
after_complete:
|
|
8
|
+
- trigger: prd-planner
|
|
9
|
+
mode: ask_first
|
|
10
|
+
condition: prd_generated
|
|
11
|
+
reason: "Further refine PRD with 4-file pattern"
|
|
12
|
+
- trigger: self-improving-agent
|
|
13
|
+
mode: background
|
|
14
|
+
reason: "Learn design patterns for future reference"
|
|
15
|
+
- trigger: session-logger
|
|
16
|
+
mode: auto
|
|
17
|
+
reason: "Save design analysis session"
|
|
17
18
|
---
|
|
18
19
|
|
|
19
20
|
# Figma Designer
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
name: prd-planner
|
|
3
3
|
description: Creates PRDs using persistent file-based planning. Use when user explicitly says "PRD", "product requirements document", or "产品需求文档". Combines PRD methodology with planning-with-files to avoid context switching.
|
|
4
4
|
allowed-tools: Read, Write, Edit, Bash, Grep, Glob, AskUserQuestion, WebSearch
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
metadata:
|
|
6
|
+
hooks:
|
|
7
|
+
after_complete:
|
|
8
|
+
- trigger: self-improving-agent
|
|
9
|
+
mode: background
|
|
10
|
+
reason: "Extract patterns and improve PRD quality"
|
|
11
|
+
- trigger: session-logger
|
|
12
|
+
mode: auto
|
|
13
|
+
reason: "Save session context"
|
|
13
14
|
---
|
|
14
15
|
|
|
15
16
|
# PRD Planner
|
|
@@ -2,25 +2,26 @@
|
|
|
2
2
|
name: self-improving-agent
|
|
3
3
|
description: A universal self-improving agent that learns from ALL skill experiences. Uses multi-memory architecture (semantic + episodic + working) to continuously evolve the codebase. Auto-triggers on skill completion/error with hooks-based self-correction.
|
|
4
4
|
allowed-tools: Read, Write, Edit, Bash, Grep, Glob, WebSearch
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
5
|
+
metadata:
|
|
6
|
+
hooks:
|
|
7
|
+
before_start:
|
|
8
|
+
- trigger: session-logger
|
|
9
|
+
mode: auto
|
|
10
|
+
context: "Start {skill_name}"
|
|
11
|
+
after_complete:
|
|
12
|
+
- trigger: create-pr
|
|
13
|
+
mode: ask_first
|
|
14
|
+
condition: skills_modified
|
|
15
|
+
reason: "Submit improvements to repository"
|
|
16
|
+
- trigger: session-logger
|
|
17
|
+
mode: auto
|
|
18
|
+
context: "Self-improvement cycle complete"
|
|
19
|
+
# Note: on_error intentionally only logs to session to avoid infinite recursion
|
|
20
|
+
# Self-correction is triggered by other skills (debugger, code-reviewer) completing their work
|
|
21
|
+
on_error:
|
|
22
|
+
- trigger: session-logger
|
|
23
|
+
mode: auto
|
|
24
|
+
context: "Error captured in {skill_name}"
|
|
24
25
|
---
|
|
25
26
|
|
|
26
27
|
# Self-Improving Agent
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
name: workflow-orchestrator
|
|
3
3
|
description: Automatically coordinates multi-skill workflows and triggers follow-up actions. Use when completing PRD creation, implementation, or any milestone that should trigger additional skills. This skill reads the auto-trigger configuration and executes the workflow chain.
|
|
4
4
|
allowed-tools: Read, Write, Edit, Bash, Grep, AskUserQuestion
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
metadata:
|
|
6
|
+
hooks:
|
|
7
|
+
after_complete:
|
|
8
|
+
- trigger: session-logger
|
|
9
|
+
mode: auto
|
|
10
|
+
reason: "Save workflow execution context"
|
|
10
11
|
---
|
|
11
12
|
|
|
12
13
|
# Workflow Orchestrator
|