一键导入
record-skill
Scaffold new Beacon skills in the warehouse with LLM-driven content generation and pending-based wiring
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffold new Beacon skills in the warehouse with LLM-driven content generation and pending-based wiring
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Systematically capture decisions, lessons, and facts into the warehouse knowledge base with optional context wiring
Guided warehouse contribution flow with lint gate, intent triage, dedup scan, cohesion split, and atomic push
基于 SOC 职业分类
| name | record-skill |
| description | Scaffold new Beacon skills in the warehouse with LLM-driven content generation and pending-based wiring |
| license | MIT |
| compatibility | opencode |
| requires | {"contexts":[]} |
Create properly structured Beacon skills in the connected warehouse. The bundled
write_skill.py script generates a skill directory at
<warehouse>/skills/<name>/ with SKILL.md and an optional PEP 723 script,
then append_pending.py queues it for adoption via abc adopt.
Important: Do NOT write the skill files using your editor tools directly. Always go through
write_skill.py. The script enforces that the directory lands inside the warehouse and refuses to write into the project's symlink mirror at.agentic-beacon/artifacts/skills/.
/record-skill
Or with context:
/record-skill <brief description of the skill to create>
This skill requires a connected warehouse. Verify at the start:
uv run ${SKILL_DIR}/scripts/resolve_warehouse.py
If this command fails with Error: no warehouse connected. Run 'abc warehouse connect <path>' first., stop immediately and surface the error to the user. Do not continue.
Ask the user for (or infer from context if already provided):
deploy-checkdescription:/deploy-check (defaults to /<name>)scripts/<name>.py PEP 723 scaffoldRun the warehouse resolver and capture the path:
WAREHOUSE_ROOT=$(uv run ${SKILL_DIR}/scripts/resolve_warehouse.py)
If the command exits non-zero, surface the stderr output to the user and stop.
requires.contexts from Warehouse ScanRead all context files under $WAREHOUSE_ROOT/contexts/*.md (if any exist).
Based on the skill's name and description, identify which context files are
relevant.
Present the suggestion to the user:
Suggested requires.contexts for "<skill-name>":
- contexts/python-standards.md
Reason: skill relates to Python code patterns
- contexts/testing.md
Reason: skill validates test quality
Options:
1. Accept as-is
2. Edit the list
3. Skip (use empty list)
If no warehouse contexts exist or none are relevant, inform the user and use an empty list without prompting further.
write_skill.pyInvoke the writer to generate the skill directory in the warehouse. This is the only way the SKILL.md and (optional) script are created. Do not use your editor's write tool.
WRITTEN_DIR=$(uv run ${SKILL_DIR}/scripts/write_skill.py \
--name <kebab-name> \
--description "<one-line description>" \
[--invocation "/<name>"] \
[--include-script] \
[--requires-context contexts/<file>.md ...] \
)
The script:
.agentic-beacon/config.toml.<warehouse>/skills/.--overwrite is passed.SKILL.md (with ## Purpose, ## When to Use, ## Invocation,
## Process, ## Examples, ## Checklist placeholders) using the requested
frontmatter.--include-script is set, also creates scripts/<name>.py as a PEP 723
scaffold.skills/deploy-check/).If the script exits non-zero, surface the stderr to the user and stop.
The scaffolded SKILL.md has <!-- ... --> placeholders for the
When to Use, Process, and Examples sections. If the user gave you enough
context to draft these, edit $WAREHOUSE_ROOT/skills/<name>/SKILL.md directly
to replace the placeholders. This is a normal in-place edit on a fully-qualified
warehouse path; your editor's edit tool is fine here.
If the user prefers to fill the body themselves, leave the placeholders as-is and surface that in the completion message.
uv run ${SKILL_DIR}/scripts/append_pending.py \
--path skills/<name>/ \
--type skill \
--action created \
--source record-skill
✅ Skill scaffolded successfully!
Name: <name>
Warehouse path: $WAREHOUSE_ROOT/<written-dir>
Script: [created | not included]
requires.contexts: [list or empty]
Pending entry: added to .agentic-beacon/pending.yaml
Next steps:
1. Edit $WAREHOUSE_ROOT/skills/<name>/SKILL.md to fill in Process and Examples
(if you didn't draft them in Step 5)
2. Run 'abc adopt' to wire this skill into your project
User:
/record-skill
Agent:
deploy-check, description="Validate deployment readiness", invocation=/deploy-check, no script.resolve_warehouse.py.write_skill.py --name deploy-check --description "Validate deployment readiness" → script writes skills/deploy-check/SKILL.md to the warehouse.append_pending.py --path skills/deploy-check/ --type skill --action created --source record-skill.abc adopt to wire it."User:
/record-skill Create a skill that validates Python type annotations
Agent:
validate-types, description="Validate Python type annotations", invocation=/validate-types, yes script.resolve_warehouse.py.contexts/python-standards.md → user accepts.write_skill.py --name validate-types --description "Validate Python type annotations" --include-script --requires-context contexts/python-standards.md → script writes skills/validate-types/SKILL.md and skills/validate-types/scripts/validate-types.py.SKILL.md directly in the warehouse.append_pending.py.abc adopt to wire it."resolve_warehouse.py — STOP if it exits non-zerorequires.contexts (accept / edit / skip)write_skill.py with the appropriate flags — do NOT write SKILL.md or the script with your editor's write toolWhen to Use, Process, Examples placeholders by editing the warehouse SKILL.md in placeappend_pending.py with type: skill action: created source: record-skillabc adoptPEP 723 lets Python scripts declare their own dependencies without a pyproject.toml:
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "requests>=2.31.0",
# ]
# ///
Benefits:
venv/ or pyproject.toml needed per skilluv run script.py anywhereReference: PEP 723 – Inline script metadata
record-knowledge — Capture decisions and lessons into the knowledge baseSkill Version: 2.1.0 Last Updated: 2026-05-07