Repository navigation
Restructure as a cross-agent plugin - #1
Merged
Merged
Conversation
Make the repository an installable Claude Code plugin and its own marketplace, so the rules and the skills apply in every repository on any machine after one install. - AGENTS.md holds the rules and is the single source of truth. Codex reads it directly. CLAUDE.md imports it and adds the rules that apply only to this repository. - A SessionStart hook sends the rules into every session, because a plugin cannot supply a CLAUDE.md. - A PreToolUse hook denies package installs and escalates a commit or a push to the user. Instructions are context and are not enforced, so the rules that must hold need a hook. - Move the skill to skills/, the default location of a plugin. - Add tests for both hooks and a CI workflow that runs them. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The push trigger and the pull request trigger both started a run for a branch of a pull request, so every push ran the full matrix two times. The push trigger now applies to main only. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
anwai98
force-pushed
the
plugin-restructure
branch
from
July 22, 2026 21:45
42d3dae to
f5a3b24
Compare
Add native Codex plugin and marketplace manifests while keeping the rules, skills, and hooks shared with Claude Code. Strengthen command enforcement, expand regression coverage, document the dual-agent setup, and pin the skill validator used by CI. Co-authored-by: codex <codex@openai.com>
Document the standing commit attribution rule for Codex-created commits. Co-authored-by: codex <codex@openai.com>
Close the gaps that a code review found in the two hooks. enforce-rules.sh: - Inspect the command inside a runner, as in `micromamba run -n super pip install x`. A new `inspect_runner` reuses the subcommand parser to skip the runner options, then recurses into the nested command. This also covers `conda run`, `mamba run`, and `uv run`. - Count a `--help` or a `--dry-run` only in an option position, so `git commit -m --help` stays a real commit and still asks the user. - Read `python -m pip` in the attached form `-mpip` and inside a bundle of short options such as `-um pip`. - Block every install verb, not only `install`: `uv add`, `uv sync`, `uv tool install`, and the conda and micromamba verbs `create`, `update`, `upgrade`, and `env create`/`env update`. - Return early on an empty argument list, so the hook does not abort on bash 3.2 under `set -u`. macOS ships bash 3.2, and the CI runs there. - Hold the deny messages in named globals instead of repeated string literals. emit-rules.sh: - Read the plugin root from CLAUDE_PLUGIN_ROOT, then PLUGIN_ROOT, then the script location, so an empty variable no longer reads `/AGENTS.md`. - Warn on stderr when the rules file or both JSON tools are absent, so a broken install does not look the same as a working one. Add a Compatibility rule to AGENTS.md: do not add backward compatibility for a new feature unless the user asks for it. Extend tests/test-hooks.sh to cover all of the above. 128 pass, 0 fail. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VCMqu2544iQSf5yzWdqLg2
Harden nested preview parsing, heredocs, command prefixes, and Codex approval handling. Co-authored-by: codex <codex@openai.com>
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.
Makes the repo an installable plugin and its own marketplace, so the rules and skills apply everywhere after one install.
AGENTS.mdis the single source of truth;CLAUDE.mdimports itSessionStarthook ships the rules globally;PreToolUsehook enforces the non-negotiable onesskills/; tests + CI addedSee
docs/design.mdfor rationale.🤖 Generated with Claude Code