install
source · Clone the upstream repo
git clone https://github.com/TeamWiseFlow/wiseflow
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/TeamWiseFlow/wiseflow "$T" && mkdir -p ~/.claude/skills && cp -r "$T/crews/hrbp/skills/hrbp-recruit" ~/.claude/skills/teamwiseflow-wiseflow-hrbp-recruit && rm -rf "$T"
manifest:
crews/hrbp/skills/hrbp-recruit/SKILL.mdsource content
HRBP Skill — Recruit (招聘 / 实例化)
Trigger
User requests a new external agent/role/assistant.
Scope: external crews only. Internal crew lifecycle is managed by Main Agent.
Procedure
Step 1: Understand Requirements
- Ask the user about the new agent's purpose, specialty, and responsibilities
- Ask if the new agent needs a direct channel binding (Mode B; external crews are bind-only)
- Clarify the instance's name and desired ID (lowercase, hyphenated, e.g.,
)cs-product-a
Step 2: Match Template
- Browse template library:
~/.openclaw/hrbp_templates/index.md - If a matching template exists → use it as the base, proceed to Step 3
- If no match → create a new template first:
- Use
as scaffold (or closest existing template)~/.openclaw/hrbp_templates/_template/ - Generate 8 workspace files for the new template
- Write to
~/.openclaw/hrbp_templates/<template-id>/ - Update
~/.openclaw/hrbp_templates/index.md - Then proceed to Step 3
- Use
Step 3: Configure Instance
Present an instantiation proposal to the user:
- Instance ID: unique, lowercase, hyphenated (e.g.,
)cs-product-a - Instance Name: human-readable (e.g., "产品A客服")
- Source Template: which template this instance is based on
- Channel Binding: optional — which channel and account
- Skill Customization: optional — additional or denied skills
- Role Tuning: optional — SOUL.md adjustments for this specific instance
Step 4: Generate Workspace
After user confirms the proposal:
-
Create workspace directory:
~/.openclaw/workspace-<instance-id>/ -
Copy template files as starting point
-
Apply instance-specific customizations (name, role tuning, etc.)
-
Create skill config file:
— one skill per line(external crew 权限白名单,参考模板中的 DECLARED_SKILLS)DECLARED_SKILLS
-
Copy shared protocol (
) into the workspaceCREW_TYPES.md -
[If template uses
skill] Initialize the customer database:customer-db- Ask the user to define the database schema (tables, fields, types)
- Write the schema to
~/.openclaw/workspace-<instance-id>/db/schema.sql - Run the initialization script from the workspace directory:
cd ~/.openclaw/workspace-<instance-id> bash ./skills/customer-db/scripts/db.sh init - Confirm tables were created successfully:
bash ./skills/customer-db/scripts/db.sh tables - Record the schema summary in the instance's
under aMEMORY.md
section## Database Schema
Schema example (adapt to the user's business needs):
-- db/schema.sql CREATE TABLE IF NOT EXISTS customers ( id INTEGER PRIMARY KEY AUTOINCREMENT, channel_id TEXT NOT NULL UNIQUE, -- 渠道用户标识(如飞书 open_id) name TEXT, phone TEXT, status TEXT DEFAULT 'active', -- active / vip / blocked created_at TEXT DEFAULT (date('now')), last_seen TEXT DEFAULT (date('now')) );Schema design guidelines:
- Always include a
column to link records to the user's channel identitychannel_id - Use
for date fields (SQLite has no native DATE type)TEXT DEFAULT (date('now')) - Avoid storing PII beyond what's operationally necessary
- Keep schema simple — the agent performs DML only; complex joins should be avoided
Step 5: Register Instance(需用户确认)
- Run:
bash ./skills/hrbp-recruit/scripts/add-agent.sh <instance-id> --crew-type external- Optional bind:
--bind <channel>:<accountId> - Optional bundled skills add-on:
--builtin-skills <skill1,skill2|all> - Optional template metadata:
--template-id <template-id> --note <text>
- This will:
- Add instance to
in openclaw.jsonagents.list - Keep Main Agent
untouched(external bind-only)subagents.allowAgents - Add binding if specified
- Write
allowlist fromskills
+ workspace skills only(declare-mode)DECLARED_SKILLS - Enforce external constraints: create
directoryfeedback/ - Update HRBP Agent's MEMORY.md(Instance Registry + Operation History)
- Add instance to
Step 6: Update HRBP Memory
- No manual text edit required if Step 5 script succeeded.
- Only verify HRBP MEMORY has registry/history entry; if missing, rerun add-agent.sh with:
--template-id <template-id>--note <text>
Step 7: Closeout
Report to the user:
- Instance ID and name
- Source template
- Workspace location
- Route mode: binding(外部 crew 仅支持 bind-only,无 spawn 模式)
- Remind: restart Gateway to activate (
)./scripts/dev.sh gateway
Notes
- Always present the proposal before generating files
- Use existing templates when possible — avoid creating unnecessary new templates
- Instance IDs must be unique, lowercase, hyphenated
- The workspace directory must exist before running add-agent.sh
- Same template can be instantiated multiple times with different IDs