Best for
- Creating a new guideline in docs/guidelines/{topic}/{name}.md
- Rewriting an existing guideline (not a typo fix)
- Extracting reference material out of a bloated skill or rule
event4u-app/agent-config/src/skills/guideline-writing/SKILL.md
Use when creating or editing a guideline in docs/guidelines/ — reference material cited by skills, no auto-triggers — even when the user just says 'write up our naming conventions'.
Decision brief
Use when creating or editing a guideline in docs/guidelines/ — reference material cited by skills, no auto-triggers — even when the user just says 'write up our naming conventions'.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/guideline-writing"Inspect the Agent Skill "guideline-writing" from https://github.com/event4u-app/agent-config/blob/0adf49a8ae84b0ff6e2de8759eea43257e020eff/src/skills/guideline-writing/SKILL.md at commit 0adf49a8ae84b0ff6e2de8759eea43257e020eff. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Creating or materially rewriting a guideline must go through Understand → Research → Draft from the artifact-drafting-protocol rule.
Creating a new guideline in docs/guidelines/{topic}/{name}.md Rewriting an existing guideline (not a typo fix) Extracting reference material out of a bloated skill or rule Consolidating repeated explanations from multiple skills
A guideline is reference material. It is never a trigger. It has no description used for routing — skills and rules link to it.
Creating or materially rewriting a guideline must go through Understand → Research → Draft from the artifact-drafting-protocol rule.
Folders under docs/guidelines/:
Permission review
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 89/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 7 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
docs/guidelines/{topic}/{name}.mdDo NOT use this skill when:
rule-writingskill-writingcommand-writing| Intent | Artifact |
|---|---|
| "Here is knowledge skills and rules may cite" | Guideline |
| "Agent must always / never do X" | Rule |
| "When Y happens, run these steps" | Skill |
A guideline is reference material. It is never a trigger. It has no
description used for routing — skills and rules link to it.
Creating or materially rewriting a guideline must go through Understand
→ Research → Draft from the
artifact-drafting-protocol rule.
docs/guidelines/ for overlap and grep
.agent-src.uncondensed/ for pages that already cover the topic.
Analyze 1–2 peer guidelines in the same topic folder for tone.Folders under docs/guidelines/:
| Folder | Contents |
|---|---|
agent-infra/ | Cross-cutting agent-system knowledge (naming, size, output patterns) |
php/ | PHP-specific reference (patterns, services, jobs, resources) |
e2e/ | End-to-end testing patterns |
If none fits, ask the user before creating a new folder.
Guidelines use a minimal frontmatter — no type, no auto-trigger semantics.
---
description: "Short human-readable summary — cited by skills, not used for routing"
source: package # or project for consumer-local guidelines
---
If you do want to polish the description for a guideline whose summary
gets surfaced to agents, delegate to the
description-assist skill — same
approval-gated flow as for skills and rules.
# heading that matches the filename.A guideline is useless if nothing cites it. Before closing the task:
→ See 'docs/guidelines/{topic}/{name}.md' for full X.preservation-guard.)Guidelines have more room than rules but are not dumping grounds.
| Category | Target |
|---|---|
| Ideal | ≤ 200 lines |
| Acceptable | ≤ 400 lines |
| Split signal | > 500 lines |
Above the split signal, break by sub-topic into sibling files in the same folder.
./scripts-run src/scripts/skill_linter docs/guidelines/{topic}/{name}.md
→ 0 FAIL (guidelines have relaxed linting but must still parse).bash scripts/condense.sh --sync → projects updates../scripts-run src/scripts/check_references → no broken links.Taskfile.yml in this repo for
the script list) — must exit 0 except for tolerated warnings.docs/guidelines/{topic}/{name}.mdcheck_references.ts cleanbash scripts/condense.sh --sync confirmationpreservation-guard).Apply the Frugality Charter to every guideline you author.
Examples in this artifact:
Pre-save self-check:
type: or alwaysApply: to the frontmatter.agent-src.uncondensed/guidelines/ — relocated to docs/guidelines/On cloud surfaces (Claude.ai Web, Skills API) the package's
scripts/check_references.ts, scripts/skill_linter.ts, and task
runner are not reachable. The skill still applies — with prose-only
validation:
description only, no type, no
alwaysApply.docs/guidelines/{topic}/{name}.md and run
task sync && task lint-skills && task check-refs locally before
committing.Good guideline name + description:
Path:
docs/guidelines/agent-infra/size-and-scope.mdDescription: "Golden size rules for rules, skills, commands, and guidelines"
Bad:
Path: guidelines/stuff (no topic folder, meaningless stem) Description: "Things to know"
Alternatives
github/awesome-copilot
Create annotated animated GIF demos and screen recordings for pull requests and documentation. Covers frame capture, timing, imageio-based GIF creation, and per-frame annotation workflows.
github/awesome-copilot
Generate a complete Model Context Protocol server project in Swift using the official MCP Swift SDK package.
event4u-app/agent-config
Use when optimizing test suite performance — database setup, seeder optimization, parallel testing, CI pipeline efficiency, or RefreshDatabase alternatives.
K-Dense-AI/scientific-agent-skills
Hardware-agnostic quantum ML framework with automatic differentiation. Use when training quantum circuits via gradients, building hybrid quantum-classical models, or needing device portability across IBM/Google/Rigetti/IonQ. Best for variational algorithms (VQE, QAOA), quantum neural networks, and integration with PyTorch or JAX. For hardware-specific optimizations use qiskit (IBM) or cirq (Google); for open quantum systems use qutip.