diff --git a/plugins/kyberforge/.apm/skills/forge/references/author-routes.md b/plugins/kyberforge/.apm/skills/forge/references/author-routes.md index 6cbb6e0..989addb 100644 --- a/plugins/kyberforge/.apm/skills/forge/references/author-routes.md +++ b/plugins/kyberforge/.apm/skills/forge/references/author-routes.md @@ -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 diff --git a/plugins/kyberforge/.apm/skills/forge/references/sources.md b/plugins/kyberforge/.apm/skills/forge/references/sources.md index b8a9b95..1db9e53 100644 --- a/plugins/kyberforge/.apm/skills/forge/references/sources.md +++ b/plugins/kyberforge/.apm/skills/forge/references/sources.md @@ -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 diff --git a/plugins/kyberforge/.apm/skills/instructions-author/references/content.md b/plugins/kyberforge/.apm/skills/instructions-author/references/content.md index 6d9a976..147d1c2 100644 --- a/plugins/kyberforge/.apm/skills/instructions-author/references/content.md +++ b/plugins/kyberforge/.apm/skills/instructions-author/references/content.md @@ -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? -| 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.