Repository navigation
chore: prepare the plugin for Anthropic's plugin directory - #23
Merged
Merged
Conversation
added 20 commits
October 20, 2026 16:17
Anthropic's plugin directory scans only the submitted plugin folder, and installs copy only that folder. Moving the plugin out of the repository root keeps evals, tests, release evidence, START_HERE.md and packages/init, with their synthetic keys and environment-variable examples, out of the scanned and installed surface. - plugins/lago/ holds the manifests, the implementation skill, examples/ (the skill already linked to it), LICENSE and RELEASE-MANIFEST.json. - The root marketplaces point at ./plugins/lago, so lago@lago-plugins is unchanged for Claude Code, Codex, Copilot CLI and Cursor. - validate_repo.py, build_agent_files.py and list_external_links.py move to scripts/ and no longer ship. - The release manifest now hashes the plugin folder only.
- One-sentence description of what the plugin does for a developer. - icon (Lago mark, 512x512 PNG), documentationUrl, privacyPolicyUrl and termsOfServiceUrl, which the directory listing reads. - author.url, homepage pointing at the plugin README, version 0.3.0 in the Claude Code and Codex manifests; generated Gemini and Cursor files follow.
The directory shows the plugin README as the listing description, and the security scan expects everything the plugin runs, sends or fetches to be described there. - plugins/lago/README.md opens with what the plugin does, then install steps for Claude Code, Codex and the directory (once listed), the offline demo, and "What this plugin runs, sends and stores": every shipped script, every network destination, every file written, and the production approval rule. - The root README becomes the repository page and links to it, keeping the other-agent installs, MCP and CLI framing, and development notes. Gemini CLI cannot install an extension from a subfolder, so it now installs the skill with --path or the full extension from a clone. - Install-command consistency tests read the plugin README.
scripts/check_directory_limits.py fails on what the pre-submission checklist blocks or holds: more than 512 plugin files, a non-image file over 256 KiB, any file of 5 MiB or more, binaries other than PNG, JPEG, GIF, WebP or fonts, OS junk files, symlinks, submodules, LFS pointers, forbidden .gitattributes rules, Windows-invalid or case-colliding names, and archive size or entry limits. A new CI job runs it and `claude plugin validate --strict` on the plugin and the marketplace with Claude Code pinned to 2.1.292. Compile checks cover scripts/. OS junk names are gitignored.
… a token Secret scanners pair a key containing "token" with a 64-character value. In RELEASE-MANIFEST.json the key "examples/per-token-ai.md" and its SHA-256 digest matched gitleaks' generic-api-key rule, the only finding in the plugin folder. A credential match blocks a directory submission, so the file is now examples/ai-usage-billing.md.
Claude Code writes a small `.in_use/<pid>` liveness record per running session into its installed plugin copy. release_integrity.py reported those as unexpected files, so the skill's pre-demo integrity check failed in every live session. The skill must not run bundled code after a failed check, so the offline demo was either refused or run against the rule. Exempt only root-level, digit-named regular files of at most 1 KiB under `.in_use/`, and only when the manifest declares `.claude-plugin/plugin.json`. Source changes, other extra files, nesting, oversize records, and symlinks still fail. Mirrors the existing Gemini install-record exemption.
…ns/lago/ The plugins/lago/ path rewrite also rewrote the glob that locates the skill inside an installed Codex plugin copy, where the path starts at skills/.
`claude plugin eval` reads cases only from inside the plugin folder
("--eval-dir must stay inside the plugin root"), so the documented
`claude plugin eval . --eval-dir evals/...` commands and the benchmark
runner stopped working once the plugin moved to plugins/lago/.
scripts/plugin_eval.py copies plugins/lago/ and one suite into a temporary
folder at the same relative path, regenerates that copy's release manifest
so the skill's integrity check sees a consistent bundle, as it did when the
suites shipped inside the plugin, runs the eval, and removes the copy.
The safety and trigger READMEs and run_benchmark.py use it.
docs/directory-readiness.md audits the repository against each item of Anthropic's pre-submission checklist, before and after this branch, with the verification output. docs/directory-submission-handoff.md gives the Lago Owner the portal values, draft data-handling answers, expected review points with answers, and post-launch steps. CHANGELOG records the branch.
…erification The plugins/lago/ path rewrite made verify_demo look for plugins/lago/skills/... inside an installed Gemini extension, where the bundle root is the plugin folder. Copilot's check ran the demo from the repository root instead of the plugin it had just verified.
The check read file contents from the working tree. On a case-sensitive file system a name that exists only in the index, such as the second half of a case collision, could not be opened. Reading blobs also matches what the directory sees: the repository as Git archives it.
sarkissianraffi
marked this pull request as ready for review
October 21, 2026 00:25
added 8 commits
October 20, 2026 19:38
added 7 commits
October 20, 2026 20:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves the installable Lago plugin to
plugins/lago/and fixes directory, billing-template and evaluation issues found during the CTO review. Install identity:lago@lago-plugins; version: 0.3.1. Nothing has been published, tagged, merged or submitted.Changes
Verified evidence (source commits retained)
Additional evidence
Current release status (582eac5)
Local checks on 582eac5 pass: 112/112 Python tests, 9/9 init tests, repository validation, generated-file sync, release integrity, marketplace and strict directory validation, directory limits (51 plugin files), and
run_demo.pyunder OS-enforced network denial. GitHub CI was still pending when this body was updated. The shipped plugin version is 0.3.1.The release evidence is incomplete. The full 100-case Codex candidate rerun was stopped at the user's request after 69/100 executions; it is not a scorecard. Baseline manual review is 61/100, so no no-regression claim is made. Claude's safety run on d1e0ade failed four cases. A focused rerun against the current fix passed the new no-unbound-sender check in 3/3 runs, but its approval-wording grader passed only 1/3; trace review found no production call or event sender, but the gate wording remains inconsistent. The five-run Claude no-plugin
START_HEREtest is disqualified because the repository source changed during the run (source_changed=true); its trace review also found an in-memory database and incomplete webhook/outbox work. Final-revision fresh-agent success is not measured. Claude behavioral/trigger suites and the benchmark were not completed.The matched Codex trigger comparison at d1e0ade remains valid: 31/32 should-trigger prompts (96.9%), 0/15 near-misses, one run per prompt. It meets the stated thresholds but does not demonstrate improvement. The local install/directory gates pass, but behavioral and fresh-agent evidence do not establish publish readiness. No directory submission, publication, tag or merge has occurred.
Historical verification record · Directory checklist audit · Submission handoff
Do not merge or submit on deterministic CI alone.