Repository navigation
ci(skills): publish every skill as a downloadable zip - #1737
Conversation
Build and publish every distributable skill to the rolling skills-latest release, in both flavors, plus one combined uploadable skill: - <skill>.zip / <skill>-chatgpt.zip per skill; the ChatGPT flavor adds agents/openai.yaml and a -chatgpt suffix so names never collide. - basic-memory.zip / basic-memory-chatgpt.zip: one skill whose router SKILL.md (scripts/skill-bundle/basic-memory.md) routes to generated references/<skill>.md files, with resource links rewritten. Leaves out memory-defrag, memory-reflect, and memory-literary-analysis, which need a local install. - basic-memory-skills(-chatgpt).zip bundles for unzipping by hand. - evals/ never ships; memory-ci-capture is marked `metadata.internal` (the skills CLI's marker) and is not packaged or fetched by OpenClaw. - The build verifies each zip's <name>/SKILL.md layout and fails on duplicate asset names; the publish workflow uploads all assets in one call, deletes stale ones, and gains a paths filter. PR CI now runs the build in the Shared skills job. validate_skills.py now checks name format, a description of at most 200 characters with no '<'/'>' or block scalar, linked files, and that the skill lists in skills/README.md, skills/CLAUDE.md, and the OpenClaw manifest and README match the skill dirs. Every description is shortened to fit, the OpenClaw lists gain memory-capture/continue/curate (and the README the rest), skills/skills-lock.json is deleted (nothing reads it), bm-setup's install uses -g, the skills README install section is rewritten around npx -g and zip upload, and onboarding's assistant stub carries the Memory Quest memory routine verbatim. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Drew Cain <groksrc@gmail.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
CodeQL flagged the nested-block regex in OpenClaw fetch-skills for exponential backtracking. Walk the frontmatter lines instead, matching scripts/validate_skills.py. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Drew Cain <groksrc@gmail.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7d30466388
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
#1677 no longer adds memory-quest to openclaw.plugin.json: OpenClaw's wrappers drop the source/external_id and checksum fields it needs. Record that in the skill-list allowlist so the check passes before and after #1677 merges. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Drew Cain <groksrc@gmail.com>
…ratch fetch-skills cleared only the folders for skills it discovered, so a copy left by an earlier run (a removed skill, or memory-ci-capture from before it was marked internal) stayed in skills/ and npm pack would ship it. The folder is entirely generated and gitignored, so clear it whole once discovery succeeds. fetchSkills now takes its directories so a test can cover this. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Drew Cain <groksrc@gmail.com>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b2d32df0dd
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "skills/memory-capture", | ||
| "skills/memory-comark", | ||
| "skills/memory-continue", | ||
| "skills/memory-curate", |
There was a problem hiding this comment.
Adapt incompatible skills before exposing them to OpenClaw
These newly registered skills describe normal flows that OpenClaw cannot execute: memory-capture performs a metadata-only search_notes call although the OpenClaw schema requires query, memory-continue calls the unregistered recent_activity tool, and memory-curate calls the unregistered list_directory tool. Users following those bundled instructions will receive tool-validation or unknown-tool errors, so add compatible wrappers/variants or omit the skills from this manifest until their required surface exists.
AGENTS.md reference: integrations/openclaw/AGENTS.md:L64-L69
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Confirmed and fixed in c618005. OpenClaw registers no recent_activity or list_directory tool and its search_notes requires query, so memory-capture, memory-continue and memory-curate are back out of openclaw.plugin.json and the OpenClaw README. The skill-list check allowlists them with those reasons, so adding them later is a deliberate step once OpenClaw has the tools. (They were already reachable through OpenClaw's generated slash-command manifest before this PR; that predates this change and is noted for the wrapper follow-up.)
| for target in relative_link_targets(skill_body(skill_file)): | ||
| if not (skill_file.parent / target).is_file(): | ||
| raise SystemExit(f"{skill_file}: links to missing file {target!r}") |
There was a problem hiding this comment.
Reject resource links that escape the skill directory
A skill containing a parent-relative link such as [guide](../README.md) passes this check whenever that repository file exists, but the archive builder copies only the skill directory and the combined builder does not rewrite or include that external target. The resulting published zip therefore has a broken link despite passing validation; resolve the target and require it to remain beneath skill_file.parent before accepting it.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in c618005. Linked targets now have to resolve inside the skill folder, so ../README.md fails as links outside the skill folder even when the repo file exists. Covered by test_validator_rejects_links_outside_the_skill, which fails without the check.
Claude and ChatGPT pick a skill from its description alone; the routing table that points at memory-quest is read only after the skill loads. The Memory Quest panel tells chat users to 'ask Claude to run Memory Quest', so the description has to name it or the skill may never load. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Drew Cain <groksrc@gmail.com>
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…ks inside a skill - memory-capture, memory-continue and memory-curate call tools OpenClaw doesn't register (recent_activity, list_directory) or a query-less search_notes its schema rejects. Leave them out of openclaw.plugin.json and its README, with the reasons in the skill-list allowlist. - The validator accepted a link like ../README.md whenever the repo file existed, but each zip holds only the skill folder. Require linked files to resolve inside the skill. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Drew Cain <groksrc@gmail.com>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c618005e9e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| // behind a skill that was removed or newly marked internal, and npm pack | ||
| // ships everything under skills/. Discovery runs first so a bad source | ||
| // fails before anything is deleted. | ||
| rmSync(outDir, { recursive: true, force: true }) |
There was a problem hiding this comment.
Validate every source skill before clearing generated output
When any discovered memory-* directory has a missing or malformed SKILL.md, discovery succeeds and this deletion runs before the existence/frontmatter checks at lines 111–117. Consequently, bun run fetch-skills (including prepack) removes the previously working generated package and then exits with an error, despite the stated guarantee that an invalid source leaves existing output intact; the added test covers only a missing source directory. Validate every candidate first, or build in a staging directory and replace outDir only after the complete build succeeds.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Right, my earlier comment overstated it: discovery passing didn't mean every skill was valid. Fixed in 09f5e27. fetchSkills now reads and parses every discovered SKILL.md before deleting anything, and only then rebuilds the folder. New tests cover a skill folder with no SKILL.md and one with bad frontmatter, and both fail if the delete moves back ahead of validation.
…tput fetch-skills deleted the generated skills folder right after discovery, so a skill directory with a missing or malformed SKILL.md wiped the working package and then failed. Read and parse every skill first; delete only once they all pass. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Drew Cain <groksrc@gmail.com>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 09f5e27da5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| gh release edit "$RELEASE_TAG" \ | ||
| --notes "Rolling skill archives built from ${GITHUB_SHA}." \ | ||
| --latest=false | ||
| gh release upload "$RELEASE_TAG" "${assets[@]}" --clobber |
There was a problem hiding this comment.
Preserve old assets until replacements finish
If this upload is interrupted by a transient GitHub failure or by the workflow's cancel-in-progress behavior, public download URLs can lose their existing assets until another successful publish. gh release upload --help documents that --clobber deletes existing assets before uploading and warns that a failed upload loses the originals. Since these filenames are now a web-app contract, upload replacements under temporary names and swap them only after every upload succeeds, or otherwise retain a recoverable copy.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Agreed, fixed in 52ef6ea. Publishing moved to scripts/publish_skills_release.py: it uploads every archive under a staging-- name first (live assets untouched, so a failed upload changes nothing users see), then swaps each one in only after all uploads succeed, renaming the old asset aside and deleting it after the new one is live. A later run clears any staging--/retired-- leftovers. The workflow also stops cancelling an in-progress publish. tests/test_publish_skills_release.py fails the publish at each upload and rename and checks every contract name still serves the old or new archive; a clobber-style variant fails five of those tests.
| body = re.sub( | ||
| rf"\]\((?:\./)?{escaped}(#[^)]*)?\)", | ||
| lambda match, target=f"{skill_name}/{resource}": f"]({target}{match.group(1) or ''})", |
There was a problem hiding this comment.
Rewrite Markdown links that include titles
When a skill uses a valid titled link such as [guide](references/guide.md "More"), this pattern does not match because it permits only an anchor before ). The combined archive consequently leaves that destination unchanged even though the resource is moved to references/<skill>/references/guide.md, producing a broken link; the validator also overlooks this syntax. Parse or match optional Markdown link titles when validating and rewriting resource destinations.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 52ef6ea. Both the validator's link pattern and the combined-skill rewriter now accept an optional "title" or 'title' after the destination, and the rewriter keeps the title. Covered by test_validator_checks_titled_links and test_combined_rewrite_keeps_link_titles, each of which fails against the old pattern.
- gh release upload --clobber deletes each asset before uploading its replacement, so a failed or cancelled run could leave basic-memory.zip missing. scripts/publish_skills_release.py uploads everything under staging names first and swaps each asset in only after every upload succeeds; the next run clears anything an interrupted one left behind. Runs now queue instead of cancelling one mid-publish. - Markdown links with a title, [guide](references/guide.md "More"), were skipped by both the validator and the combined skill's link rewriter. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Drew Cain <groksrc@gmail.com>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 52ef6eac98
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if name.startswith((STAGING_PREFIX, RETIRED_PREFIX)): | ||
| release.delete(name) |
There was a problem hiding this comment.
Restore retired assets before deleting recovery state
If a run is interrupted after the live asset is renamed to retired--<name> but before the staged asset receives the live name, the next run reaches this cleanup with the public URL already missing and deletes its only recoverable copy. A subsequent staging upload failure then leaves that URL absent until some later fully successful run. Fresh evidence after the prior fix is that this recovery path unconditionally deletes retired-- assets instead of restoring one whenever its live counterpart is absent. Restore that asset before clearing leftovers and add a regression covering interruption on the second rename.
AGENTS.md reference: AGENTS.md:L137-L139
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Right, the retired copy was the only one serving the URL in that case. Fixed in e164fd7: recovery now renames a retired--<name> back to <name> whenever the live asset is absent, and only then clears leftovers. test_next_run_restores_an_asset_left_renamed_aside interrupts the second rename, then fails the next run at an upload and checks the old archive is live again; it fails without the restore.
A publish that died between its two renames left the live name empty and the old archive under retired--<name>. The next run deleted that as a leftover, so if it also failed, the download URL stayed empty. Recovery now renames an orphaned retired asset back to its live name before clearing anything. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Drew Cain <groksrc@gmail.com>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e164fd7ab2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @@ -0,0 +1,32 @@ | |||
| --- | |||
| name: basic-memory | |||
| description: "Use the user's Basic Memory knowledge base: find notes for context, save linked notes, resume work, run Memory Quest. Use when a task needs prior notes, should be remembered, or mentions Memory Quest." | |||
There was a problem hiding this comment.
Bundle Memory Quest before advertising it
At this commit there is no skills/memory-quest source, route, or reference in the generated basic-memory.zip, yet the description explicitly advertises “run Memory Quest.” Because this template change triggers the publishing workflow, the rolling archive can direct users from the Memory Quest panel into a skill containing none of the quest instructions; land the referenced skill in the same change or remove this claim until it is present.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Agreed. Fixed in b40ffa2 by making it a hard dependency rather than a fallback: the build now fails when the router's description names Memory Quest but memory-quest isn't bundled, so a publish can never ship that claim without the instructions. memory-quest lands in #1677, which will merge first; until then this branch's build fails on purpose. Verified on a local trial merge with #1677: validator, build (36 archives, memory-quest routed), 57 skills tests, and the OpenClaw package check all pass.
| body = re.sub( | ||
| # An optional anchor and an optional "title" are kept as written. | ||
| rf"""\]\((?:\./)?{escaped}(#[^)\s]*)?(\s+(?:"[^"]*"|'[^']*'))?\)""", |
There was a problem hiding this comment.
Rewrite reference-style resource links
When a valid skill uses a reference-style link such as [guide][g] with [g]: references/guide.md, this inline-link substitution never rewrites the definition. The combined archive moves the file to references/<skill>/references/guide.md while leaving the definition pointed at references/guide.md, and the validator also ignores this syntax, so the package check succeeds with a broken link. Support reference definitions in both validation and rewriting, or reject them explicitly.
AGENTS.md reference: AGENTS.md:L70-L74
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in b40ffa2 by rejecting them explicitly: no skill uses reference-style links today, so the validator now fails on a [label]: target definition and asks for an inline link instead. Covered by test_validator_rejects_reference_style_links, which fails without the check.
| (out / "SKILL.md").write_text( | ||
| template_text.replace(ROUTING_TABLE_MARKER, routing_table(included)) | ||
| ) |
There was a problem hiding this comment.
Validate the generated router before archiving it
Only the routing marker is checked before the generated router is archived; verify_layout later confirms merely that basic-memory/SKILL.md exists. If this new template acquires malformed or missing frontmatter, an invalid name, or an overlong description, just package-check-skills and the publish workflow still succeed and replace the contract assets with an unloadable skill. Run the same skill validation against the completed generated router before creating either archive.
AGENTS.md reference: AGENTS.md:L70-L74
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in b40ffa2. After generating the router, the build runs validate_skill_file on it (frontmatter, name, description length, linked files) before either combined archive is written. test_generated_router_is_validated_before_archiving uses a template with a 201-character description, checks the build fails, and checks neither combined zip was written; it fails without the validation.
- The combined skill's router SKILL.md is generated, so the source validator never saw it; a bad template could publish an unloadable skill. Validate it like any skill before zipping. - Its description names Memory Quest. Fail the build when memory-quest isn't bundled, so the router can't ship promising instructions it lacks. This makes basic-memory#1677 a prerequisite: until it merges, building main fails here by design. - Reject reference-style link definitions ([label]: target). Nothing rewrites them when the combined skill moves resources. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Drew Cain <groksrc@gmail.com>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b40ffa2b00
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| for name in sorted(archives): | ||
| if name in live: | ||
| release.rename(name, RETIRED_PREFIX + name) | ||
| release.rename(STAGING_PREFIX + name, name) |
There was a problem hiding this comment.
Restore the live asset when the staged rename fails
When GitHub rejects or times out this second rename after the live asset was moved aside on line 89, the exception ends the workflow with the public download URL missing; because this workflow is path-filtered, no later recovery run is guaranteed. Fresh evidence after the recovery change is test_next_run_restores_an_asset_left_renamed_aside, which explicitly asserts that basic-memory.zip is absent after this failure. Catch the failed staged rename and restore or verify the retired asset immediately before propagating the error, rather than relying exclusively on a future run.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Agreed, fixed in 0b022e8. A failed staged rename now renames retired--<name> back to <name> before re-raising, so an API error never ends the run with the URL empty. Recovery on the next run stays for the case no handler can cover (the job killed mid-call). test_a_failed_staged_rename_puts_the_old_asset_back covers the API failure and fails without the restore; test_next_run_restores_an_asset_left_renamed_aside now simulates the kill with a BaseException that bypasses the handler.
If GitHub rejected the second rename of a swap, the run ended with the old archive under retired--<name> and the download URL empty. The workflow only runs when skills change, so the next run's recovery could be far off. Restore the old asset before re-raising; a run killed outright is still repaired by the next run's recovery step. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Drew Cain <groksrc@gmail.com>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0b022e8053
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| for line in frontmatter_lines(skill_file): | ||
| if line[:1] not in (" ", "\t"): | ||
| in_metadata = line.split(":", 1)[0].strip() == "metadata" | ||
| continue | ||
| if in_metadata and METADATA_INTERNAL.match(line): | ||
| return True |
There was a problem hiding this comment.
Keep metadata scope across blank YAML lines
When a valid metadata mapping contains a blank or column-zero comment before internal: true, this branch resets in_metadata even though YAML keeps the mapping open; for example, metadata:\n owner: ci\n\n internal: true is treated as public. The Skills CLI parses the metadata as YAML and checks the resulting metadata.internal value (upstream implementation), so distributed_skill_names() can include an internal skill in release archives while OpenClaw's duplicated line walker also copies it. Ignore blank/comment lines and distinguish direct metadata children from deeper nested keys, or parse this field as YAML.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 549a765, in both walkers (scripts/validate_skills.py and OpenClaw's fetch-skills.ts). Blank and comment lines no longer close the metadata mapping, and only direct children of metadata count, so metadata.sub.internal is not the marker. A trailing comment after internal: true is allowed. New Python and Bun tests cover each case and fail without the change.
| # A Markdown link destination, with an optional "title" or 'title' after it. | ||
| MARKDOWN_LINK = re.compile(r"""\]\(([^)\s]+)(?:\s+(?:"[^"]*"|'[^']*'))?\)""") |
There was a problem hiding this comment.
Handle angle-bracket Markdown link destinations
When a skill uses a valid CommonMark destination such as [guide](<references/my guide.md>), this pattern finds no target because it excludes whitespace and does not recognize <...> destinations, so validation succeeds without checking the file. The combined builder's corresponding substitution also leaves the link unchanged after moving the resource under references/<skill>/, producing a broken link in the published archive; CommonMark explicitly permits spaces in angle-bracket destinations. Parse and rewrite this destination form, or reject it explicitly during validation.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
…cket links - Both internal-skill checks (Python and OpenClaw) ended the metadata mapping at a blank or comment line, so 'internal: true' after one was missed, and they counted a deeper metadata.sub.internal. Skip blank and comment lines and match only direct children of metadata, as the skills CLI's YAML does. - Reject [text](<path>) destinations: neither the link check nor the combined skill's rewriter reads them. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Drew Cain <groksrc@gmail.com>
Signed-off-by: Drew Cain <groksrc@gmail.com>
Summary
The web app's "Download skill" buttons will link to assets on the rolling
skills-latestrelease. This PR builds and publishes every distributable skill there, plus one combined skill for Claude and ChatGPT, which accept a single skill per upload.Download URL:
https://github.com/basicmachines-co/basic-memory/releases/download/skills-latest/<asset>Assets (34):
basic-memory.zip,basic-memory-chatgpt.zip: one combined skill, the recommended upload for Claude and ChatGPT<skill>.zip(Claude / Agent Skills) and<skill>-chatgpt.zip(addsagents/openai.yaml) for each of the 15 distributable skills;memory-onboarding.zipkeeps its namebasic-memory-skills.zip,basic-memory-skills-chatgpt.zip: every individual skill in one archive, for unzipping by handEach zip has the skill folder at its root (
<name>/SKILL.md+ resources), which is what Claude's uploader requires.Combined
basic-memoryskillscripts/skill-bundle/basic-memory.md. It isn't namedSKILL.md, so nothing discovers it as a second copy of the skills: not theskillsCLI (even with--full-depth), not the plugin loaders, not ourmemory-*globs. It has a short intro, the core habits, and a routing table that the build fills in.references/<skill>.mdfrom each skill'sSKILL.md, replacing the frontmatter with a short header. Resources are copied toreferences/<skill>/…, and links are rewritten so they still resolve: Markdown links relative to the file, backticked paths relative to the skill root.memory-defrag,memory-reflectandmemory-literary-analysisare left out because they need a local install (MEMORY.md files on disk, cron,bmCLI + a local source.txt). They keep their individual zips.memory-quest(feat(skills): add memory-quest skill for Memory Quest Mission 8 #1677) will be included automatically, with a hand-written routing intent.agents/openai.yaml(display_name: "Basic Memory",brand_color: "#2563EB", implicit invocation left allowed).Build / publish / CI
scripts/build_skills_dist.py: adds the-chatgptsuffix, dropsevals/from every zip, and dropsagents/from the plain flavor. It checks each zip's layout and fails on duplicate asset names.memory-ci-captureis markedmetadata: internal: true. That's the marker theskillsCLI uses to hide a skill (unlessINSTALL_INTERNAL_SKILLS=1). The skill isn't packaged, and OpenClaw'sfetch-skillsnow skips it too.bm cirenders its own prompt to.github/basic-memory/memory-ci-capture.mdand never readsskills/memory-ci-capture, so leaving the directory where it is breaks nothing.fetch-skillsreads the internal marker line by line, because CodeQL flagged the first version's regex for backtracking.publish-skills.ymluploads every asset in onegh release upload --clobbercall and fails on a duplicate basename or a missing contract asset. It deletes stale release assets and only runs when the skills, build or validator change (newpaths:filter).skills/justfile checknow runs the full build into a temp dir, so a broken build fails in the PR.Validator and skill sources
scripts/validate_skills.pynow also checks:anthropic/claude)</>and no block scalarskills/README.md,skills/CLAUDE.md,openclaw.plugin.jsonand the OpenClaw README match the distributed skill dirsmay_omitallowlist. The only entries arememory-questin the OpenClaw manifest and README: OpenClaw's wrappers drop thesource/external_idand checksum fields the skill needs, so a follow-up will add it. feat(skills): add memory-quest skill for Memory Quest Mission 8 #1677 adds it to the skills README and CLAUDE.md only. A test applies those additions and checks the validator still passes, and a trial merge with feat(skills): add memory-quest skill for Memory Quest Mission 8 #1677 (e3f3685) is clean, passes the validator, and builds 36 assets withreferences/memory-quest.mdincluded.memory-capture,memory-continueandmemory-curateto the manifest (fetch-skills already copies them, and the slash commands already register them). The README now lists all bundled skills, without a count that would go stale.skills/CLAUDE.mdnow listsmemory-onboarding, plusmemory-ci-capturemarked internal.skills/skills-lock.json. TheskillsCLI only readsskills-lock.jsonat the repo root, nothing in the repo reads this one, and its hashes were stale.bm-setup(Claude Code): the install command is nownpx skills add … -g. The Codex copy has no install command, so it needed no change.skills/README.mdinstall section is rewritten:npx skills add … -g, then zip upload steps for Claude (Customize → Skills; needs Code execution) and ChatGPT (Plugins → Skills; Business/Enterprise/Healthcare/Edu with admin skill uploading; use the-chatgptzips). It recommendsbasic-memory.zipand explains the bundles.skill-referencesregenerated for the new descriptions.Test plan
uv run pytest tests/test_skills_dist.py: 43 tests covering naming, collisions, layout, evals and internal exclusion, references, the combined skill's routing and links, and memory-quest pickup from a temp skills rootjust package-check-skills,just package-check(all packages)just lint,just typecheck🤖 Generated with Claude Code