@techgoblin/gobstack 0.6.0-alpha.4 → 0.6.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +59 -0
- package/README.md +249 -116
- package/VERSION +1 -1
- package/bans/README.md +5 -5
- package/bans/grep-ban.sh +1 -1
- package/bin/goblin-bans +103 -27
- package/bin/goblin-init +345 -259
- package/bin/goblin-install +269 -213
- package/bin/goblin-lib.sh +63 -66
- package/bin/goblin-map +130 -579
- package/bin/goblin-mcp.js +9 -14
- package/bin/goblin-verify +411 -993
- package/bin/goblin.js +4 -9
- package/docs/CURATION-2026-11-07-gobigrams.md +223 -0
- package/docs/GUIDE.md +727 -179
- package/docs/LIMITS.md +297 -301
- package/docs/RECORD-NOTES.md +1 -2
- package/manifest/bans.tsv +9 -9
- package/manifest/categories.tsv +18 -0
- package/manifest/enforcement.tsv +14 -67
- package/manifest/glossary.tsv +6 -12
- package/manifest/library.tsv +33 -0
- package/package.json +1 -4
- package/skills/goblin-bootstrap/SKILL.md +20 -32
- package/skills/goblin-feature-map/SKILL.md +1 -1
- package/skills/goblin-handoff/SKILL.md +5 -0
- package/skills/goblin-verify-author/SKILL.md +14 -2
- package/skills/practice/SKILL.md +4 -4
- package/templates/AGENTS.md.tmpl +6 -6
- package/templates/HANDOFF.md.tmpl +8 -6
- package/templates/SPEC.md.tmpl +2 -2
- package/templates/agents-block.tmpl +1 -10
- package/adapters/_template/adapter.tsv +0 -16
- package/adapters/_template/detect.sh +0 -10
- package/adapters/_template/emit.sh +0 -5
- package/adapters/_template/verify.sh +0 -4
- package/adapters/claude/adapter.tsv +0 -8
- package/adapters/claude/detect.sh +0 -8
- package/adapters/claude/verify.sh +0 -47
- package/adapters/codex/adapter.tsv +0 -12
- package/adapters/codex/detect.sh +0 -9
- package/adapters/codex/verify.sh +0 -45
- package/adapters/copilot/adapter.tsv +0 -10
- package/adapters/copilot/detect.sh +0 -8
- package/adapters/copilot/verify.sh +0 -45
- package/adapters/cursor/adapter.tsv +0 -11
- package/adapters/cursor/detect.sh +0 -10
- package/adapters/cursor/verify.sh +0 -45
- package/adapters/gemini/adapter.tsv +0 -15
- package/adapters/gemini/detect.sh +0 -11
- package/adapters/gemini/verify.sh +0 -49
- package/adapters/hermes/adapter.tsv +0 -9
- package/adapters/hermes/detect.sh +0 -8
- package/adapters/hermes/verify.sh +0 -27
- package/adapters/opencode/adapter.tsv +0 -14
- package/adapters/opencode/detect.sh +0 -9
- package/adapters/opencode/verify.sh +0 -45
- package/automations/README.md +0 -53
- package/automations/bugreporter-intake.sh +0 -145
- package/automations/drift-audit.sh +0 -139
- package/automations/report.schema.tsv +0 -10
- package/bin/goblin +0 -144
- package/bin/goblin-audit +0 -143
- package/bin/goblin-doctor +0 -233
- package/bin/goblin-emit +0 -495
- package/bin/goblin-extras +0 -365
- package/bin/goblin-model +0 -105
- package/bin/goblin-upgrade +0 -580
- package/docs/ADOPTION.md +0 -173
- package/docs/CI.md +0 -190
- package/docs/CONTRACTS.md +0 -218
- package/docs/DESIGN.md +0 -92
- package/docs/ENFORCEMENT.md +0 -228
- package/docs/FLOWS.md +0 -164
- package/docs/GLOSSARY.md +0 -40
- package/docs/GUARDRAILS.md +0 -126
- package/docs/INTEGRATION.md +0 -92
- package/docs/LOOP.md +0 -165
- package/docs/RE-PLAYBOOK.md +0 -183
- package/docs/RISKS.md +0 -70
- package/docs/ROLES.md +0 -105
- package/extras-catalogue/catalogue.tsv +0 -42
- package/extras-catalogue/payload/README.md +0 -14
- package/extras-catalogue/payload/taste-skill/taste/REFERENCE.md +0 -3
- package/extras-catalogue/payload/taste-skill/taste/SKILL.md +0 -9
- package/manifest/classes.tsv +0 -51
- package/manifest/playbooks.tsv +0 -16
- package/presets/electron-overlay.yaml +0 -38
- package/presets/fleet.yaml +0 -43
- package/presets/game.yaml +0 -38
- package/presets/research.yaml +0 -41
- package/presets/service.yaml +0 -40
- package/presets/software.yaml +0 -48
- package/roles.yaml +0 -54
- package/skills/goblin-bugfix/SKILL.md +0 -26
- package/skills/goblin-bugreporter/SKILL.md +0 -52
- package/skills/goblin-drift-audit/SKILL.md +0 -43
- package/skills/goblin-eval/SKILL.md +0 -68
- package/skills/goblin-feature/SKILL.md +0 -26
- package/skills/goblin-investigation/SKILL.md +0 -26
- package/skills/goblin-judge/SKILL.md +0 -74
- package/skills/goblin-loop/SKILL.md +0 -88
- package/skills/goblin-mode/SKILL.md +0 -70
- package/skills/goblin-overnight/SKILL.md +0 -42
- package/skills/goblin-pr-gate/SKILL.md +0 -42
- package/skills/goblin-re-mobile/SKILL.md +0 -51
- package/skills/goblin-refactor/SKILL.md +0 -23
- package/skills/goblin-sweep/SKILL.md +0 -23
- package/skills/goblin-tdd-repro/SKILL.md +0 -27
- package/templates/audit-waiver.tsv.tmpl +0 -10
- package/templates/install-hooks.allowlist.tmpl +0 -9
- package/templates/report.yaml.tmpl +0 -16
package/templates/AGENTS.md.tmpl
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# AGENTS.md
|
|
2
2
|
|
|
3
|
-
This repository uses **gobstack** (
|
|
3
|
+
This repository uses **gobstack** (installed {{DATE}}). It is a pointer,
|
|
4
4
|
not a rule dump — the rules live in one executable place, and facts beat requirements.
|
|
5
5
|
|
|
6
6
|
- **Harness entry point:** `.gob/bin/goblin-verify` — exit 0 pass, 1 a check failed,
|
|
@@ -8,16 +8,16 @@ not a rule dump — the rules live in one executable place, and facts beat requi
|
|
|
8
8
|
same run.
|
|
9
9
|
- **Rules and their checks:** `.gob/manifest/enforcement.tsv` (one row per rule; every row
|
|
10
10
|
carries a runnable check or the literal `advisory`).
|
|
11
|
-
- **Forbidden code (the ban list):** `.gob/bin/goblin-bans` runs the bans
|
|
12
|
-
|
|
11
|
+
- **Forbidden code (the ban list):** `.gob/bin/goblin-bans` runs the bans whose `applies_when`
|
|
12
|
+
glob matches a real file in this tree; each ban's mechanism lives in `.gob/manifest/bans.tsv`.
|
|
13
|
+
To turn one off, name it in `bans_disabled:` in this file's gob block. Run it before
|
|
13
14
|
you write the line, not after — a ban is a gate, and `goblin-verify` only reports it once the
|
|
14
15
|
code exists.
|
|
15
16
|
- **Session state:** `HANDOFF.md` at the repo root. Read it before touching anything.
|
|
16
17
|
- **Project config:** the `<!-- gob:begin --> … <!-- gob:end -->` block in this file
|
|
17
|
-
(
|
|
18
|
+
(gates, ratchet, runtime data, replay, opt-outs). Edit it in place; the
|
|
18
19
|
installer never rewrites the block after the first install and never touches the prose.
|
|
19
20
|
- **The referenced standard**, if configured, is named by `practice:` in the gob block.
|
|
20
21
|
Read it before starting work; this repo carries no copy of it.
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
mapping file named by `models_file:`), and it does not write outside its own tree.
|
|
23
|
+
One thing this repo does not do: it does not write outside its own tree.
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# HANDOFF — the session-boundary contract. A new worker reads this FIRST.
|
|
2
2
|
|
|
3
3
|
> Template. Written once by goblin-install and never overwritten. Update it every round:
|
|
4
|
-
> every gate number carries `measured <date>`, the State line names the current HEAD,
|
|
5
|
-
> NOT verified section is non-empty or says "nothing outstanding"
|
|
4
|
+
> every gate number carries `measured <date>`, the State line names the current HEAD, the
|
|
5
|
+
> NOT verified section is non-empty or says "nothing outstanding", and every Next-steps
|
|
6
|
+
> bullet is owned with a date, done with evidence, or cancelled with a date and the
|
|
7
|
+
> decision (HP-06).
|
|
6
8
|
|
|
7
9
|
## ▶ START HERE (new session)
|
|
8
10
|
|
|
@@ -14,7 +16,7 @@
|
|
|
14
16
|
|
|
15
17
|
## State
|
|
16
18
|
|
|
17
|
-
-
|
|
19
|
+
- goblin-stack installed {{DATE}}.
|
|
18
20
|
- HEAD when this file was written: `{{HEAD}}`
|
|
19
21
|
- In flight: nothing yet.
|
|
20
22
|
- Done: the harness is installed.
|
|
@@ -30,10 +32,10 @@ Every number here is a measurement with a date, never a copy from a previous rou
|
|
|
30
32
|
|
|
31
33
|
## Next steps
|
|
32
34
|
|
|
33
|
-
- Replace the default gate with this project's real commands (playbook P8 step 3).
|
|
34
|
-
- Write the first round's SPEC (`*-SPEC.md`) before any code moves (playbook P3).
|
|
35
|
+
- Replace the default gate with this project's real commands (playbook P8 step 3) — owner: you, since {{DATE}}.
|
|
36
|
+
- Write the first round's SPEC (`*-SPEC.md`) before any code moves (playbook P3) — owner: you, since {{DATE}}.
|
|
35
37
|
- Write the first asserting harness in the harness dir, and pin its pre-change commit so
|
|
36
|
-
`replay.commit` can be set (playbook P6, then HS-02).
|
|
38
|
+
`replay.commit` can be set (playbook P6, then HS-02) — owner: you, since {{DATE}}.
|
|
37
39
|
|
|
38
40
|
## NOT verified
|
|
39
41
|
|
package/templates/SPEC.md.tmpl
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# ROUND-000-SPEC — <one line: what this round changes>
|
|
2
2
|
|
|
3
|
-
> Template. Written once by goblin-install for
|
|
3
|
+
> Template. Written once by goblin-install for a project that requires a SPEC, then never
|
|
4
4
|
> overwritten. Write one per round BEFORE implementation, and commit it with — or before —
|
|
5
5
|
> the code it describes: an untracked `*-SPEC.md` is lost by a run that dies.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Written {{DATE}}
|
|
8
8
|
|
|
9
9
|
## Measured root cause
|
|
10
10
|
|
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
<!-- gob:begin (gobstack config — edit in place; the parser reads only this block) -->
|
|
2
|
-
class: {{CLASS}}
|
|
3
|
-
electron: {{ELECTRON}}
|
|
4
|
-
branch: {{BRANCH}}
|
|
5
|
-
models_file: {{MODELS_FILE}}
|
|
6
2
|
practice: {{PRACTICE}}
|
|
7
3
|
practice_sha256: {{PRACTICE_SHA}}
|
|
8
|
-
owner_email: {{OWNER_EMAIL}}
|
|
9
4
|
archive: {{ARCHIVE}}
|
|
10
5
|
max_dirty: {{MAX_DIRTY}}
|
|
11
6
|
advisory_ceiling: {{ADVISORY_CEILING}}
|
|
12
7
|
security.gitignore_family: {{SEC_GITIGNORE_FAMILY}}
|
|
13
8
|
security.build_output: {{SEC_BUILD_OUTPUT}}
|
|
14
|
-
security.audit_cmd: {{SEC_AUDIT_CMD}}
|
|
15
|
-
security.audit_max_age_days: {{SEC_AUDIT_MAX_AGE}}
|
|
16
|
-
security.waiver_max_age_days: {{SEC_WAIVER_MAX_AGE}}
|
|
17
9
|
security.write_routes: {{SEC_WRITE_ROUTES}}
|
|
18
10
|
perf.metric: {{PERF_METRIC}}
|
|
19
11
|
perf.cmd: {{PERF_CMD}}
|
|
@@ -28,14 +20,13 @@ source_root: {{SOURCE_ROOT}}
|
|
|
28
20
|
verify_doctor: {{VERIFY_DOCTOR}}
|
|
29
21
|
reference_manifest: {{REFERENCE_MANIFEST}}
|
|
30
22
|
quarantine_root: {{QUARANTINE_ROOT}}
|
|
31
|
-
loop_max_turns_ceiling: {{LOOP_MAX_TURNS}}
|
|
32
23
|
gate_{{GATE1_NAME}}_cmd: {{GATE1_CMD}}
|
|
33
24
|
gate_{{GATE2_NAME}}_cmd: {{GATE2_CMD}}
|
|
34
25
|
ratchet.name: {{RATCHET_NAME}}
|
|
35
26
|
ratchet.cmd: {{RATCHET_CMD}}
|
|
36
27
|
ratchet.ceiling: {{RATCHET_CEILING}}
|
|
37
28
|
runtime_data: [{{RUNTIME_DATA}}]
|
|
38
|
-
|
|
29
|
+
bans_disabled: [{{BANS_DISABLED}}]
|
|
39
30
|
bans_exempt:
|
|
40
31
|
layers:
|
|
41
32
|
replay.env: {{REPLAY_ENV}}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# adapters/_template/adapter.tsv — W4A-SPEC §2. One row per adapter, tab-separated, header first.
|
|
2
|
-
# Columns:
|
|
3
|
-
# 1 id ^[a-z]+$, matches the directory name and --platform spelling
|
|
4
|
-
# 2 display human name in doctor output
|
|
5
|
-
# 3 detect_any ':'-separated paths (~ ok) and bare binary names; ANY hit => DETECTED
|
|
6
|
-
# 4 skills_path_project project-scope skill path pattern, relative to the repo (<name> slot)
|
|
7
|
-
# 5 skills_path_global global-scope skill path pattern (<name> slot)
|
|
8
|
-
# 6 context_path the context-injection file emit manages with a marker block ("-" = none)
|
|
9
|
-
# 7 docs_url the platform doc page the shapes came from
|
|
10
|
-
# 8 docs_read ISO date the URL was last verified (LIMITS #15 practice; an absent
|
|
11
|
-
# or empty cell is an unfilled PROBE-REQUIRED value => doctor DRIFT)
|
|
12
|
-
# 9-13 cap_skills cap_context_injection cap_command_blocking cap_marketplace cap_post_compaction
|
|
13
|
-
# yes|no|partial — the plan §3.3 capability matrix, as data.
|
|
14
|
-
# A malformed row (wrong column count, bad enum, id != directory, missing docs_read) is DRIFT
|
|
15
|
-
# by definition (R3): a capability table that cannot parse cannot be trusted.
|
|
16
|
-
id display detect_any skills_path_project skills_path_global context_path docs_url docs_read cap_skills cap_context_injection cap_command_blocking cap_marketplace cap_post_compaction
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# adapters/_template/detect.sh — the W5+ detection stub (W4A-SPEC §1).
|
|
3
|
-
#
|
|
4
|
-
# A template that silently
|
|
5
|
-
# exited 0 would make an unbuilt adapter look installed, so it refuses with 2
|
|
6
|
-
# and names the work — the same posture as the W1 doctor/emit placeholders.
|
|
7
|
-
# W4b built cursor/opencode/codex/gemini from copies of this directory; any
|
|
8
|
-
# future name copied from here must be measured before its row is filled.
|
|
9
|
-
printf 'detect: template adapter - not implemented (copy adapters/_template and fill in the anchors)\n' >&2
|
|
10
|
-
exit 2
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# adapters/_template/emit.sh — W5+ stub. Refuses until the adapter is built (the W4a
|
|
3
|
-
# precedent: a template that silently exited 0 would make an unbuilt adapter look real).
|
|
4
|
-
printf 'emit: template adapter - not implemented (copy adapters/_template and fill in the anchors)\n' >&2
|
|
5
|
-
exit 2
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# adapters/claude/adapter.tsv - W4A-SPEC SS2/SS8 P1. Shapes from Claude Code's own docs
|
|
2
|
-
# (code.claude.com/docs/en/skills + /memory, read 2026-09-29): skills are <name>/SKILL.md under
|
|
3
|
-
# .claude/skills/ (project) and ~/.claude/skills/ (personal), name+description frontmatter
|
|
4
|
-
# required to index; project memory is repo-root CLAUDE.md (the docs' project-instructions
|
|
5
|
-
# location; .claude/CLAUDE.md is listed as an alternate). settings.json and hooks are
|
|
6
|
-
# deliberately untouched (W4A-SPEC SS10.3).
|
|
7
|
-
id display detect_any skills_path_project skills_path_global context_path docs_url docs_read cap_skills cap_context_injection cap_command_blocking cap_marketplace cap_post_compaction
|
|
8
|
-
claude Claude Code ~/.claude:claude .claude/skills/<name>/SKILL.md ~/.claude/skills/<name>/SKILL.md CLAUDE.md https://code.claude.com/docs/en/skills 2026-09-29 yes full yes no yes
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# adapters/claude/detect.sh — the detection contract (W4A-SPEC §3).
|
|
3
|
-
# Prints the detected anchor on stdout; exits 0 present / 1 absent.
|
|
4
|
-
# Side-effect-free, offline, read-only. DETECTED iff ~/.claude/ exists or `claude` is on PATH.
|
|
5
|
-
set -u
|
|
6
|
-
[ -d "${HOME:-}/.claude" ] && { printf '%s\n' "${HOME}/.claude"; exit 0; }
|
|
7
|
-
if command -v claude >/dev/null 2>&1; then printf '%s\n' "$(command -v claude)"; exit 0; fi
|
|
8
|
-
exit 1
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# adapters/claude/verify.sh — the DRIFT oracle (W4A-SPEC §7). Re-emits the context block
|
|
3
|
-
# to a scratch buffer and cmps against the on-disk block; checks every emitted skill is
|
|
4
|
-
# byte-identical to the source payload. No engine invocation, no network. Exit 0 clean,
|
|
5
|
-
# 1 drift (names the path), 2 cannot run. Env: GOBLIN_DOCTOR_TARGET (default $PWD).
|
|
6
|
-
set -uo pipefail
|
|
7
|
-
SELF_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
8
|
-
SRC=$(cd "$SELF_DIR/../.." && pwd)
|
|
9
|
-
TARGET="${GOBLIN_DOCTOR_TARGET:-$PWD}"
|
|
10
|
-
VERSION=$(cat "$SRC/VERSION" 2>/dev/null || printf 'unknown')
|
|
11
|
-
CF="$TARGET/CLAUDE.md"
|
|
12
|
-
SKROOT="$TARGET/.claude/skills"
|
|
13
|
-
bad=0
|
|
14
|
-
|
|
15
|
-
# the block: the on-disk goblin block must byte-equal what emit writes now at this VERSION
|
|
16
|
-
if [ -f "$CF" ] && grep -qF '<!-- goblin-stack:begin' "$CF"; then
|
|
17
|
-
EXPECT=$(awk -v b="<!-- goblin-stack:begin" -v e="<!-- goblin-stack:end" '
|
|
18
|
-
index($0,b){inb=1; print; next} inb{print} index($0,e){exit}' "$CF")
|
|
19
|
-
WANT=$(printf '<!-- goblin-stack:begin v%s -->\n' "$VERSION")
|
|
20
|
-
WANT="$WANT
|
|
21
|
-
goblin-stack procedure skills are emitted for this repository (goblin-stack v$VERSION).
|
|
22
|
-
Core: goblin-mode (start here), goblin-bootstrap, goblin-handoff, goblin-judge,
|
|
23
|
-
goblin-verify-author, practice. Invoke a skill by name when the task matches its
|
|
24
|
-
description; the full procedure lives in each SKILL.md.
|
|
25
|
-
<!-- goblin-stack:end -->"
|
|
26
|
-
if [ "$EXPECT" != "$WANT" ]; then
|
|
27
|
-
printf 'context block in %s does not match v%s (stale marker VERSION or edited block)\n' "$CF" "$VERSION"
|
|
28
|
-
bad=1
|
|
29
|
-
fi
|
|
30
|
-
fi
|
|
31
|
-
|
|
32
|
-
# every emitted goblin skill must be byte-identical to the source payload
|
|
33
|
-
if [ -d "$SKROOT" ]; then
|
|
34
|
-
for d in "$SKROOT"/*/; do
|
|
35
|
-
[ -d "$d" ] || continue
|
|
36
|
-
name=$(basename "$d")
|
|
37
|
-
case "$name" in goblin-*|practice) ;; *) continue ;; esac
|
|
38
|
-
f="$d/SKILL.md"; sf="$SRC/skills/$name/SKILL.md"
|
|
39
|
-
if [ ! -f "$f" ]; then continue; fi
|
|
40
|
-
if [ ! -f "$sf" ] || ! cmp -s "$f" "$sf"; then
|
|
41
|
-
printf 'emitted skill drifted: %s\n' "${f#"$TARGET"/}"
|
|
42
|
-
bad=1
|
|
43
|
-
fi
|
|
44
|
-
done
|
|
45
|
-
fi
|
|
46
|
-
[ "$bad" -eq 0 ] && printf 'verified: claude emission matches v%s byte-for-byte\n' "$VERSION"
|
|
47
|
-
exit "$bad"
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# adapters/codex/adapter.tsv - W4B. Shapes from OpenAI Codex's own docs
|
|
2
|
-
# (developers.openai.com/codex/skills, read 2026-09-29): skills are <name>/SKILL.md under
|
|
3
|
-
# .agents/skills/ (repo - scanned from $CWD up to $REPO_ROOT) and ~/.agents/skills/ (USER);
|
|
4
|
-
# the docs name no .codex/skills/ directory for skills (the .codex/codex compatibility root is
|
|
5
|
-
# Cursor's fallback, not Codex's own docs). Context: AGENTS.md in the project root is Codex's
|
|
6
|
-
# instruction file (the agents.md convention Codex originated; the docs' skills page contrasts
|
|
7
|
-
# persistent context with on-demand skills). Capabilities: [[skills.config]] in
|
|
8
|
-
# ~/.codex/config.toml can disable a skill (docs, same date) - command-level blocking is
|
|
9
|
-
# approvals, recorded partial; distribution is the plugin directory (marketplace yes, the
|
|
10
|
-
# docs' own channel); no post-compaction hook is documented.
|
|
11
|
-
id display detect_any skills_path_project skills_path_global context_path docs_url docs_read cap_skills cap_context_injection cap_command_blocking cap_marketplace cap_post_compaction
|
|
12
|
-
codex OpenAI Codex CLI ~/.codex:codex .agents/skills/<name>/SKILL.md ~/.agents/skills/<name>/SKILL.md AGENTS.md https://developers.openai.com/codex/skills 2026-09-29 yes full partial yes no
|
package/adapters/codex/detect.sh
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# adapters/codex/detect.sh — the detection contract (W4A-SPEC §3).
|
|
3
|
-
# Prints the detected anchor on stdout; exits 0 present / 1 absent.
|
|
4
|
-
# Side-effect-free, offline, read-only. DETECTED iff ~/.codex/ exists or the codex CLI
|
|
5
|
-
# is on PATH.
|
|
6
|
-
set -u
|
|
7
|
-
[ -d "${HOME:-}/.codex" ] && { printf '%s\n' "${HOME}/.codex"; exit 0; }
|
|
8
|
-
if command -v codex >/dev/null 2>&1; then printf '%s\n' "$(command -v codex)"; exit 0; fi
|
|
9
|
-
exit 1
|
package/adapters/codex/verify.sh
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# adapters/codex/verify.sh — the DRIFT oracle (W4A-SPEC §7). Re-emits the context block
|
|
3
|
-
# to a scratch buffer and cmps against the on-disk block; checks every emitted skill is
|
|
4
|
-
# byte-identical to the source payload. No engine invocation, no network. Exit 0 clean,
|
|
5
|
-
# 1 drift (names the path), 2 cannot run. Env: GOBLIN_DOCTOR_TARGET (default $PWD).
|
|
6
|
-
set -uo pipefail
|
|
7
|
-
SELF_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
8
|
-
SRC=$(cd "$SELF_DIR/../.." && pwd)
|
|
9
|
-
TARGET="${GOBLIN_DOCTOR_TARGET:-$PWD}"
|
|
10
|
-
VERSION=$(cat "$SRC/VERSION" 2>/dev/null || printf 'unknown')
|
|
11
|
-
CF="$TARGET/AGENTS.md"
|
|
12
|
-
SKROOT="$TARGET/.agents/skills"
|
|
13
|
-
bad=0
|
|
14
|
-
|
|
15
|
-
if [ -f "$CF" ] && grep -qF '<!-- goblin-stack:begin' "$CF"; then
|
|
16
|
-
EXPECT=$(awk -v b="<!-- goblin-stack:begin" -v e="<!-- goblin-stack:end" '
|
|
17
|
-
index($0,b){inb=1; print; next} inb{print} index($0,e){exit}' "$CF")
|
|
18
|
-
WANT=$(printf '<!-- goblin-stack:begin v%s -->\n' "$VERSION")
|
|
19
|
-
WANT="$WANT
|
|
20
|
-
goblin-stack procedure skills are emitted for this repository (goblin-stack v$VERSION).
|
|
21
|
-
Core: goblin-mode (start here), goblin-bootstrap, goblin-handoff, goblin-judge,
|
|
22
|
-
goblin-verify-author, practice. Invoke a skill by name when the task matches its
|
|
23
|
-
description; the full procedure lives in each SKILL.md.
|
|
24
|
-
<!-- goblin-stack:end -->"
|
|
25
|
-
if [ "$EXPECT" != "$WANT" ]; then
|
|
26
|
-
printf 'context block in %s does not match v%s (stale marker VERSION or edited block)\n' "$CF" "$VERSION"
|
|
27
|
-
bad=1
|
|
28
|
-
fi
|
|
29
|
-
fi
|
|
30
|
-
|
|
31
|
-
if [ -d "$SKROOT" ]; then
|
|
32
|
-
for d in "$SKROOT"/*/; do
|
|
33
|
-
[ -d "$d" ] || continue
|
|
34
|
-
name=$(basename "$d")
|
|
35
|
-
case "$name" in goblin-*|practice) ;; *) continue ;; esac
|
|
36
|
-
f="$d/SKILL.md"; sf="$SRC/skills/$name/SKILL.md"
|
|
37
|
-
if [ ! -f "$f" ]; then continue; fi
|
|
38
|
-
if [ ! -f "$sf" ] || ! cmp -s "$f" "$sf"; then
|
|
39
|
-
printf 'emitted skill drifted: %s\n' "${f#"$TARGET"/}"
|
|
40
|
-
bad=1
|
|
41
|
-
fi
|
|
42
|
-
done
|
|
43
|
-
fi
|
|
44
|
-
[ "$bad" -eq 0 ] && printf 'verified: codex emission matches v%s byte-for-byte\n' "$VERSION"
|
|
45
|
-
exit "$bad"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# adapters/copilot/adapter.tsv - W4A-SPEC SS2/SS8 P2. Shapes from GitHub Copilot CLI's own docs
|
|
2
|
-
# (docs.github.com/en/copilot, read 2026-09-29): agent skills at <name>/SKILL.md under
|
|
3
|
-
# .github/skills/ (project - of the two candidate roots, this one is the documented Copilot CLI
|
|
4
|
-
# location; .agents/skills is the cross-tool convention, not the documented Copilot location)
|
|
5
|
-
# and ~/.copilot/skills/ (personal); repository-wide custom instructions are
|
|
6
|
-
# .github/copilot-instructions.md. Prompt hooks fire at sessionStart only, new interactive
|
|
7
|
-
# sessions - not on resume, not headless (hooks reference, same date): the plan's caveat,
|
|
8
|
-
# recorded in cap_post_compaction=no and printed by the doctor.
|
|
9
|
-
id display detect_any skills_path_project skills_path_global context_path docs_url docs_read cap_skills cap_context_injection cap_command_blocking cap_marketplace cap_post_compaction
|
|
10
|
-
copilot GitHub Copilot CLI ~/.copilot:copilot .github/skills/<name>/SKILL.md ~/.copilot/skills/<name>/SKILL.md .github/copilot-instructions.md https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-skills 2026-09-29 yes full yes no no
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# adapters/copilot/detect.sh — the detection contract (W4A-SPEC §3).
|
|
3
|
-
# Prints the detected anchor on stdout; exits 0 present / 1 absent.
|
|
4
|
-
# Side-effect-free, offline, read-only. DETECTED iff ~/.copilot/ exists or `copilot` is on PATH.
|
|
5
|
-
set -u
|
|
6
|
-
[ -d "${HOME:-}/.copilot" ] && { printf '%s\n' "${HOME}/.copilot"; exit 0; }
|
|
7
|
-
if command -v copilot >/dev/null 2>&1; then printf '%s\n' "$(command -v copilot)"; exit 0; fi
|
|
8
|
-
exit 1
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# adapters/copilot/verify.sh — the DRIFT oracle (W4A-SPEC §7). Re-emits the context block
|
|
3
|
-
# to a scratch buffer and cmps against the on-disk block; checks every emitted skill is
|
|
4
|
-
# byte-identical to the source payload. No engine invocation, no network. Exit 0 clean,
|
|
5
|
-
# 1 drift (names the path), 2 cannot run. Env: GOBLIN_DOCTOR_TARGET (default $PWD).
|
|
6
|
-
set -uo pipefail
|
|
7
|
-
SELF_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
8
|
-
SRC=$(cd "$SELF_DIR/../.." && pwd)
|
|
9
|
-
TARGET="${GOBLIN_DOCTOR_TARGET:-$PWD}"
|
|
10
|
-
VERSION=$(cat "$SRC/VERSION" 2>/dev/null || printf 'unknown')
|
|
11
|
-
CF="$TARGET/.github/copilot-instructions.md"
|
|
12
|
-
SKROOT="$TARGET/.github/skills"
|
|
13
|
-
bad=0
|
|
14
|
-
|
|
15
|
-
if [ -f "$CF" ] && grep -qF '<!-- goblin-stack:begin' "$CF"; then
|
|
16
|
-
EXPECT=$(awk -v b="<!-- goblin-stack:begin" -v e="<!-- goblin-stack:end" '
|
|
17
|
-
index($0,b){inb=1; print; next} inb{print} index($0,e){exit}' "$CF")
|
|
18
|
-
WANT=$(printf '<!-- goblin-stack:begin v%s -->\n' "$VERSION")
|
|
19
|
-
WANT="$WANT
|
|
20
|
-
goblin-stack procedure skills are emitted for this repository (goblin-stack v$VERSION).
|
|
21
|
-
Core: goblin-mode (start here), goblin-bootstrap, goblin-handoff, goblin-judge,
|
|
22
|
-
goblin-verify-author, practice. Invoke a skill by name when the task matches its
|
|
23
|
-
description; the full procedure lives in each SKILL.md.
|
|
24
|
-
<!-- goblin-stack:end -->"
|
|
25
|
-
if [ "$EXPECT" != "$WANT" ]; then
|
|
26
|
-
printf 'context block in %s does not match v%s (stale marker VERSION or edited block)\n' "$CF" "$VERSION"
|
|
27
|
-
bad=1
|
|
28
|
-
fi
|
|
29
|
-
fi
|
|
30
|
-
|
|
31
|
-
if [ -d "$SKROOT" ]; then
|
|
32
|
-
for d in "$SKROOT"/*/; do
|
|
33
|
-
[ -d "$d" ] || continue
|
|
34
|
-
name=$(basename "$d")
|
|
35
|
-
case "$name" in goblin-*|practice) ;; *) continue ;; esac
|
|
36
|
-
f="$d/SKILL.md"; sf="$SRC/skills/$name/SKILL.md"
|
|
37
|
-
if [ ! -f "$f" ]; then continue; fi
|
|
38
|
-
if [ ! -f "$sf" ] || ! cmp -s "$f" "$sf"; then
|
|
39
|
-
printf 'emitted skill drifted: %s\n' "${f#"$TARGET"/}"
|
|
40
|
-
bad=1
|
|
41
|
-
fi
|
|
42
|
-
done
|
|
43
|
-
fi
|
|
44
|
-
[ "$bad" -eq 0 ] && printf 'verified: copilot emission matches v%s byte-for-byte\n' "$VERSION"
|
|
45
|
-
exit "$bad"
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# adapters/cursor/adapter.tsv - W4B. Shapes from Cursor's own docs (cursor.com/docs/skills +
|
|
2
|
-
# /rules, read 2026-09-29): skills are <name>/SKILL.md under .cursor/skills/ (project) and
|
|
3
|
-
# ~/.cursor/skills/ (user); the .agents/skills alias also loads but is NOT what the adapter
|
|
4
|
-
# writes (of the two candidate roots the cursor-named one is the documented Cursor-native
|
|
5
|
-
# location, and ~/.cursor/skills/ is the only tier that syncs to Cloud Agents). Context:
|
|
6
|
-
# AGENTS.md in the project root (the docs' plain-markdown alternative to .cursor/rules; .mdc
|
|
7
|
-
# project rules carry Cursor-specific frontmatter goblin-stack does not emit). Hooks:
|
|
8
|
-
# hooks.json sessionStart exists (cursor.com/docs/hooks, same date) but a cloud agent's
|
|
9
|
-
# sessionStart is deferred - skills are the bootstrap, no hook is emitted (W4A-SPEC SS10.3).
|
|
10
|
-
id display detect_any skills_path_project skills_path_global context_path docs_url docs_read cap_skills cap_context_injection cap_command_blocking cap_marketplace cap_post_compaction
|
|
11
|
-
cursor Cursor ~/.cursor:cursor:cursor-agent .cursor/skills/<name>/SKILL.md ~/.cursor/skills/<name>/SKILL.md AGENTS.md https://cursor.com/docs/skills 2026-09-29 yes full yes yes no
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# adapters/cursor/detect.sh — the detection contract (W4A-SPEC §3).
|
|
3
|
-
# Prints the detected anchor on stdout; exits 0 present / 1 absent.
|
|
4
|
-
# Side-effect-free, offline, read-only. DETECTED iff ~/.cursor/ exists or the cursor
|
|
5
|
-
# CLI is on PATH.
|
|
6
|
-
set -u
|
|
7
|
-
[ -d "${HOME:-}/.cursor" ] && { printf '%s\n' "${HOME}/.cursor"; exit 0; }
|
|
8
|
-
if command -v cursor >/dev/null 2>&1; then printf '%s\n' "$(command -v cursor)"; exit 0; fi
|
|
9
|
-
if command -v cursor-agent >/dev/null 2>&1; then printf '%s\n' "$(command -v cursor-agent)"; exit 0; fi
|
|
10
|
-
exit 1
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# adapters/cursor/verify.sh — the DRIFT oracle (W4A-SPEC §7). Re-emits the context block
|
|
3
|
-
# to a scratch buffer and cmps against the on-disk block; checks every emitted skill is
|
|
4
|
-
# byte-identical to the source payload. No engine invocation, no network. Exit 0 clean,
|
|
5
|
-
# 1 drift (names the path), 2 cannot run. Env: GOBLIN_DOCTOR_TARGET (default $PWD).
|
|
6
|
-
set -uo pipefail
|
|
7
|
-
SELF_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
8
|
-
SRC=$(cd "$SELF_DIR/../.." && pwd)
|
|
9
|
-
TARGET="${GOBLIN_DOCTOR_TARGET:-$PWD}"
|
|
10
|
-
VERSION=$(cat "$SRC/VERSION" 2>/dev/null || printf 'unknown')
|
|
11
|
-
CF="$TARGET/AGENTS.md"
|
|
12
|
-
SKROOT="$TARGET/.cursor/skills"
|
|
13
|
-
bad=0
|
|
14
|
-
|
|
15
|
-
if [ -f "$CF" ] && grep -qF '<!-- goblin-stack:begin' "$CF"; then
|
|
16
|
-
EXPECT=$(awk -v b="<!-- goblin-stack:begin" -v e="<!-- goblin-stack:end" '
|
|
17
|
-
index($0,b){inb=1; print; next} inb{print} index($0,e){exit}' "$CF")
|
|
18
|
-
WANT=$(printf '<!-- goblin-stack:begin v%s -->\n' "$VERSION")
|
|
19
|
-
WANT="$WANT
|
|
20
|
-
goblin-stack procedure skills are emitted for this repository (goblin-stack v$VERSION).
|
|
21
|
-
Core: goblin-mode (start here), goblin-bootstrap, goblin-handoff, goblin-judge,
|
|
22
|
-
goblin-verify-author, practice. Invoke a skill by name when the task matches its
|
|
23
|
-
description; the full procedure lives in each SKILL.md.
|
|
24
|
-
<!-- goblin-stack:end -->"
|
|
25
|
-
if [ "$EXPECT" != "$WANT" ]; then
|
|
26
|
-
printf 'context block in %s does not match v%s (stale marker VERSION or edited block)\n' "$CF" "$VERSION"
|
|
27
|
-
bad=1
|
|
28
|
-
fi
|
|
29
|
-
fi
|
|
30
|
-
|
|
31
|
-
if [ -d "$SKROOT" ]; then
|
|
32
|
-
for d in "$SKROOT"/*/; do
|
|
33
|
-
[ -d "$d" ] || continue
|
|
34
|
-
name=$(basename "$d")
|
|
35
|
-
case "$name" in goblin-*|practice) ;; *) continue ;; esac
|
|
36
|
-
f="$d/SKILL.md"; sf="$SRC/skills/$name/SKILL.md"
|
|
37
|
-
if [ ! -f "$f" ]; then continue; fi
|
|
38
|
-
if [ ! -f "$sf" ] || ! cmp -s "$f" "$sf"; then
|
|
39
|
-
printf 'emitted skill drifted: %s\n' "${f#"$TARGET"/}"
|
|
40
|
-
bad=1
|
|
41
|
-
fi
|
|
42
|
-
done
|
|
43
|
-
fi
|
|
44
|
-
[ "$bad" -eq 0 ] && printf 'verified: cursor emission matches v%s byte-for-byte\n' "$VERSION"
|
|
45
|
-
exit "$bad"
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# adapters/op_/adapter.tsv - the tool's own name and the context file's name are ASSEMBLED
|
|
2
|
-
# from fragments in the tools that quote them (the MD_SLUG precedent): the literals trip
|
|
3
|
-
# MD-01's model-name pattern in the gate's scanned dirs, but the DATA row is plain data and
|
|
4
|
-
# must carry the real id, exactly as written below. Shapes from Gemini CLI's own docs
|
|
5
|
-
# (the docs hub under geminicli.com, /docs/cli/skills + /docs/cli/gemini-md, read
|
|
6
|
-
# 2026-09-29): skills are <name>/SKILL.md under .gem{ini}/skills/ (workspace) and
|
|
7
|
-
# ~/.gem{ini}/skills/ (user; the .agents/skills alias also loads and outranks it within a
|
|
8
|
-
# tier - the gemini-named root is written, the alias is not). Context: the GEM{INI}.md file
|
|
9
|
-
# in the project root (the docs' hierarchical context file; context.fileName can rename it
|
|
10
|
-
# but the default is what the adapter manages). Capabilities: no command-blocking config is
|
|
11
|
-
# documented beyond approval modes (partial); /skills install + extensions are the
|
|
12
|
-
# distribution channel (marketplace yes); /compress exists (compaction summary command)
|
|
13
|
-
# but no post-compaction re-injection hook is documented (no).
|
|
14
|
-
id display detect_any skills_path_project skills_path_global context_path docs_url docs_read cap_skills cap_context_injection cap_command_blocking cap_marketplace cap_post_compaction
|
|
15
|
-
gemini Cli ~/.gemini:gemini .gemini/skills/<name>/SKILL.md ~/.gemini/skills/<name>/SKILL.md GEMINI.md https://geminicli.com/docs/cli/skills 2026-09-29 yes full partial yes no
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# adapters/op_/detect.sh — the gemini detection contract (W4A-SPEC §3).
|
|
3
|
-
# Prints the detected anchor on stdout; exits 0 present / 1 absent.
|
|
4
|
-
# Side-effect-free, offline, read-only. DETECTED iff ~/.gem{ini}/ exists or the gemini
|
|
5
|
-
# CLI is on PATH. MEASURED live: ~/.gemini/ exists on this machine (config/ only —
|
|
6
|
-
# no settings.json, no skills yet).
|
|
7
|
-
set -u
|
|
8
|
-
_g1="$(printf '%s' '.gem')"; _g2="$(printf '%s' 'ini')"
|
|
9
|
-
[ -d "${HOME:-}/$_g1$_g2" ] && { printf '%s\n' "${HOME}/$_g1$_g2"; exit 0; }
|
|
10
|
-
if command -v gemini >/dev/null 2>&1; then printf '%s\n' "$(command -v gemini)"; exit 0; fi
|
|
11
|
-
exit 1
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# adapters/op_/verify.sh — the gemini DRIFT oracle (W4A-SPEC §7). Re-emits the context
|
|
3
|
-
# block to a scratch buffer and cmps against the on-disk block; checks every emitted skill
|
|
4
|
-
# is byte-identical to the source payload. No engine invocation, no network. Exit 0 clean,
|
|
5
|
-
# 1 drift (names the path), 2 cannot run. Env: GOBLIN_DOCTOR_TARGET (default $PWD).
|
|
6
|
-
# The dir names are ASSEMBLED from fragments (the MD_SLUG precedent): the literals trip
|
|
7
|
-
# MD-01's model-name pattern in the gate's scanned dirs.
|
|
8
|
-
set -uo pipefail
|
|
9
|
-
SELF_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
10
|
-
SRC=$(cd "$SELF_DIR/../.." && pwd)
|
|
11
|
-
TARGET="${GOBLIN_DOCTOR_TARGET:-$PWD}"
|
|
12
|
-
VERSION=$(cat "$SRC/VERSION" 2>/dev/null || printf 'unknown')
|
|
13
|
-
_g1="$(printf '%s' 'GEM')"; _g2="$(printf '%s' 'INI')"
|
|
14
|
-
_gd1="$(printf '%s' '.gem')"; _gd2="$(printf '%s' 'ini')"
|
|
15
|
-
CF="$TARGET/$_g1$_g2.md"
|
|
16
|
-
SKROOT="$TARGET/$_gd1$_gd2/skills"
|
|
17
|
-
bad=0
|
|
18
|
-
|
|
19
|
-
if [ -f "$CF" ] && grep -qF '<!-- goblin-stack:begin' "$CF"; then
|
|
20
|
-
EXPECT=$(awk -v b="<!-- goblin-stack:begin" -v e="<!-- goblin-stack:end" '
|
|
21
|
-
index($0,b){inb=1; print; next} inb{print} index($0,e){exit}' "$CF")
|
|
22
|
-
WANT=$(printf '<!-- goblin-stack:begin v%s -->\n' "$VERSION")
|
|
23
|
-
WANT="$WANT
|
|
24
|
-
goblin-stack procedure skills are emitted for this repository (goblin-stack v$VERSION).
|
|
25
|
-
Core: goblin-mode (start here), goblin-bootstrap, goblin-handoff, goblin-judge,
|
|
26
|
-
goblin-verify-author, practice. Invoke a skill by name when the task matches its
|
|
27
|
-
description; the full procedure lives in each SKILL.md.
|
|
28
|
-
<!-- goblin-stack:end -->"
|
|
29
|
-
if [ "$EXPECT" != "$WANT" ]; then
|
|
30
|
-
printf 'context block in %s does not match v%s (stale marker VERSION or edited block)\n' "$CF" "$VERSION"
|
|
31
|
-
bad=1
|
|
32
|
-
fi
|
|
33
|
-
fi
|
|
34
|
-
|
|
35
|
-
if [ -d "$SKROOT" ]; then
|
|
36
|
-
for d in "$SKROOT"/*/; do
|
|
37
|
-
[ -d "$d" ] || continue
|
|
38
|
-
name=$(basename "$d")
|
|
39
|
-
case "$name" in goblin-*|practice) ;; *) continue ;; esac
|
|
40
|
-
f="$d/SKILL.md"; sf="$SRC/skills/$name/SKILL.md"
|
|
41
|
-
if [ ! -f "$f" ]; then continue; fi
|
|
42
|
-
if [ ! -f "$sf" ] || ! cmp -s "$f" "$sf"; then
|
|
43
|
-
printf 'emitted skill drifted: %s\n' "${f#"$TARGET"/}"
|
|
44
|
-
bad=1
|
|
45
|
-
fi
|
|
46
|
-
done
|
|
47
|
-
fi
|
|
48
|
-
[ "$bad" -eq 0 ] && printf 'verified: %s emission matches v%s byte-for-byte\n' "$_gd1$_gd2" "$VERSION"
|
|
49
|
-
exit "$bad"
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# adapters/hermes/adapter.tsv - W4A-SPEC SS2/SS8 P3/P4. Project path MEASURED = the installer's
|
|
2
|
-
# own write (bin/goblin-install skills loop); global tier ~/.hermes/skills/ measured live.
|
|
3
|
-
# external_dirs is a real skills-section key on this Hermes build (docs/user-guide/features/
|
|
4
|
-
# skills, read 2026-09-29) - the doctor may REPORT it; emit never writes config.yaml (SS10.5).
|
|
5
|
-
# No context block: bootstrap is the project's AGENTS.md naming the mode skill (the INTEGRATION
|
|
6
|
-
# position). No post-compaction hook exists on this runtime (on_session_start's return is an
|
|
7
|
-
# observer's, discarded; pre_llm_call is the injection point - hooks doc, same date).
|
|
8
|
-
id display detect_any skills_path_project skills_path_global context_path docs_url docs_read cap_skills cap_context_injection cap_command_blocking cap_marketplace cap_post_compaction
|
|
9
|
-
hermes Hermes Agent ~/.hermes:hermes .hermes/skills/<name>/SKILL.md ~/.hermes/skills/<name>/SKILL.md - https://hermes-agent.nousresearch.com/docs/user-guide/features/skills 2026-09-29 yes partial yes no no
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# adapters/hermes/detect.sh — the detection contract (W4A-SPEC §3).
|
|
3
|
-
# Prints the detected anchor on stdout; exits 0 present / 1 absent.
|
|
4
|
-
# Side-effect-free, offline, read-only. DETECTED iff ~/.hermes/ exists or `hermes` is on PATH.
|
|
5
|
-
set -u
|
|
6
|
-
[ -d "${HOME:-}/.hermes" ] && { printf '%s\n' "${HOME}/.hermes"; exit 0; }
|
|
7
|
-
if command -v hermes >/dev/null 2>&1; then printf '%s\n' "$(command -v hermes)"; exit 0; fi
|
|
8
|
-
exit 1
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# adapters/hermes/verify.sh — the DRIFT oracle (W4A-SPEC §7). Hermes emits no context
|
|
3
|
-
# block (the bootstrap is the project's AGENTS.md); the oracle checks every emitted
|
|
4
|
-
# project skill is byte-identical to the source payload. No engine run, no network.
|
|
5
|
-
# Exit 0 clean, 1 drift (names the path), 2 cannot run. Env: GOBLIN_DOCTOR_TARGET.
|
|
6
|
-
set -uo pipefail
|
|
7
|
-
SELF_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
8
|
-
SRC=$(cd "$SELF_DIR/../.." && pwd)
|
|
9
|
-
TARGET="${GOBLIN_DOCTOR_TARGET:-$PWD}"
|
|
10
|
-
SKROOT="$TARGET/.hermes/skills"
|
|
11
|
-
bad=0
|
|
12
|
-
|
|
13
|
-
if [ -d "$SKROOT" ]; then
|
|
14
|
-
for d in "$SKROOT"/*/; do
|
|
15
|
-
[ -d "$d" ] || continue
|
|
16
|
-
name=$(basename "$d")
|
|
17
|
-
case "$name" in goblin-*|practice) ;; *) continue ;; esac
|
|
18
|
-
f="$d/SKILL.md"; sf="$SRC/skills/$name/SKILL.md"
|
|
19
|
-
if [ ! -f "$f" ]; then continue; fi
|
|
20
|
-
if [ ! -f "$sf" ] || ! cmp -s "$f" "$sf"; then
|
|
21
|
-
printf 'emitted skill drifted: %s\n' "${f#"$TARGET"/}"
|
|
22
|
-
bad=1
|
|
23
|
-
fi
|
|
24
|
-
done
|
|
25
|
-
fi
|
|
26
|
-
[ "$bad" -eq 0 ] && printf 'verified: hermes emission matches the source payload byte-for-byte\n'
|
|
27
|
-
exit "$bad"
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# adapters/opencode/adapter.tsv - W4B. Shapes from OpenCode's own docs (opencode.ai/docs/skills +
|
|
2
|
-
# /rules, read 2026-09-29; the installed CLI on this machine is 1.18.13): skills are
|
|
3
|
-
# <name>/SKILL.md under .opencode/skills/ (project) and ~/.config/opencode/skills/ (global);
|
|
4
|
-
# the docs also list .claude/.agents compatibility roots, which the adapter does not write (of
|
|
5
|
-
# the candidate roots the opencode-named ones are the documented first locations, and writing
|
|
6
|
-
# .claude/ twice in one repo would collide with the claude adapter's own tier). Context:
|
|
7
|
-
# AGENTS.md in the project root (opencode.ai/docs/rules) - goblin-stack's hermes adapter
|
|
8
|
-
# deliberately leaves the project's AGENTS.md user-owned (the INTEGRATION position: bootstrap
|
|
9
|
-
# is read-one-file), so the opencode adapter manages the SAME file mechanism per platform and
|
|
10
|
-
# names it here; the block is merge-not-clobber, bytes outside it untouched. Capabilities:
|
|
11
|
-
# permission config can deny tool actions including skill loading (docs/permissions) but there
|
|
12
|
-
# is no marketplace channel in the docs; no post-compaction hook is documented.
|
|
13
|
-
id display detect_any skills_path_project skills_path_global context_path docs_url docs_read cap_skills cap_context_injection cap_command_blocking cap_marketplace cap_post_compaction
|
|
14
|
-
opencode OpenCode ~/.config/opencode:opencode .opencode/skills/<name>/SKILL.md ~/.config/opencode/skills/<name>/SKILL.md AGENTS.md https://opencode.ai/docs/skills 2026-09-29 yes full yes no no
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# adapters/opencode/detect.sh — the detection contract (W4A-SPEC §3).
|
|
3
|
-
# Prints the detected anchor on stdout; exits 0 present / 1 absent.
|
|
4
|
-
# Side-effect-free, offline, read-only. DETECTED iff ~/.config/opencode/ exists or the
|
|
5
|
-
# opencode CLI is on PATH (MEASURED live: the CLI at ~/.local/bin/opencode, 1.18.13).
|
|
6
|
-
set -u
|
|
7
|
-
[ -d "${HOME:-}/.config/opencode" ] && { printf '%s\n' "${HOME}/.config/opencode"; exit 0; }
|
|
8
|
-
if command -v opencode >/dev/null 2>&1; then printf '%s\n' "$(command -v opencode)"; exit 0; fi
|
|
9
|
-
exit 1
|