agentleFS
EndogenAIEndogenAI/dogma/.github/skills/skill-authoring/SKILL.md

skill-authoring

Skill2 starsChanged 9 months agoApache-2.0View on GitHub

Encodes conventions for authoring SKILL.md files in .github/skills/<name>/: YAML frontmatter, required headings, issue linkage, governance metadata, and CI validation. USE FOR: creating or modifying reusable domain-specific skills; understanding skill vs agent distinction; packaging procedural knowledge for cross-agent use. DO NOT USE FOR: agent file authoring (use agent-file-authoring skill); creating new agents (use that skill first); general VS Code settings questions.

58 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use observability, incident-response and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • OpenAISkill

    observability

    Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.

    Also in 7 projects that use this

  • AnthropicSkill

    incident-response

    Run an incident response workflow — triage, communicate, and write postmortem. Trigger with "we have an incident", "production is down", an alert that needs severity assessment, a status update mid-incident, or when writing a blameless postmortem after resolution.

    Also in 5 projects that use this

  • JohnJBorenSkill

    ci-cd

    CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies

    Also in 3 projects that use this

  • jacobraskSkill

    knowledge-base

    Manage your personal knowledge base of curated resources, bookmarks, and excerpts. Triggers include "knowledge base", "kb", "add to knowledge", "add tabs to", "what do I have on", "what do we know about", "find resources about". Use with safari-tabs skill for bulk ingestion from Safari windows. Location is ~/knowledge/.

    Also in 3 projects that use this

  • UnitOneAISkill

    threat-modeling

    Runs a structured STRIDE threat model on any system design, API specification, or codebase. Auto-invoked when the user discusses architecture, shares a system diagram or design document, or asks "what could go wrong?" Produces threat actor profiles, component-threat matrix, a threat register with STRIDE classification, data-flow diagram template, trust boundary identification, and prioritized mitigations mapped to MITRE ATT&CK techniques.

    Also in 3 projects that use this

  • ElasticSkill

    accessibility

    Accessibility guidance for Kibana. Use this skill when working with or reviewing EUI components, resolving a11y-related (@elastic/eui) ESLint issues, and ensuring proper use of ARIA attributes, focus management, keyboard interactions, and accessible naming conventions.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 9 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 52 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every skill file must open with YAML frontmatter:

    line 35
  2. Distinctive:

    Every skill file must contain at least one of each:

    line 81
  3. Distinctive:

    Discipline rule for Endogenous Sources section: Always encode:

    line 89
  4. Distinctive:

    Extraction test: If a procedure in an agent body would benefit a *different* agent or tool without requiring that agent's posture or …

    line 131
  5. Distinctive:

    Every skill file must contain at least one back-reference to the foundational document that governs it:

    line 170
  6. Distinctive:

    Use this template structure for new skills:

    line 215
  7. Distinctive:

    Before committing a new or modified skill:

    line 274
  8. Distinctive:

    Do not add a skill without running the CI linter and passing all checks

    line 302
  9. Distinctive:

    Do not introduce a procedure that is not grounded in an existing AGENTS.md principle or a prior-art pattern

    line 303

“Common” is measured: kept by at least 6 in 10 of the 52 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

SKILL.md Authoring

This skill enacts the Endogenous-First axiom from MANIFESTO.md: skills are re-encodings of documented procedures and patterns from AGENTS.md, not independent inventions.

Skills are tactical-layer knowledge artifacts that encode how a task is done. They sit beneath agents (who encode who does a task) and above session behavior.


1. File Naming and Location

  • Location: .github/skills/<skill-name>/SKILL.md
  • Slug format: kebab-case, lowercase, e.g. deep-research-sprint, pr-review-reply, session-management
  • One skill per domain — do not combine multiple domain procedures into a single skill file

To create a new skill, create the directory .github/skills/<skill-name>/ and add a SKILL.md file. You can copy an existing SKILL.md as a starting point — for example:

cp .github/skills/source-caching/SKILL.md .github/skills/<skill-name>/SKILL.md

Then update the frontmatter and sections according to the conventions in this document.


2. YAML Frontmatter

Every skill file must open with YAML frontmatter:

---
name: <skill name in kebab-case>
description: |
  <Clear description of what this skill encodes — ≥25 characters>
  USE FOR: [bullet list of appropriate use cases]
  DO NOT USE FOR: [bullet list of what this skill explicitly excludes]
argument-hint: "usage hint shown in chat input box"
---

Field requirements:

FieldRequiredConstraint
nameYesKebab-case, lowercase
descriptionYes≥ 25 characters, includes USE FOR / DO NOT USE FOR
argument-hintOptionalBrief input suggestion for the user

Discipline fields (encode project governance):

---
name: deep-research-sprint
description: "Orchestrates ..."

# Optional — encode milestone/effort/applicability
tier: Foundation                          # Which milestone this skill applies to
type: research                            # Type: research | feature | scripting | automation | tooling | validation
effort: L                                 # Effort for practitioner to execute: s/m/l/xl
applies-to:                               # Which agent roles use this skill
  - Executive Researcher
  - Research Scout
status: active                            # Status: active | beta | deprecated | blocked
requires:                                 # Dependencies on other skills or tools
  - name: source-caching
    description: "Must cache sources before scouting"
---

3. Required Sections

Every skill file must contain at least one of each:

CategoryAccepted heading variantsPurpose
Endogenous SourcesEndogenous Sources, Sources, Reference, ContextDeclare governing axioms, link to issues/patterns, citation chain
Core Procedure/WorkflowWorkflow, Steps, Procedure, How ToDefine the task sequence
Quality-gate/CompletionCompletion Criteria, Done When, Acceptance Criteria, ValidationState what "executed correctly" looks like

Discipline rule for Endogenous Sources section: Always encode:

  1. The governing axiom this skill enacts (from MANIFESTO.md)
  2. The pattern or GitHub issue this skill implements (e.g., #45 Research: Product Definition)
  3. Which agents and tools depend on this skill
  4. Citation chain to foundational documents

Example Beliefs & Context:

## Beliefs & Context

This skill enacts the *Endogenous-First* axiom from [`MANIFESTO.md`](../../../MANIFESTO.md) by encoding the complete research sprint workflow as a reusable procedure.

**Implements**: The research orchestration pattern from issue [#45 (Research: Product Definition)](https://github.com/EndogenAI/dogma/issues/45)

**Used by**:
- Executive Researcher (orchestrates fleet)
- Research Scout (gathers sources)
- Research Synthesizer (transforms findings)
- Research Reviewer (validates output)
- Research Archivist (commits deliverables)

**Foundation documents**:
- [`AGENTS.md`](../../../AGENTS.md) — governance constraints
- [`docs/guides/deep-research.md`](../../../docs/guides/deep-research.md) — full investigation methodology
- [`docs/research/methodology-review.md`](../../../docs/research/methodology/methodology-review.md) — prior art survey

4. Skill vs Agent — Composition Rule

When to create a skill (not an agent):

SignalDecision
Procedure needed by 1 agent only; unique postureCreate as agent body — embed procedure
Procedure needed by 2+ different agents/tools; no posture dependencyExtract to skill — reference from agents
Tactical workflow; could benefit multiple roles; tool-agnosticSkill is appropriate
Authorization/oversight required; must gate executionAgent with Review handoff is appropriate

Extraction test: If a procedure in an agent body would benefit a different agent or tool without requiring that agent's posture or handoff logic, move it to a skill and reference it from both agents.


5. Link Path Rule

All links in skill files that exit .github/skills/<name>/ must use ../../../ relative paths. This is consistent with the agent file convention (../../ for depth-2 files) and ensures VS Code's prompts-diagnostics-provider can resolve them.

/-rooted paths (e.g. /AGENTS.md) resolve to the OS filesystem root on macOS, not the workspace root — they produce VS Code Problems panel errors.

.github/skills/my-skill/SKILL.md
  │
  ├─ ../              → .github/skills/   ← WRONG (wrong target)
  ├─ ../../           → .github/          ← WRONG (wrong target)
  ├─ /AGENTS.md       → OS filesystem root ← WRONG (resolves to /AGENTS.md on macOS)
  └─ ../../../        → (repo root)       ← CORRECT (depth 3 from repo root)

Correct usage for skills:

[`MANIFESTO.md`](../../../MANIFESTO.md)
[`AGENTS.md`](../../../AGENTS.md)
[`docs/guides/agents.md`](../../../docs/guides/agents.md)
[`.github/agents/README.md`](../../agents/README.md)

Within-directory links (to sibling files in .github/skills/<name>/) remain relative:

[`./other-file.md`](./other-file.md)   ← same directory: OK

This convention is enforced by the no-absolute-path-links-in-agent-files pre-commit hook.


6. Cross-Reference Density

Every skill file must contain at least one back-reference to the foundational document that governs it:

  • Pure procedural skills → reference AGENTS.md
  • Research-oriented skills → reference MANIFESTO.md (Endogenous-First axiom)
  • Automation/scripting skills → reference AGENTS.md § Programmatic-First

Minimum pattern (place in Endogenous Sources):

This skill enacts the *<Axiom Name>* axiom from [`MANIFESTO.md`](../../../MANIFESTO.md).
It is governed by [`AGENTS.md`](../../../AGENTS.md) and associated procedural guidelines.

7. Encoding Inheritance Declaration

The skill's first substantive section must ground it in the encoding chain:

## Beliefs & Context

This skill enacts the *<Axiom>* axiom from [`MANIFESTO.md`](../../../MANIFESTO.md).

**Implements**: [Pattern or issue reference]

**Governed by**: [`AGENTS.md`](../../../AGENTS.md) § [relevant section]

Read [`docs/guides/agents.md`](../../../docs/guides/agents.md) before modifying this skill.

Governing axioms by skill type:

Skill typeGoverning axiom(s)
Research proceduresEndogenous-First
Scripting / automationAlgorithms Before Tokens
Documentation / synthesisEndogenous-First
Validation / testingAlgorithms Before Tokens
Multi-phase orchestrationEndogenous-First + Algorithms Before Tokens

8. Completeness Template

Use this template structure for new skills:

---
name: <skill-name>
description: |
  <Clear description>
  
  USE FOR: [bullet list]
  DO NOT USE FOR: [bullet list]
argument-hint: "<usage hint>"

# Governance metadata
tier: <Foundation|Wave 1|Wave 2|...>
type: <research|feature|scripting|automation|tooling|validation>
effort: <s|m|l|xl>
applies-to:
  - <Agent Name>
status: active
---

# <Skill Title>

## Beliefs & Context

[Declare axioms, pattern, dependent agents, foundational docs]

---

## <Core Workflow/Procedure>

[Step-by-step instructions, code examples, decision trees]

---

## <Quality Gate/Completion Criteria>

[What constitutes successful execution]

---

## Guardrails

- [Never do X]
- [Always do Y]

9. No Heredocs in Skill Bodies

Like agents, skill files must not contain cat >> file << 'EOF' patterns or inline Python heredoc writes in example steps.

Instead: Instruct practitioners to use create_file (new files) or replace_string_in_file (edits) — both are safe for Markdown content.


10. Validate Before Committing

Before committing a new or modified skill:

uv run python scripts/validate_agent_files.py --skills
# To validate a single skill:
uv run python scripts/validate_agent_files.py .github/skills/<skill-name>/SKILL.md

Pre-commit checklist:

  • ✅ Frontmatter has all required fields (name, description with USE FOR / DO NOT USE FOR)
  • ✅ Optional governance fields present (tier, type, effort, applies-to, status)
  • ✅ All repo-root paths use ../../../ prefix (not ../../)
  • ✅ Endogenous Sources declares governing axiom
  • ✅ Endogenous Sources references defining issue or pattern
  • ✅ Completion Criteria section defines success
  • ✅ No heredoc patterns in workflow steps
  • ✅ All cross-references to foundational docs are correct links
  • ✅ No orphaned or broken internal links

Guardrails

  • Never use ../../ for repo-root references in skills — always ../../../ (one extra level up from agents)
  • Never omit the Endogenous Sources section — encoding fidelity depends on it
  • Never combine multiple domains in one skill — one skill per bounded domain
  • Never create a skill without understanding the agent(s) that will use it — ask yourself: which agents will benefit from this?
  • Do not add a skill without running the CI linter and passing all checks
  • Do not introduce a procedure that is not grounded in an existing AGENTS.md principle or a prior-art pattern

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.