Skip to content
Back to skills

Authoring Instructions

ASecurity

Use when writing, reviewing, updating, shortening, merging, or porting the AGENTS.md project instructions of a repository. Triggers on edits to `AGENTS.md`, bootstrapping instructions for a new repository, refreshing stale instructions to match the files, removing duplicate rules across the repository, copying rules from another project, or turning session lessons into rules, even when the user doesn't say 'instructions' or 'AGENTS.md'.

  • 6 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 30, 2026
ai-agentsgoterraformapidocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned November 30, 2026

npx -y skills add xonovex/platform --skill authoring-instructions --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Authoring Instructions?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Authoring Instructions
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/xonovex-authoring-instructions/badge)](https://www.skillsdirectory.com/skills/xonovex-authoring-instructions)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: authoring-instructions
description: "Use when writing, reviewing, updating, shortening, merging, or porting the AGENTS.md project instructions of a repository. Triggers on edits to `AGENTS.md`, bootstrapping instructions for a new repository, refreshing stale instructions to match the files, removing duplicate rules across the repository, copying rules from another project, or turning session lessons into rules, even when the user doesn't say 'instructions' or 'AGENTS.md'."
---

# Project Instruction Guidelines

Author, refresh, simplify, consolidate, and port AGENTS.md project-instruction files while preserving technology names, paths, and project context.

## Core Principles

- **Open standard**: AGENTS.md is the cross-harness format read by many agent harnesses; keep content harness-neutral
- **README for agents**: operational detail (commands, conventions, gotchas) belongs in AGENTS.md; human-onboarding prose belongs in README.md
- **Teammate heuristic**: "anything you'd tell a new teammate" belongs here; anything you'd tell a casual visitor belongs in README
- **Nested precedence**: for monorepos, the AGENTS.md closest to the edited file wins; place subproject-specific guidance in subdirectories
- **Commands are executable**: agents auto-run programmatic checks listed in AGENTS.md; treat command examples as instructions, not just docs
- **Advisory scope**: AGENTS.md communicates project guidance; it does not itself execute automation
- **Preserve Project Context**: never modify technology names, paths, or commands
- **Match Style and Voice**: maintain the target file's formatting and terminology
- **Structure Integrity**: keep section order and hierarchy intact; preview changes (dry-run) before applying
- **Signal Over Volume**: keep only non-obvious content; anything inferable from `package.json` + source belongs in the code, not the doc
- **Deletion-first editing**: a simplify or consolidate pass cuts at least as much as it adds, and reuses existing vocabulary rather than coining new terms; **authoring-skills** owns this rule
- **Living documentation**: update alongside project changes (sync operation)
- **Lessons of a session**: a project lesson becomes a rule of the nearest AGENTS.md, and reusable guidance goes to its owning skill through **authoring-skills**

## Gotchas

- AGENTS.md files that restate code are worse than no doc. They rot when the code changes
- Tech names look like noise but are essential; never substitute generics for `moon` / `Terraform` / `npm`
- Root AGENTS.md is the project entry-point doc, never auto-delete even if it looks thin
- Manual descriptions in Subdirectories often encode info the filesystem can't (purpose, owner, status): preserve verbatim during sync
- Nested AGENTS.md aren't duplicates. They're scope-specific overrides; never merge a subproject's file into the root
- Build / test commands listed in AGENTS.md will be **executed** by agents; broken commands waste agent turns
- "Always do X" in AGENTS.md enforces nothing. The model may not comply and may never load the file; capitalizing MUST adds no executor, and the failure is silent because the rule never ran

## Progressive Disclosure

- Read [references/init.md](references/init.md) - Load when bootstrapping a fresh AGENTS.md for a directory
- Read [references/sync.md](references/sync.md) - Load when refreshing AGENTS.md to match current filesystem state
- Read [references/simplify.md](references/simplify.md) - Load when condensing a verbose AGENTS.md
- Read [references/consolidate.md](references/consolidate.md) - Load when cleaning up scattered AGENTS.md across a repo
- Read [references/merge.md](references/merge.md) - Load when porting organizational patterns from another project's AGENTS.md
- Read [references/from-a-session.md](references/from-a-session.md) - Load when capturing the lessons of a session, folding them into AGENTS.md, or promoting a lesson to a managed or organization-wide target

Files in this skill

  • SKILL.md3.9 KB
  • eval-output.json6.4 KB
  • eval-trigger.json8.8 KB
  • moon.yml86 B
  • references/consolidate.md2.2 KB
  • references/from-a-session.md3.8 KB
  • references/init.md2.7 KB
  • references/merge.md2.6 KB
  • references/simplify.md1.8 KB
  • references/sync.md3.1 KB
  • sources.json3.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.