Loading...
Loading...
Meta-skill that teaches the Agent how to discover, select, execute, chain, and observe skills in the skill system. Load this skill when you need to: (1) find which skill can handle a capability, (2) execute a skill operation via its entrypoint, (3) chain multiple skill operations together, (4) check policy before executing, or (5) log skill execution for observability. This skill makes YOU the router — you decide what to run, in what order, based on context.
npx skill4agent add arthur0824hao/skills skill-system-routerUser goal → Read skills-index.json → Match capabilities → Read skill manifest
→ Check policy → Execute entrypoints → Parse JSON output → Decide next step → Log## Skill Systemscripts/bootstrap.mdskills-index.jsonskills-index.jsonbash "<this-skill-dir>/scripts/build-index.sh"powershell.exe -NoProfile -ExecutionPolicy Bypass -File "<this-skill-dir>\scripts\build-index.ps1"SKILL.md`skill-manifest`references/manifest-spec.mdeffectsSELECT allowed_effects FROM skill_system.policy_profiles WHERE name = 'dev';allowed_effectsallowed_effectsdb.readdb.writeproc.execfs.readfs.writenet.fetchgit.readgit.writeOSWindows_NTwindowsunixentrypoints{param}INSERT INTO skill_system.runs(task_spec_id, status, started_at, effective_policy)
VALUES (NULL, 'running', NOW(), '{}'::jsonb) RETURNING id;
INSERT INTO skill_system.run_events(run_id, level, event_type, payload)
VALUES (<run_id>, 'info', 'step_completed',
jsonb_build_object('skill', '<id>', 'operation', '<op>', 'status', '<ok|error>', 'duration_ms', <ms>));
UPDATE skill_system.runs SET status='succeeded', ended_at=NOW(),
metrics=jsonb_build_object('steps', <n>, 'duration_ms', <ms>) WHERE id=<run_id>;"Want me to run an insight pass on this session? It helps me learn your preferences for better collaboration next time."
skill-system-insightscripts/extract-facets.mdskill-system-postgresskill_system.policy_profilesskill_system.runsskill_system.run_events{
"schema_version": "2.0",
"id": "skill-system-router",
"version": "1.0.0",
"capabilities": ["skill-discover", "skill-execute", "skill-chain", "index-rebuild"],
"effects": ["fs.read", "fs.write", "proc.exec", "db.read", "db.write"],
"operations": {
"rebuild-index": {
"description": "Regenerate skills-index.json by scanning all skill manifests.",
"input": {},
"output": {
"description": "Index file path and skill count",
"fields": { "file": "string", "skill_count": "integer" }
},
"entrypoints": {
"unix": ["bash", "scripts/build-index.sh"],
"windows": ["powershell.exe", "-NoProfile", "-ExecutionPolicy", "Bypass", "-File", "scripts\\build-index.ps1"]
}
},
"bootstrap": {
"description": "Embed skill-system into project AGENTS.md (first run only).",
"input": {},
"output": {
"description": "Path to updated AGENTS.md",
"fields": { "agents_md_path": "string" }
},
"entrypoints": {
"agent": "Follow scripts/bootstrap.md procedure"
}
}
},
"stdout_contract": {
"last_line_json": false,
"note": "rebuild-index prints summary to stdout; bootstrap is agent-executed."
}
}