feat(kyberforge): add instructions-author skill for .apm/instructions files #154

Merged
Defame1297 merged 7 commits from feat/148-instructions-author into main 2026-10-15 07:04:43 +00:00
3 changed files with 23 additions and 9 deletions
Showing only changes of commit a92320a189 - Show all commits

No files matched your search

@@ -2,6 +2,7 @@
source_keys:
- claude-code-subagents-docs
- context7-websites-code-claude
- claude-code-memory-docs
---
# Routing a skill, agent or instructions file to its author skill
@@ -13,6 +14,18 @@ everything below applies to all three — except that `factory-audit` has no ins
an instructions file is verified by `instructions-author`'s own throwaway-package check and the
clean-context rerun below is skipped for it.
## Rule, procedure or enforcement?
Before routing guidance to `instructions-author`, check what the content is. Claude reads an
instruction as context, not as enforced configuration, so only a rule belongs there.
| The content is | Route |
|---|---|
| A rule for part of the codebase, or a short every-session rule | Instructions file (`instructions-author`) |
| A rule for every session in every tool, kept as prose | `AGENTS.md` (`agentsmd-author`); no row here |
| A multi-step procedure or one task's guidance | Skill (`skill-author`) |
| Something that must run at a fixed point or be blocked | A hook or a `permissions.deny` setting; no row here, so hand the user the owner and do not bend it into a rule |
## Gotcha: `context: fork` is not `/fork`
Claude Code's skill-level `context: fork` frontmatter field and the `/fork` subagent command are
@@ -16,6 +16,14 @@
- **Contributing files:** references/author-routes.md
- **Status:** `extracted`
## claude-code-memory-docs
- **URL:** https://code.claude.com/docs/en/memory
- **Research doc:** plugins/kyberforge/docs/research/docs/microsoft-apm/sources.md (digest: plugins/kyberforge/docs/research/docs/microsoft-apm/instructions-target-mapping.md)
- **Description:** Claude Code memory documentation. Grounds the "Rule, procedure or enforcement?" table in `references/author-routes.md`: instructions are context rather than enforced configuration, multi-step procedures belong in skills, and enforcement belongs in hooks or `permissions.deny`.
- **Contributing files:** references/author-routes.md
- **Status:** `extracted`
## claude-code-plugins-docs
- **URL:** https://code.claude.com/docs/en/plugins
@@ -29,13 +29,6 @@ Group related bullets under a short heading. Give the reason when a rule looks a
- Anything stated in another file that loads alongside this one. Two copies drift, and contradictory rules are followed arbitrarily.
- Generalities ("write clean code").
## Right artifact?
## Not a rule?
Defame1297 marked this conversation as resolved Outdated
Outdated
Review

Does this section belong in the instruction skill? Or in the forge skill?

Does this section belong in the instruction skill? Or in the forge skill?
Outdated
Review

Agreed, it belongs in forge. Moved in a92320a: forge's references/author-routes.md now has a "Rule, procedure or enforcement?" table (instructions file, AGENTS.md, skill, hook or permissions.deny), with a matching claude-code-memory-docs entry in forge's references/sources.md. instructions-author/references/content.md keeps only a short "Not a rule?" stop condition. No version bump needed, since forge and instructions-author are already above merge-base in this PR.

Agreed, it belongs in forge. Moved in a92320a: forge's `references/author-routes.md` now has a "Rule, procedure or enforcement?" table (instructions file, AGENTS.md, skill, hook or `permissions.deny`), with a matching `claude-code-memory-docs` entry in forge's `references/sources.md`. `instructions-author/references/content.md` keeps only a short "Not a rule?" stop condition. No version bump needed, since forge and instructions-author are already above merge-base in this PR.
| The content is | Put it in |
|---|---|
| A rule for part of the codebase | This file, with a quoted `applyTo` |
| A rule for every session | This file without `applyTo`, or `AGENTS.md` (`agentsmd-author`) |
| A multi-step procedure or one task's guidance | A skill (`skill-author`) |
| Something that must run at a fixed point or be blocked | A hook, or a `permissions.deny` setting; an instruction is not enforcement |
If the answer is not this file, say so to the user and stop; do not bend the content into a rule.
A multi-step procedure belongs in a skill, and something that must be enforced belongs in a hook or a `permissions.deny` setting. If the content is one of those, say so to the user and stop; do not bend it into a rule.