Token导航 LogoToken导航TokenDH.com
开发只读github未标认证来源可访问许可证需确认审计异常

canonical-format-checker规范格式检查器

Agent Skill

canonical-format-checker 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,082

周安装

46

GitHub Stars

158

下载量

379
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:canonical-format-checker(规范格式检查器)
来源仓库:https://github.com/panaversity/agentfactory
仓库路径:skills/canonical-format-checker
安装命令:
npx skills add https://github.com/panaversity/agentfactory --skill canonical-format-checker
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/panaversity/agentfactory --skill canonical-format-checker

简介

canonical-format-checker 防止内容格式偏离权威源,确保技能文档与已有规范一致。

  • 适用于教学类任务,在Codex、Claude中校验模式是否符合平台既定标准。
  • 自动触发检查,在实现前比对Chapter 5等基准格式,减少知识冲突。
  • 需配合ADR-115等规范文档使用,侧重结构而非语义变更。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Canonical Format Checker

Overview

Prevent format drift by verifying content follows authoritative canonical sources. When teaching a pattern that exists elsewhere in the platform (skills, subagents, ADRs, etc.), this skill ensures the taught format matches the canonical source.

Why this matters: The Chapter 14 format drift failure occurred because the lesson taught skill format differently from Chapter 5 (canonical source). Students learned incorrect patterns that contradicted earlier chapters.

When to Use This Skill

Automatic Triggers (check before implementation):

  • Lesson teaches how to create skills → Check .claude/skills/ structure
  • Lesson teaches how to write subagents → Check .claude/agents/ structure
  • Lesson teaches ADR format → Check specs/*/adrs/ structure
  • Lesson teaches PHR format → Check history/prompts/ structure
  • Lesson teaches specification format → Check specs/*/spec.md structure

Manual Triggers (user requests):

  • "Check canonical format for skills"
  • "Verify format consistency"
  • "Does this match the canonical source?"

Canonical Source Lookup Table

Pattern Being TaughtCanonical Source LocationKey Format Elements
Skills.claude/skills/<name>/SKILL.mdDirectory structure, YAML frontmatter with name, description
Subagents.claude/agents/<name>.mdYAML frontmatter with name, description, model, skills
ADRsspecs/<feature>/adrs/adr-*.mdNumbered files, standard ADR structure
PHRshistory/prompts/<stage>/Template from .specify/templates/phr-template.prompt.md
Specificationsspecs/<feature>/spec.mdSections: Overview, User Stories, FRs, SCs, Evals
Commands.claude/commands/*.mdYAML frontmatter, step-by-step phases

Workflow

Step 1: Identify What Pattern Is Being Taught

Ask yourself:

  • Does this lesson teach how to CREATE any platform pattern?
  • Is there an existing canonical source for this pattern?
Trigger Examples:
- "Lesson teaches students to write their own skills" → Skills pattern
- "Chapter covers custom commands" → Commands pattern
- "Module explains agent creation" → Subagents pattern

Step 2: Locate and Read Canonical Source

MANDATORY: Read the canonical source BEFORE writing or reviewing content.

# For Skills - read actual skill structure
ls .claude/skills/*/
cat .claude/skills/session-intelligence-harvester/SKILL.md

# For Agents - read actual agent structure
ls .claude/agents/
cat .claude/agents/content-implementer.md

# For Commands - read actual command structure
ls .claude/commands/
head -50 .claude/commands/sp.specify.md

Step 3: Extract Format Requirements

Document the required format elements from canonical source:

## Canonical Format: Skills

**Directory Structure**:

.claude/skills/ └── / # Directory, NOT flat file └── SKILL.md # SKILL.md file (uppercase)

**YAML Frontmatter** (REQUIRED):

name: "<skill-name>" description: "This skill should be used when... Use when..."



**Content Structure**:

1. H1 title matching skill name
2. Overview section explaining purpose
3. When to Use section with triggers
4. Workflow section with steps

Step 4: Compare Content Against Canonical

Check the lesson/content for format consistency:

## Format Comparison Checklist

**Skill Format Check**:
- [ ] Shows directory structure (not flat file)
- [ ] Uses SKILL.md filename (not skill.md or index.md)
- [ ] Includes YAML frontmatter with `name` and `description`
- [ ] `description` starts with "This skill should be used when..."

**Agent Format Check**:
- [ ] Shows single .md file in agents directory
- [ ] Includes YAML frontmatter with `name`, `description`, `model`
- [ ] Includes `skills` array (can be empty)
- [ ] Description explains when to invoke

**Command Format Check**:
- [ ] Shows .md file in commands directory
- [ ] Has numbered phases with clear gates
- [ ] Includes enforcement checks

Step 5: Report Drift or Confirm Compliance

If Format Drift Detected:

## Format Drift Detected

**Pattern**: Skills
**Location**: Lesson 7, Section "Creating Your First Skill"

**Issue**: Shows flat file `.claude/skills/my-skill.md`
**Canonical**: Directory structure `.claude/skills/my-skill/SKILL.md`

**Specific Fixes Required**:
1. Line 45: Change `.claude/skills/my-skill.md` to `.claude/skills/my-skill/SKILL.md`
2. Line 52: Update example to show directory creation with `mkdir`
3. Line 60: Add YAML frontmatter example with required fields

**Cross-Reference**: Chapter 5, Lesson 7 (agent-skills.md) is canonical source

If Format Compliant:

## Format Verified

**Pattern**: Skills
**Canonical Source**: `.claude/skills/session-intelligence-harvester/SKILL.md`
**Content Location**: Chapter 14, Lesson 5

**Verification**:
- [x] Directory structure matches canonical
- [x] YAML frontmatter format correct
- [x] Required fields present (name, description)
- [x] Description follows "This skill should be used when..." pattern

**Status**: COMPLIANT - No drift detected

Common Format Drift Patterns

Drift Pattern 1: Flat Files vs Directories

Wrong: .claude/skills/my-skill.md Right: .claude/skills/my-skill/SKILL.md

Drift Pattern 2: Missing YAML Frontmatter

Wrong: Markdown file with no frontmatter Right: YAML frontmatter with required fields

Drift Pattern 3: Wrong Filename

Wrong: skill.md, index.md, README.md Right: SKILL.md (uppercase)

Drift Pattern 4: Missing Required Fields

Wrong: Only name in frontmatter Right: Both name and description (description starts with "This skill should be used when...")

Drift Pattern 5: Inventing New Format

Wrong: Creating custom format not matching canonical Right: Following exact structure from canonical source

Integration Points

Use With:

  • chapter-planner - Check during lesson planning phase
  • content-implementer - Verify before implementation
  • validation-auditor - Include in validation checklist

Invoke When:

  • Planning lessons that teach platform patterns
  • Reviewing content that describes file structures
  • Validating documentation about Claude Code features

Self-Monitoring

Before approving content that teaches patterns:

  • Identified what pattern is being taught
  • Located and READ the canonical source
  • Extracted format requirements from canonical
  • Compared content against canonical requirements
  • Detected drift OR confirmed compliance
  • Provided specific fix instructions if drift found

Success Criteria

You succeed when:

  • Format drift detected BEFORE publication
  • Specific canonical source identified and referenced
  • Exact format requirements documented
  • Content matches canonical source exactly

You fail when:

  • Content teaches incorrect format that contradicts canonical
  • Canonical source not checked before implementation
  • Vague feedback ("fix the format") instead of specific corrections
  • New patterns invented instead of following canonical

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.71%
按下载量换算132

Claude

30.07%
按下载量换算114

Cursor

18.24%
按下载量换算69

Gemini CLI

9.29%
按下载量换算35

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills