refactor(kyberforge): move artifact-type choice from instructions-author to forge

Deciding whether guidance is a rule, a procedure or something to enforce is
forge's classification job. instructions-author keeps only a stop condition.

Refs #148

Co-Authored-By: Claude Code <[email protected]>
Claude-Session: https://claude.ai/code/session_01KkT7RSDwDbmrM9T34b6sTi
This commit is contained in:
Defame1297andClaude Code committed 2026-10-14 06:59:49 +00:00
1 parent 68fa2abb62
commit a92320a189
3 files changed
+23 -9

No files matched your search

@@ -2,6 +2,7 @@
source_keys: source_keys:
- claude-code-subagents-docs - claude-code-subagents-docs
- context7-websites-code-claude - context7-websites-code-claude
- claude-code-memory-docs
--- ---
# Routing a skill, agent or instructions file to its author skill # 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 an instructions file is verified by `instructions-author`'s own throwaway-package check and the
clean-context rerun below is skipped for it. 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` ## Gotcha: `context: fork` is not `/fork`
Claude Code's skill-level `context: fork` frontmatter field and the `/fork` subagent command are 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 - **Contributing files:** references/author-routes.md
- **Status:** `extracted` - **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 ## claude-code-plugins-docs
- **URL:** https://code.claude.com/docs/en/plugins - **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. - Anything stated in another file that loads alongside this one. Two copies drift, and contradictory rules are followed arbitrarily.
- Generalities ("write clean code"). - Generalities ("write clean code").
## Right artifact? ## Not a rule?
| The content is | Put it in | 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.
|---|---|
| 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.