Compare commits
6
Commits
git-v1.3.9
...
17d67fbfa9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
17d67fbfa9 | ||
|
|
18fbdbc8e4 | ||
|
|
c2c56ff948 | ||
|
|
3ff0741857 | ||
|
|
8c583b5fd5 | ||
|
|
cacfa1b374 |
No files matched your search
@@ -11,7 +11,7 @@
|
|||||||
{
|
{
|
||||||
"name": "kyberforge",
|
"name": "kyberforge",
|
||||||
"description": "Skills and agents for creating, maintaining, and managing an apm plugin marketplace for Claude Code and GitHub Copilot.",
|
"description": "Skills and agents for creating, maintaining, and managing an apm plugin marketplace for Claude Code and GitHub Copilot.",
|
||||||
"version": "2.0.1",
|
"version": "2.0.2",
|
||||||
"category": "Developer Tools",
|
"category": "Developer Tools",
|
||||||
"source": "./plugins/kyberforge"
|
"source": "./plugins/kyberforge"
|
||||||
},
|
},
|
||||||
|
|||||||
+17
-34
@@ -27,41 +27,24 @@ repos:
|
|||||||
stages: ['pre-commit']
|
stages: ['pre-commit']
|
||||||
- id: pretty-format-json
|
- id: pretty-format-json
|
||||||
stages: ['pre-commit']
|
stages: ['pre-commit']
|
||||||
args: [--autofix]
|
args: [--autofix, --no-sort-keys]
|
||||||
# Every generated manifest lives at a KNOWN path, so every alternative is
|
# `--no-sort-keys` is load-bearing. apm OWNS `.claude/settings.json` and its
|
||||||
# root-anchored and spells that path out. This was five `(^|/)`
|
# `.claude/apm-hooks.json` sidecar (ADR-0018, ADR-0019), and
|
||||||
# any-depth alternatives plus one `^` root-only one -- a mixture with no
|
# `apm audit --ci` replays the install and diffs the result byte-for-byte.
|
||||||
# rationale, under which a fixture or vendored tree containing
|
# apm emits insertion order (`matcher` before `hooks`); the formatter's
|
||||||
# `.../.claude-plugin/marketplace.json` would have been silently excluded
|
# default sorts keys, rewrites that into a form apm would never produce,
|
||||||
# from formatting while an equivalent
|
# and the `apm-audit-ci` pre-push hook then reports drift on a file with
|
||||||
# `.../.agents/plugins/marketplace.json` would not. Only the one root
|
# no git diff (#102, first hit at 2e395a4). Keeping insertion order means
|
||||||
# marketplace manifest matches now; anything else is hand-authored and
|
# those two files need no exclude. Dropping the flag is caught at pre-push
|
||||||
# gets formatted. The twelve per-plugin `plugin.json` alternatives were
|
# by `apm-audit-ci` as drift on `.claude/settings.json`.
|
||||||
# dropped with the plugin manifests themselves when native
|
|
||||||
# `claude plugin install` support was removed (ADR-0024) -- apm probes
|
|
||||||
# `apm.yml` and never reached them. The `.agents/plugins/` and
|
|
||||||
# `.github/plugin/` marketplace mirrors went the same way, and their
|
|
||||||
# alternations went with them: `check-useless-excludes` fails on a
|
|
||||||
# pattern that matches no file.
|
|
||||||
#
|
#
|
||||||
# `.claude/settings.json` and its `.claude/apm-hooks.json` ownership
|
# `.claude-plugin/marketplace.json` is the one remaining exclude. It
|
||||||
# sidecar are the last two alternations, and they are the only ones
|
# round-trips except for non-ASCII: it carries literal em dashes and the
|
||||||
# here for a reason other than "generated manifest":
|
# formatter re-escapes them to `\u2014` (`--no-ensure-ascii` would fix that,
|
||||||
# apm OWNS that file (ADR-0018, ADR-0019), and
|
# but it changes the output for every JSON file). Root-anchored because it
|
||||||
# `apm audit --ci` replays the install into a scratch tree and diffs
|
# is one known path; `check-useless-excludes` fails on a pattern that
|
||||||
# the result byte-for-byte. `pretty-format-json` sorts object keys
|
# matches no file.
|
||||||
# unless `--no-sort-keys` is passed, while apm's hook integrator emits
|
exclude: '^\.claude-plugin/marketplace\.json$'
|
||||||
# insertion order (`matcher` before `hooks`, `type` before `command`).
|
|
||||||
# Formatting the file therefore rewrites apm's output into a form apm
|
|
||||||
# would never produce, and the `apm-audit-ci` pre-push hook reports it
|
|
||||||
# as permanent drift on a file with no git diff -- exactly what
|
|
||||||
# happened when the SessionStart hook first landed in 2e395a4.
|
|
||||||
# Re-running `apm install` fixes the file; leaving it in scope here
|
|
||||||
# would re-break it on the very commit that carries the fix. The
|
|
||||||
# sidecar is committed so a fresh clone's install can claim the
|
|
||||||
# settings entry instead of duplicating it (ADR-0019, 2026-09-16
|
|
||||||
# correction), and it is apm output under the same byte-for-byte replay.
|
|
||||||
exclude: '^(\.claude-plugin/marketplace\.json|\.claude/(settings|apm-hooks)\.json)$'
|
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
stages: ['pre-commit']
|
stages: ['pre-commit']
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
|
|||||||
+1
-1
@@ -128,7 +128,7 @@ Widening a description-opener rule to also catch mid-sentence text looked like a
|
|||||||
|
|
||||||
## 2026-08-14 — A formatter in the commit path manufactures drift on a file with a clean git diff
|
## 2026-08-14 — A formatter in the commit path manufactures drift on a file with a clean git diff
|
||||||
|
|
||||||
`apm audit --ci` failed on `.claude/settings.json` with an empty `git diff` — `pretty-format-json --autofix` silently re-sorts JSON keys, and this generated file was missing from its exclude list, so every commit re-sorted apm's insertion-ordered output before apm compared against it. Separately, a defect introduced 3 hours earlier on the same branch was first mis-described as "pre-existing," an unverified claim about history. Fix: add tool-owned paths to every autofixing hook's exclude the moment ownership is declared, and verify "pre-existing" claims with `git log -S` or `git branch --contains` before writing them down.
|
`apm audit --ci` failed on `.claude/settings.json` with an empty `git diff` — `pretty-format-json --autofix` silently re-sorts JSON keys, and this generated file was missing from its exclude list, so every commit re-sorted apm's insertion-ordered output before apm compared against it. Separately, a defect introduced 3 hours earlier on the same branch was first mis-described as "pre-existing," an unverified claim about history. Fix: add tool-owned paths to every autofixing hook's exclude the moment ownership is declared (for JSON, superseded by #102: `--no-sort-keys` makes the exclude unnecessary), and verify "pre-existing" claims with `git log -S` or `git branch --contains` before writing them down.
|
||||||
|
|
||||||
## 2026-08-16 — A rule reversed inside a retrofit leaves no trace unless someone writes it down (historical)
|
## 2026-08-16 — A rule reversed inside a retrofit leaves no trace unless someone writes it down (historical)
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ dependencies:
|
|||||||
# an apm mechanic.
|
# an apm mechanic.
|
||||||
executables:
|
executables:
|
||||||
allow:
|
allow:
|
||||||
kyberforge#2.0.1:
|
kyberforge#2.0.2:
|
||||||
hooks: true
|
hooks: true
|
||||||
bin: true
|
bin: true
|
||||||
|
|
||||||
|
|||||||
+16
-15
@@ -1279,24 +1279,25 @@ point only). Machine-specific settings go in the gitignored `.claude/settings.lo
|
|||||||
does not deploy and the replay does not compare; shared enforcement belongs in
|
does not deploy and the replay does not compare; shared enforcement belongs in
|
||||||
`.pre-commit-config.yaml`.
|
`.pre-commit-config.yaml`.
|
||||||
|
|
||||||
### Why it is excluded from `pretty-format-json`
|
### Why `pretty-format-json` runs with `--no-sort-keys`
|
||||||
|
|
||||||
It is in the **second and last alternation** in that hook's `exclude:` pattern, and that alternation
|
|
||||||
is the only one there for a reason other than "generated manifest". Mind which number you are
|
|
||||||
quoting: the pattern is `^(\.claude-plugin/marketplace\.json|\.claude/(settings|apm-hooks)\.json)$`
|
|
||||||
— **two top-level alternations, expanding to three real tracked files**:
|
|
||||||
`.claude-plugin/marketplace.json`, this one, and its committed `.claude/apm-hooks.json` sidecar,
|
|
||||||
which is apm output under the same byte-for-byte replay and is excluded for the same reason.
|
|
||||||
|
|
||||||
`pretty-format-json --autofix` sorts object keys unless `--no-sort-keys` is passed, while apm's hook
|
`pretty-format-json --autofix` sorts object keys unless `--no-sort-keys` is passed, while apm's hook
|
||||||
integrator emits insertion order (`matcher` before `hooks`, `type` before `command`). Leaving the
|
integrator emits insertion order (`matcher` before `hooks`, `type` before `command`). In scope with
|
||||||
file in that hook's scope therefore rewrites apm's output into a form apm would never produce on the
|
the default, the formatter rewrites apm's output into a form apm would never produce on the way into
|
||||||
way into **every** commit, and `apm-audit-ci` then reports permanent drift on a file with an empty
|
**every** commit, and `apm-audit-ci` then reports permanent drift on a file with an empty `git diff`
|
||||||
`git diff` — exactly what happened when the `SessionStart` hook first landed in `2e395a4`. Re-running
|
— exactly what happened when the `SessionStart` hook first landed in `2e395a4` (#102).
|
||||||
`apm install` fixes the file; leaving it in scope would re-break it on the very commit carrying the
|
|
||||||
fix.
|
|
||||||
|
|
||||||
**Load-bearing. Do not tidy it out of that list** (see `LESSONS.md`, 2026-08-14).
|
The hook now passes `--no-sort-keys`, so this file and its committed `.claude/apm-hooks.json` sidecar
|
||||||
|
(apm output under the same byte-for-byte replay) need **no exclude**: the formatter's default 2-space
|
||||||
|
indent already matches apm's, and with insertion order kept they round-trip untouched. No dedicated
|
||||||
|
test pins this: dropping `--no-sort-keys` surfaces at pre-push as `apm-audit-ci` drift on
|
||||||
|
`.claude/settings.json`, which is the same gate that caught the original failure.
|
||||||
|
|
||||||
|
**Load-bearing. Do not remove `--no-sort-keys`.** `.claude-plugin/marketplace.json` is the one path
|
||||||
|
still in that hook's `exclude:`: it carries literal em dashes that the formatter re-escapes to
|
||||||
|
`\u2014`, which `--no-ensure-ascii` would stop but for every JSON file. This closes the JSON case
|
||||||
|
only; a new tool-owned file in the scope of another autofixer is still caught only by `apm-audit-ci`
|
||||||
|
drift after the fact, not by a derived gate.
|
||||||
|
|
||||||
## Pushing without a network
|
## Pushing without a network
|
||||||
|
|
||||||
|
|||||||
@@ -1,31 +1,27 @@
|
|||||||
---
|
---
|
||||||
name: forge
|
name: forge
|
||||||
description: >
|
description: >
|
||||||
Use when the user wants to build or improve something but has not yet named
|
Use when the user wants to build or improve something without naming the
|
||||||
the artifact type — skill, agent, plugin, or marketplace entry; "not sure if
|
artifact type ("not sure if this should be a skill or a plugin"). Not a named
|
||||||
this should be a skill or a plugin", "I have an idea but don't know where it
|
skill -> `skill-author`. Not a named agent -> `agent-author`. Not a named
|
||||||
belongs". Routes to the matching author skill. Do not use when the type is
|
plugin -> `apm-workflow`.
|
||||||
already named — invoke `skill-author`, `agent-author` or `apm-workflow`
|
|
||||||
directly.
|
|
||||||
metadata:
|
metadata:
|
||||||
version: "1.0.1"
|
version: "1.0.2"
|
||||||
category: factory
|
category: factory
|
||||||
source_keys:
|
source_keys:
|
||||||
- claude-code-subagents-docs
|
- claude-code-subagents-docs
|
||||||
- context7-websites-code-claude
|
|
||||||
- agentskills-spec
|
- agentskills-spec
|
||||||
---
|
---
|
||||||
|
|
||||||
## Gotchas
|
## Gotchas
|
||||||
|
|
||||||
- forge is an optional guided entry point, not a gate — `skill-author`, `agent-author`, `factory-audit` and `apm-workflow` all stay directly invokable, and forge never intercepts a direct call to one.
|
- forge is an optional guided entry point, not a gate — `skill-author`, `agent-author`, `factory-audit` and `apm-workflow` all stay directly invokable, and forge never intercepts a direct call to one.
|
||||||
- Claude Code's skill-level `context: fork` frontmatter field and the `/fork` subagent command are opposites despite the shared word: `context: fork` isolates (fresh context, no parent access), while `/fork` inherits the full conversation. The route reference each classification loads spends that distinction: `references/author-routes.md` chooses between the two, `references/apm-routes.md` rules the fork out.
|
|
||||||
|
|
||||||
## Step 1 — Grill the intent
|
## Step 1 — Grill the intent
|
||||||
|
|
||||||
Call `grill-with-docs` unless a grill session has already run and is available in the context.
|
Call `grill-with-docs` unless a grill session has already run and is available in the context.
|
||||||
|
|
||||||
`grill-with-docs` ships in a sibling plugin that kyberforge does not declare as an apm dependency, so it resolves in the authoring monorepo but can be absent where kyberforge is installed alone. If it does not resolve, grill inline yourself rather than skipping the step: what problem the artifact solves, who invokes it and how, what it must refuse, and which existing skill or plugin already owns part of the job. Say which path you took.
|
`grill-with-docs` ships in a sibling plugin kyberforge does not declare as an apm dependency, so it can be absent where kyberforge is installed alone. If it does not resolve, grill inline yourself rather than skipping the step: what problem the artifact solves, who invokes it and how, what it must refuse, and which existing skill or plugin already owns part of the job. Say which path you took.
|
||||||
|
|
||||||
Grilling regularly overturns the artifact type assumed at the start, or splits one idea into several artifacts, so it runs before classification rather than confirming it. Run it inline in the current conversation — grilling is interactive and a subagent cannot hold the back-and-forth.
|
Grilling regularly overturns the artifact type assumed at the start, or splits one idea into several artifacts, so it runs before classification rather than confirming it. Run it inline in the current conversation — grilling is interactive and a subagent cannot hold the back-and-forth.
|
||||||
|
|
||||||
@@ -42,7 +38,7 @@ Match the grilled intent against exactly one row — or more than one, if the in
|
|||||||
|
|
||||||
The table classifies what to build, not how to run it: a one-off task that merely needs an isolated or context-inheriting run is not an artifact and has no row here. If the intent stays genuinely ambiguous between rows after grilling, ask the user rather than guessing.
|
The table classifies what to build, not how to run it: a one-off task that merely needs an isolated or context-inheriting run is not an artifact and has no row here. If the intent stays genuinely ambiguous between rows after grilling, ask the user rather than guessing.
|
||||||
|
|
||||||
A real artifact that matches no row — a hook, an MCP server, an AGENTS.md, a research doc — has no route here. Say so, hand the user the skill that does own it, and never bend it into a row to make the table fit.
|
An artifact that matches no row — a hook, an MCP server, an AGENTS.md, a research doc — has no route here. Say so, hand the user the skill that owns it, and never bend it into a row.
|
||||||
|
|
||||||
When the intent spans several rows, chain the routes in dependency order — an artifact that must exist on disk before another skill can target it goes first, so `apm-workflow` scaffolds the plugin directory before `skill-author` scaffolds a skill inside it.
|
When the intent spans several rows, chain the routes in dependency order — an artifact that must exist on disk before another skill can target it goes first, so `apm-workflow` scaffolds the plugin directory before `skill-author` scaffolds a skill inside it.
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
source_keys:
|
source_keys:
|
||||||
- claude-code-subagents-docs
|
- claude-code-subagents-docs
|
||||||
|
- context7-websites-code-claude
|
||||||
---
|
---
|
||||||
|
|
||||||
# Routing a skill or agent to its author skill
|
# Routing a skill or agent to its author skill
|
||||||
@@ -10,6 +11,13 @@ definition. Route a skill to `skill-author` and an agent to `agent-author`. The
|
|||||||
differ on the author skill only — both verify the result with `factory-audit`, which detects the
|
differ on the author skill only — both verify the result with `factory-audit`, which detects the
|
||||||
artifact type itself — and everything below applies to both.
|
artifact type itself — and everything below applies to both.
|
||||||
|
|
||||||
|
## Gotcha: `context: fork` is not `/fork`
|
||||||
|
|
||||||
|
Claude Code's skill-level `context: fork` frontmatter field and the `/fork` subagent command are
|
||||||
|
opposites despite the shared word: `context: fork` isolates (fresh context, no parent access),
|
||||||
|
while `/fork` inherits the full conversation. The fork-versus-inline choice below is about `/fork`.
|
||||||
|
`references/apm-routes.md` rules the fork out entirely.
|
||||||
|
|
||||||
## Choose fork or inline
|
## Choose fork or inline
|
||||||
|
|
||||||
Default to a **fork subagent**. It inherits the full grilled-intent conversation, so the author
|
Default to a **fork subagent**. It inherits the full grilled-intent conversation, so the author
|
||||||
|
|||||||
@@ -12,8 +12,8 @@
|
|||||||
|
|
||||||
- **URL:** context7:/websites/code_claude
|
- **URL:** context7:/websites/code_claude
|
||||||
- **Research doc:** plugins/kyberforge/docs/research/docs/claude-code-plugins/sources.md
|
- **Research doc:** plugins/kyberforge/docs/research/docs/claude-code-plugins/sources.md
|
||||||
- **Description:** Official Claude Code documentation site indexed by Context7 — confirms the `context: fork` skill-level frontmatter field means isolated/fresh execution, the opposite of what the `/fork` subagent command does (inherits conversation). Informs the Gotchas entry in `SKILL.md` warning against conflating the two; nothing else in this skill draws on it, and no `references/` file mentions the `context: fork` field.
|
- **Description:** Official Claude Code documentation site indexed by Context7 — confirms the `context: fork` skill-level frontmatter field means isolated/fresh execution, the opposite of what the `/fork` subagent command does (inherits conversation). Informs the `context: fork` gotcha in `references/author-routes.md` warning against conflating the two; nothing else in this skill draws on it.
|
||||||
- **Contributing files:** SKILL.md
|
- **Contributing files:** references/author-routes.md
|
||||||
- **Status:** `extracted`
|
- **Status:** `extracted`
|
||||||
|
|
||||||
## claude-code-plugins-docs
|
## claude-code-plugins-docs
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
name: kyberforge
|
name: kyberforge
|
||||||
version: 2.0.1
|
version: 2.0.2
|
||||||
description: Skills and agents for creating, maintaining, and managing an apm plugin marketplace for Claude Code and GitHub Copilot.
|
description: Skills and agents for creating, maintaining, and managing an apm plugin marketplace for Claude Code and GitHub Copilot.
|
||||||
author:
|
author:
|
||||||
name: Defame1297
|
name: Defame1297
|
||||||
|
|||||||
Reference in new issue
Block a user