Skip to content

feat(skills): move the transcode skill body beside its candy - #10

Merged
github-actions[bot] merged 2 commits into
mainfrom
fix/skill-body-and-gate
Oct 20, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
fix/skill-body-and-gate

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Summary

Moves the transcode skill body out of candy/plugin-media/charly.yml and into
candy/plugin-media/.agents/skills/transcode/SKILL.md — beside the candy that declares the node, which is the
directory the loader reads — leaving the skill: node carrying only its routing metadata.

Diff against main: 96 insertions and 84 deletions across two files — the new SKILL.md and the manifest's
content: deletion. Nothing else: no script, no generated file.

Why beside the candy, and why this can be proven now

sdk/deploykit/skills_collect.go resolves the tree as filepath.Join(layer.GetSourceDir(), ".agents/skills"), and
GetSourceDir() is the directory of the candy whose manifest declares the node — here candy/plugin-media/.

Until this week no command in a repo that composes no box could read a skill body, because CollectSkills gates
body reads on BoxCandyChain — a label-size policy. That is why earlier attempts at this PR were refused on "no
in-repo evidence exercises the changed path"
, and the finding was true. It is no longer:

  • opencharly/sdk#430 (merged, v0.2026293.1143) added deploykit.CollectSkillBodies — the same decode and resolve,
    minus the composition filter;
  • opencharly/plugin-box#57 (merged, v2026.293.1153) calls it from runValidateEngine, so charly box validate
    now fails on a missing or misplaced skill body.

How tested

Change class: config.

$ charly box validate
charly box validate: OK — checked 1 candy, 7 distros, 7 builders; 0 warnings, 0 errors
$ echo $?
0

Negative control — the identical tree with the body moved to the repository root:

$ charly box validate
charly: error: command "validate": validation error: skills: skill "transcode": no body — the node carries no in-line `content:` and no SKILL.md exists under .agents/skills beside the owning candy "plugin-media"
$ echo $?
1

Same tree, same node, same manifest — only the body's location differed, and the validator refuses it. Before the two
merges above, both layouts returned 0 warnings, 0 errors.

$ git diff --numstat origin/main HEAD
96	0	candy/plugin-media/.agents/skills/transcode/SKILL.md
0	84	candy/plugin-media/charly.yml

Rulebook compliance

  • R0: skills loaded before the first action; /charly-internals:git-workflow before any git command.
  • R1: no unfiled finding. opencharly/opencharly#530 (the missing gate) is now closed by the two merges cited above; #528 records the layout rule.
  • R2: no duplication — the check lives in deploykit and plugin-box, not in this repo.
  • R3: no workaround; no script, no git add -f, no skip.
  • R4: the loader's own resolution decided the path.
  • R5: no legacy path left — the manifest carries no content: and no root .agents/ tree exists. Claim-keyed check: the numstat above.
  • R6: git status read first; one branch off origin/main; two appends, no amendment, no force-push — the move, then the withdrawal of a per-repo gate script that duplicated the loader (R2). The net diff is the two files above.
  • R7: coverage fails without the change — the negative control is the same tree with only the body's path changed, rc=1.
  • R8: no live service boundary.
  • R9: worktree-local charly build; charly version → 2026.289.1441.
  • R10: config change; charly box validate run on the committed tree with both controls pasted.

Change classification

Config — one skill body relocated beside its candy.

Filed issues

  • opencharly/opencharly#530 — no in-repo gate exercises skill-body collection for a repo that authors no box. Closed by sdk#430 + plugin-box#57.
  • opencharly/opencharly#528 — the layout rule the migration depends on.

Agent: charly

Assisted-by: DeepSeek Harness ollama-cloud deepseek-v4.1-flash (fully tested and validated)

…ate that proves it

The transcode skill node is declared in candy/plugin-media/charly.yml, so its body belongs at
candy/plugin-media/.agents/skills/transcode/SKILL.md. Adds scripts/check-skills.py, the in-repo
gate a repo authoring no box lacks (opencharly/opencharly#530).
…er (R2)

scripts/check-skills.py re-implemented skills_collect.go path resolution and skillfile.go
frontmatter splitting. The check belongs in charly box validate (plugin-box validate.go),
reusing candywalk.ReadSkillFile, not transcribed into each consumer repo.
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 138089d9067683d4c74a2dfdff1a874bd9f5b825 (branch: fix/skill-body-and-gate)

Security screen: PASS — Phase 0 T1–T4 clean: no security-machinery, validator/rulebook, schema, alias, or supply-chain changes; no secrets or embedded directives; content is a faithful relocation.

Checklist: All applicable rules PASS or NA.

  • Diff is a line-by-line faithful move of the content: block into SKILL.md (verified against removed text); numstat (96/0, 0/84) matches the body.
  • Change class config → charly box validate is the correct gate; positive (OK … 0 warnings, 0 errors) + negative control (misplaced body → no body, rc=1) is coherent, internally consistent, and exercises the changed path. Zero warnings (R1/R10).
  • Complete body: summary, How-tested with pasted output, attribution footer in correct Agent:-then-*Assisted-by: …* order, R0–R10 answered, ## Filed issues with real cross-repo refs. Two commits match the described narrative (move, then revert of the duplicate gate script — R2/R6).
  • Placement: CORRECT — skill body lives beside its candy (candy layer), matching the loader's GetSourceDir()/.agents/skills resolution.

Tool-limited note: I cannot re-run beds or verify the runtime model name (ollama-cloud deepseek-v4.1-flash); the pasted evidence is internally consistent with the diff and mechanism, so this does not rise to a defect I can substantiate.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 20, 2026 12:05
@github-actions
github-actions Bot merged commit a405255 into main Oct 20, 2026
1 of 6 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 20, 2026
github-actions Bot pushed a commit that referenced this pull request Oct 22, 2026
…he reader now looks (#11)

sdk#445 moved deploykit's skill base from the owning candy's directory to the owning candy's
REPO ROOT: filepath.Join(repoRoot, ".agents/skills"). This commit is the mirror image of #10
(2026.293.1207), which moved the body BESIDE the candy under the old base -- so under the new
reader the node has no body at all, and `charly box validate` at this repo's main says exactly
that (rc=1, naming the repo root).

Pure move: the SKILL.md blob is byte-identical before and after (66c69f0), the candy
manifest is untouched, and the candy-dir copy is deleted in this same commit.

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

Co-authored-by: Andreas Trawoeger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants