askill
new-spec

new-specSafety 100Repository

Write or reformat an AI agent specification (rule, skill, or command) using RFC 2119 requirement language

12 stars
1.2k downloads
Updated 2/20/2026

Package Files

Loading files...
SKILL.md

Write or reformat an AI agent specification file using RFC 2119 key words (MUST, SHOULD, MAY, etc.) to express requirement levels with precise semantics.

Specification files include rules, skills, and commands. All three use RFC 2119 key words to define requirements.

See ~/.ai-guidelines/rules/rfc2119.md for the full key word definitions.

Step 1: Determine Document Type and Mode

Ask the user two things:

  1. Document type — what kind of specification to create or reformat:

    • Rule — a policy or constraint that governs agent behavior
    • Skill — a Claude skill that defines a reusable workflow (SKILL.md)
    • Command — an Augment command that defines a reusable workflow (.md)
  2. Mode — whether to create or reformat:

    • Create — write a new specification from scratch
    • Reformat — update an existing file to use RFC 2119 language

If the user provided arguments when invoking the skill, infer both:

  • If the argument looks like a file path, use reformat mode and read the file to determine the document type
  • Otherwise, treat the argument as a description and ask for the document type

Step 2: Gather Input

Create Mode

For Rules

Ask the user to describe:

  • What behavior the rule governs
  • Which agents it applies to (all agents, Claude only, Augment only)
  • Any specific requirements they want included

For Skills

Ask the user to describe:

  • The skill's name (used in frontmatter and directory name)
  • What the skill does (one-sentence description for frontmatter)
  • The workflow steps the skill should follow
  • Any tools or resources the skill needs access to

For Commands

Ask the user to describe:

  • The command's name (used as the filename)
  • What the command does (one-sentence description for frontmatter)
  • The workflow steps the command should follow

Reformat Mode

Read the existing file. Identify:

  • The current structure and intent
  • Ad-hoc emphasis patterns to convert (e.g., "NEVER" → MUST NOT, "ALWAYS" → MUST, "Do NOT" → MUST NOT, "CRITICAL" → MUST)
  • Requirements that lack clear severity levels

Step 3: Write the Specification

Use the appropriate structure template based on the document type.

Rule Structure

# <Title>

<One-sentence purpose statement describing what this rule governs.>

## <Section>

<Group requirements logically by topic. Within each section, use RFC 2119 key words to express requirement levels.>

### Examples (if helpful)

<Provide examples showing correct and incorrect behavior.>

Skill Structure

---
name: <skill-name>
description: <One-sentence description of what this skill does>
---

<Introductory paragraph explaining the skill's purpose and when to use it.>

## Step 1: <Step Title>

<Step description using RFC 2119 key words for requirements.>

## Step 2: <Step Title>

<Step description using RFC 2119 key words for requirements.>

...additional steps as needed...

Command Structure

---
description: <One-sentence description of what this command does>
---

<Introductory paragraph explaining the command's purpose and when to use it.>

## Step 1: <Step Title>

<Step description using RFC 2119 key words for requirements.>

## Step 2: <Step Title>

<Step description using RFC 2119 key words for requirements.>

...additional steps as needed...

Formatting Guidelines

  • Use RFC 2119 key words in bold to indicate requirement levels
  • Organize requirements from strictest (MUST/MUST NOT) to most permissive (MAY)
  • Each requirement SHOULD be a single, clear statement
  • Use bullet lists for related requirements under a common heading
  • Include examples when the requirement might be ambiguous
  • Keep the specification concise — prefer fewer precise statements over many vague ones

Key Word Selection Guide

IntentKey Word
Absolute requirement, no exceptionsMUST
Absolute prohibition, no exceptionsMUST NOT
Strong recommendation, exceptions need justificationSHOULD
Strong discouragement, exceptions need justificationSHOULD NOT
Truly optional, either choice is validMAY

Common Conversions from Ad-Hoc Patterns

Ad-hoc patternRFC 2119 equivalent
NEVER, Do NOT, CRITICALMUST NOT
ALWAYS, REQUIREDMUST
Prefer, Recommended, Try toSHOULD
Avoid, DiscouragedSHOULD NOT
Can, Optionally, If desiredMAY

Step 4: Determine File Location

Based on the document type and target audience:

Rules

AudienceDirectory
All AI agents (Claude + Augment)~/.ai-guidelines/rules/
Claude only~/.claude/rules/
Augment only~/.augment/rules/

Chezmoi source paths:

  • managed/dot_ai-guidelines/rules/
  • managed/private_dot_claude/rules/
  • managed/dot_augment/rules/

Skills

AgentTargetChezmoi Source
Claude~/.claude/skills/<name>/SKILL.mdmanaged/private_dot_claude/skills/<name>/SKILL.md
Augment~/.augment/skills/<name>/SKILL.mdmanaged/dot_augment/skills/<name>/SKILL.md

Commands

LocationPath
Target~/.augment/commands/<name>.md
Chezmoi sourcemanaged/dot_augment/commands/<name>.md

Step 5: Present for Approval

Display the formatted specification in full and ask the user to review it before writing to disk.

Include:

  • The complete specification content
  • The target file path
  • A note that the user can request changes before writing

Only write the file after the user approves.

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

82/100Analyzed 2/24/2026

High-quality technical skill for writing AI agent specifications using RFC 2119 keyword language. Well-structured with 5 detailed steps, comprehensive templates for rules/skills/commands, and useful tables for keyword selection and pattern conversion. Despite being tailored to the user's dotfiles (internal path), the methodology is sound and reusable. Tags improve discoverability. Slight penalty for path indicating internal-only config, but content quality is strong."

100
90
65
90
95

Metadata

Licenseunknown
Version-
Updated2/20/2026
Publishermacintacos

Tags

github-actionsllm