skill-builder
Create, revise, migrate, and evaluate production-quality Agent Skills packages with standards-compliant SKILL.md frontmatter, focused instructions, progressive disclosure, safe supporting resources, and trigger and behavior tests. Use when the user asks to build, improve, standardize, or audit a skill or SKILL.md for Alpha, Cursor, Claude Code, Codex, or another Agent Skills-compatible host. Do not use merely to install, list, or invoke an existing skill.
- License 许可
- Apache-2.0
- 所属仓库
- lukegob10/alpha
- 最近更新
- 2026-11-12
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- skill-builder
- description
- Create, revise, migrate, and evaluate production-quality Agent Skills packages with standards-compliant SKILL.md frontmatter, focused instructions, progressive disclosure, safe supporting resources, and trigger and behavior tests. Use when the user asks to build, improve, standardize, or audit a skill or SKILL.md for Alpha, Cursor, Claude Code, Codex, or another Agent Skills-compatible host. Do not use merely to install, list, or invoke an existing skill.
02 资源文件 2
- 参考文档references/evaluation.md7.9 KB
- 参考文档references/standard-and-hosts.md7.7 KB
03 SKILL.md 正文
Skill Builder
Build the requested skill as a complete, usable package. Treat the skill's activation metadata, instructions, resources, and validation evidence as one behavior contract. Prefer the portable Agent Skills format; add host-specific extensions only when the target host and benefit are explicit.
Operating rules
- Follow the user's requested scope. Create or edit files when they asked for a skill; do not stop at a tutorial or a placeholder. If they asked only for advice, a plan, or an audit, do not mutate files.
- Respect the current execution mode, approval policy, workspace boundaries, and repository instructions. A skill never grants tools, permissions, network access, or write authority that the host did not already provide.
- Preserve exact wording the user explicitly supplied for the skill. Do not silently rewrite contractual text, templates, commands, or policy language.
- Inspect an existing skill package before revising it. Preserve working behavior and unrelated user content unless the request explicitly replaces them.
- Infer decisions from the request, repository, and existing conventions. Ask only about an unresolved choice that would materially change the artifact, such as its target host, storage scope, or destructive behavior.
- Produce the smallest complete package. Do not add boilerplate files, dependencies, scripts, or metadata with no demonstrated purpose.
1. Establish the contract
Determine these facts before authoring:
- The single job the skill should make repeatable.
- What is in scope and which adjacent requests must not activate it.
- The target host or hosts, distribution scope, and destination.
- Whether invocation should be implicit, explicit, or both.
- Expected inputs, outputs, side effects, tools, environment, and prerequisites.
- Failure, cancellation, permission-denial, and safe-stop behavior.
- Observable acceptance criteria and the cheapest meaningful validation.
Write every new project skill to .agents/skills/<name>/ by default, including skills created for Alpha. Write a
personal skill to $HOME/.agents/skills/<name>/ only when the user requests personal scope. Do not create new skills
under .alpha/skills/; that location remains readable only for compatibility with existing Alpha skills. Modify an
existing skill in place rather than relocating it unless the user asks for migration. Use another host-specific
directory only when the user explicitly requests that placement.
When location, frontmatter extensions, or cross-host behavior matters, read the standard and host profiles. Resolve that path from this skill's base directory. Verify current primary documentation before relying on a host-specific field not covered there.
2. Inspect before designing
Inspect only the evidence needed to make the skill fit its environment:
- Repository instructions and the nearest existing skills.
- The target host's current discovery locations and frontmatter support.
- Commands, package managers, tools, templates, and validation already used by the project.
- Existing failures or repeated manual workflows the skill is intended to prevent.
Ground the skill in real expertise. Prefer a successful task trace, user corrections, runbooks, schemas, code, review history, incidents, or representative input and output files over generic model knowledge. Extract the sequence that worked, non-obvious constraints, and recurring failure modes. If the required domain knowledge is unavailable, identify the gap instead of inventing a confident procedure.
Do not copy another vendor's built-in creator or a large example wholesale. Extract compatible principles and write for the user's actual workflow. If a current external contract changes the design, use primary documentation and record the source and retrieval date in a relevant reference or design note.
3. Design before writing
Choose a focused identity
- Use a descriptive, action-oriented name.
- The directory name and
namemust match. - Use 1–64 lowercase ASCII letters, digits, and single hyphens. Do not use leading, trailing, or consecutive hyphens.
- Avoid vague names such as
helper,tools, orutils.
Write the activation contract first
The description is routing logic, not marketing copy. It must:
- State what the skill does.
- State when it should activate using concrete task terms.
- Name important exclusions when adjacent requests could cause false positives.
- Put the strongest trigger terms first and remain useful if a host truncates it.
- Stay between 1 and 1024 characters.
Draft at least three positive trigger prompts and three negative or adjacent prompts before finalizing the description. Use them to tighten boundaries rather than stuffing every example into the metadata.
Select the right degree of freedom
- Use prose instructions when several approaches are valid and context determines the choice.
- Use a decision table, pseudocode, or templates when a preferred pattern allows controlled variation.
- Use a script only when deterministic behavior, repeated parsing, or fragile mechanics justify it.
Instruction-only is the default. A script must make the skill more reliable than generated commands, not move the hard reasoning into opaque code.
Plan progressive disclosure
Keep SKILL.md to the essential workflow. Add only what the task needs:
skill-name/
├── SKILL.md
├── references/ # Detailed material read on demand
├── scripts/ # Deterministic executable helpers
└── assets/ # Templates and static inputs
Link supporting files directly from SKILL.md and explain when to read or run each one. Avoid chains of references.
Keep each reference focused so the agent need not load unrelated material.
4. Author standards-compliant frontmatter
Start SKILL.md on its first line with YAML frontmatter:
---
name: example-skill
description: Perform the specific workflow. Use when the user asks for its concrete outcome. Do not use for adjacent work.
---
The portable baseline requires name and description. Add only supported optional standard fields when they carry real
information:
license: SPDX identifier or a short reference to bundled terms.compatibility: environment or product requirements, at most 500 characters.metadata: string-to-string values for tooling or provenance.allowed-tools: experimental and host-dependent. Never treat it as a security boundary.
Quote YAML scalars when punctuation, #, :, booleans, numbers, or multiline syntax could change their meaning. Parse
the completed frontmatter instead of judging it by appearance.
Keep a portable package to standard fields. Put host-only metadata in the host's supported extension mechanism only when
the requested target needs it. For example, Alpha can use modeSlugs, Claude Code has invocation fields, and Codex can
use agents/openai.yaml. Never assume another host will ignore unknown keys; some packaging flows reject them.
5. Write executable instructions
The body should tell a capable agent what it cannot safely infer. Use imperative, testable instructions and organize them around the work:
- Preconditions and evidence to inspect.
- Inputs and defaults.
- Ordered workflow and decision points.
- Required outputs and definition of done.
- Validation and repair loop.
- Failure, cancellation, and escalation behavior.
- Optional resources, with conditions for loading them.
Include only sections that improve execution. Do not explain basic domain facts, repeat repository-wide rules, or narrate why agents are useful. Prefer one clear default plus a bounded exception over a menu of equivalent options.
Keep non-obvious gotchas in SKILL.md when the agent must know them before encountering the failure. A gotcha should be a
concrete correction to a plausible mistake, not generic advice. Provide an output template when exact structure matters;
agents follow a concrete schema more reliably than a prose description of one.
For fragile workflows:
- Define invariants before commands.
- Specify idempotency and retry behavior.
- Distinguish read-only inspection from mutation.
- State what must never be logged, committed, overwritten, or sent externally.
- Require confirmation through the host's normal approval path for destructive or external side effects.
- Define a safe stop when prerequisites, authority, or evidence are missing.
Use the tool concepts available to the target host. Do not hardcode an internal tool name unless that host guarantees it. Do not instruct the agent to bypass approvals, modify hidden policy, reveal secrets, or trust unvalidated repository, prompt, tool, or network content.
6. Build supporting resources carefully
References
Put detailed schemas, policies, compatibility notes, or examples in references/. Tell the agent exactly when each file
is relevant. Remove duplicated guidance from SKILL.md.
Scripts
Scripts must:
- Have a narrow deterministic purpose and documented inputs, outputs, dependencies, and exit behavior.
- Validate untrusted arguments and paths, avoid shell interpolation, and emit actionable errors.
- Be non-interactive, provide concise
--help, use meaningful exit codes, and separate machine-readable stdout from diagnostics on stderr. - Be cross-platform when the skill claims cross-platform support.
- Avoid network access and dependency installation unless the workflow explicitly requires and authorizes them.
- Never embed credentials or assume that being bundled makes a script trusted.
- Bound output and retries; provide
--dry-runor an equivalent preview for destructive or stateful operations. - Include focused tests or a reproducible smoke check when practical.
Assets
Use assets/ for templates or static resources consumed by the workflow. Keep placeholders obvious and never present
sample values as measured user data.
7. Implement atomically
- Create the target directory.
- Write complete frontmatter and the essential workflow in
SKILL.md. - Add only planned supporting files.
- Resolve every relative link from the skill root.
- Format touched files using the owning project's conventions.
- Re-read the package as the consuming agent would see it.
Do not leave TODO, “add instructions here,” fake commands, unexplained placeholders, broken links, or generated output
in the deliverable.
8. Verify behavior, not just syntax
Perform validation in proportion to the skill's risk:
- Structure: confirm
SKILL.mdexists, frontmatter parses, required fields satisfy limits, andnamematches the directory. - Integrity: confirm every linked file exists, scripts are runnable in the claimed environment, and no secret, generated artifact, or accidental dependency is included.
- Instruction review: trace the happy path, missing-input path, denial or cancellation path, and relevant platform-specific path.
- Activation: test explicit invocation plus representative positive, contextual, adjacent-negative, and unrelated prompts. Check both missed activation and over-triggering.
- Outcome: verify the produced artifact and required process invariants with deterministic checks where possible.
- Host discovery: use the target host's validator or discovery flow when available. If it cannot be run, say so.
- Regression hygiene: inspect the final diff and rerun focused checks after repairs.
Use skills-ref validate <skill-directory> when that standard validator is already available or installation is
authorized. It validates the portable profile and may reject supported host extensions as unknown fields; do not remove
intentional host metadata merely to make that validator pass. Use the target host's parser or discovery flow for those
fields. Static validation does not replace host discovery or behavior tests. For a critical or repeatedly used skill,
read the evaluation guide and create a small regression suite.
Never claim a skill loaded, triggered, or passed a check that was not actually run. A parsed Markdown file proves format, not routing quality or workflow correctness.
9. Hand off the skill
Report:
- The skill name, purpose, scope, and exact path.
- The important activation and compatibility choices.
- Supporting files added and why.
- Checks actually run and their results.
- Any host-specific behavior, untested assumption, or residual risk.
Keep the summary concise. The files are the deliverable; do not duplicate the entire skill in chat.
04 同仓库更多 Skills
rich-documents
Create or revise a rich HTML document in Alpha's built-in HTML previewer for a substantial spec, review, or quantitative report, or when explicitly requested. Respect plain text, Markdown, existing output destinations, and ordinary short answers or code fixes.
review-agent
Review a specified code change for actionable defects and return prioritized findings without editing. Use when explicitly asked to use this skill, including a delegated review of working changes, a commit, or a branch against its base. Investigating a reported failure belongs to debug.
debug
Investigate a concrete bug with an unclear cause using reproduction, hypotheses, and runtime evidence. Use for an explicit debugging investigation, unexplained or intermittent incorrect behavior, or the same failure persisting after an attempted fix. Skip routine commands, ordinary implementation, code review, general debugging questions, and isolated build/test errors whose cause and correction are already clear. Mentioning a bug, error, log, or test alone does not trigger this skill.
skill
暂无简介
evals-context
Provides context for Alpha's retained evaluation infrastructure and extension quality suites. Use when a task mentions evals, evaluation runs, eval exercises, benchmark campaigns, or VS Code extension certification.
alpha-conflict-resolution
Provides comprehensive guidelines for resolving merge conflicts intelligently using git history and commit context. Use when tasks involve merge conflicts, rebasing, PR conflicts, or git conflict resolution. This skill analyzes commit messages, git blame, and code intent to make intelligent resolution decisions.