Customize BosskuAI Skill
Activates only when editing BosskuAI's own configuration. It carries the real
schemas so you don't invent structure the loader won't read. For the writing craft of a skill's body (structure, triggers, gotchas), use bosskuai-skill-creator; this skill supplies the schemas and checks.
When to Load
AGENTS.md— the shared contract for Claude Code, Cursor, Codex, OpenCodeskills/skill-index.json— generated routing index (never hand-edit)skills/*/SKILL.md— skill definitionsskills/aliases.json,skills/vendored.json— alias and upstream-pack registriesagents/*.md— agent contracts (orchestrator, planner, executor, auditor, final-reviewer)bossku/*.py— the CLI (install, routing, validation).claude-plugin/,.cursor-plugin/,.codex-plugin/,.agents/,.opencode/— host manifests
Repo layout (authoritative)
BosskuAI is a Python CLI plus a skill library. There is no Laravel app, no
ai-assistant/ tree. The scripts/ directory holds host sync wrappers; older ADRs under references/
describe a previous layout and are history, not instructions.
AGENTS.md CLAUDE.md (must contain a bare @AGENTS.md line)
agents/ seven required contracts (AGENT_FILES in bossku/install.py)
bossku/ CLI: cli, install, skills, index, validate, memory, doctor
skills/<id>/SKILL.md one folder per skill
skills/skill-index.json
tests/ unittest suite
SKILL.md frontmatter
Only name and description are read by every host on every session, so the
description is a shared context budget - keep it tight and specific.
---
name: <must equal the folder name>
description: "Use when <trigger situations>. Aim for <=300 chars (validator max 1200)."
license: MIT # optional
allowed-tools: Read, Edit # optional; never `tools:` in a skill
metadata: # optional
author: ...
---
Rules:
namemust equal the directory name.- Never use
tools:in a SKILL.md - that key is for agent contracts. Skills useallowed-tools:. - Keep block scalars simple (
>or>-); both parse, but plain quoted strings are safest. - Do not add
triggers:/keywords:to frontmatter. Routing data lives in the index so it costs zero always-loaded context.
Agent contract (agents/*.md)
---
name: <agent-name>
description: <one line>
tools: ["Read", "Grep", "Glob"]
model: <inherit|sonnet|opus|haiku|fable|full model id>
---
# <Agent Name> Agent
<one-paragraph runtime behavior>
<!-- runtime-core:start --> ... <!-- runtime-core:end -->
## Contract
## Output
skill-index.json
Generated - never hand-edit. Rebuild with bossku skills index. Entry shape:
{
"skills": {
"skill-id": {
"path": "skills/skill-id/SKILL.md",
"name": "skill-id",
"description": "...",
"exclusions": ["curated exclusions"],
"triggers": ["curated phrases"],
"phrases": ["scraped from the description"],
"keywords": ["idf-scored terms"],
"model_role": "coder|planner|reviewer|researcher",
"pack": "bossku|marketingskills|superpowers|..."
}
}
}
To improve routing for a skill, add wording to CURATED_TRIGGERS in
bossku/index.py and rebuild - curated triggers outrank
phrases scraped from descriptions. The index stores a fingerprint over every
skill's id and full SKILL.md text, plus the routing policy tables; bossku validate fails when it drifts.
Rules When Editing Config
- Never remove the
bossku-superpowersresponse header from AGENTS.md. - Every agent contract keeps its
runtime-coreblock — that is the injected behavior. name+descriptionare mandatory in every SKILL.md, andnamematches the folder.- Adding or renaming a skill requires
bossku skills index, or validation fails. - Vendored skills belong to upstream. Anything listed in
skills/vendored.jsonshould not be reworded locally - a re-vendor will overwrite it. Route around it with curated triggers instead. - Adding an agent requires updating
agents/,AGENT_FILESinbossku/install.py, the plugin manifests that list agents, and the orchestrator's flow table if it participates in a workflow. - Version bumps must stay in lockstep —
pyproject.toml,bossku/__init__.pyand all three plugin manifests are checked for equality. - Never commit secrets into skills, memory, or manifests.
Verification
python -m bossku skills index --root . # if any skill changed
python -m bossku validate --root .
python -m unittest discover -s tests
validate checks required files, agent contracts, frontmatter (name/description
present, length bounds, unknown keys), alias targets, index freshness, and that the
three host plugin manifests and their marketplace files agree on version and paths. If it fails, the change broke a
contract - fix before declaring done.