Agent Skillstheopenco/llmgateway › skill-authoring

skill-authoring

GitHub

用于创建、更新和审计仓库本地 Agent Skill,确保指令与代码库一致。适用于新增技能、审查过时内容或验证路径命令的有效性。

.agents/skills/skill-authoring/SKILL.md theopenco/llmgateway

Trigger Scenarios

添加或编辑 .agents/skills 目录下的文件 审查技能是否存在过时指令 验证技能路径、命令及工作流是否真实存在

Install

npx skills add theopenco/llmgateway --skill skill-authoring -g -y
More Options

Non-standard path

npx skills add https://github.com/theopenco/llmgateway/tree/main/.agents/skills/skill-authoring -g -y

Use without installing

npx skills use theopenco/llmgateway@skill-authoring

指定 Agent (Claude Code)

npx skills add theopenco/llmgateway --skill skill-authoring -a claude-code -g -y

安装 repo 全部 skill

npx skills add theopenco/llmgateway --all -g -y

预览 repo 内 skill

npx skills add theopenco/llmgateway --list

SKILL.md

Frontmatter
{
    "name": "skill-authoring",
    "description": "Create, update, and audit repository-local agent skills against the current LLM Gateway codebase. Use when adding or editing files under .agents\/skills or .claude\/skills, reviewing a skill for stale instructions, or checking that skill paths, commands, cross-references, and workflows actually exist."
}

Skill authoring

Write only instructions that are necessary and proven. Treat prompts, old skills, and remembered workflows as leads, not evidence.

Establish the source of truth

  1. Read AGENTS.md and the files that implement the workflow.

  2. Inventory both .agents/skills and .claude/skills, including hidden files and symlink targets. Keep the implementation in .agents/skills; expose every skill to Claude with a symlink.

  3. Classify every operational claim before retaining it:

    • Repository fact: prove it with the current tree using rg or by reading the implementation.
    • Repository command: prove the script and package exist, then run a safe help or validation command when flags or behavior matter.
    • External API or product fact: use current authoritative documentation or a live non-destructive probe.
    • Machine capability: check it locally and state it as a precondition; never present one machine's installed tools or authentication behavior as a universal fact.

If a claim cannot be verified, remove it or label the exact check the agent must perform at runtime. Never invent a missing skill, tool, port, command, or path to bridge a workflow gap.

Create or edit the skill

  • Keep YAML frontmatter to name and description. Put all trigger phrases in the description.
  • Keep the body concise and imperative. Link to AGENTS.md instead of copying large procedures that will drift.
  • Use exact repository paths only after resolving them. Use placeholders only where the agent must choose a value.
  • Keep cross-skill references repository-local unless the dependency is optional and checked at runtime.
  • Add scripts only for repeated deterministic work. Run every added script.
  • Remove unused references and assets.

Validate

Run the repository skill audit from the repository root:

node .agents/skills/skill-authoring/scripts/check-skills.mjs

Then run the standard skill validator for each new or structurally changed skill when it is available, followed by pnpm format and the build required by AGENTS.md.

Review the final diff once more. Each instruction should have a concrete source: repository code, a command result, authoritative documentation, or an explicit runtime precondition.

Version History

  • 8fdff5b Current 2026-08-16 07:59

Same Skill Collection

.agents/skills/add-model/SKILL.md
.agents/skills/blog/SKILL.md
.agents/skills/changelog/SKILL.md
.agents/skills/core-web-vitals/SKILL.md
.agents/skills/knowledge-base/SKILL.md
.agents/skills/migrations/SKILL.md
.agents/skills/pull-request/SKILL.md
.agents/skills/verify/SKILL.md
.claude/skills/verify/SKILL.md

Metadata

Files
0
Version
8fdff5b
Hash
98ed006f
Indexed
2026-08-16 07:59

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-16 20:47
浙ICP备14020137号-1 $mapa de visitantes$