ClaudeMods
☰
KO
● 0 명 접속 중 · 조회 0 회
후원프로젝트 제출
GitHub 저장소 · 작성자 Sarb0Z

publish-approval

push, deploy 또는 publish를 실행하기 전에 대화 상자에서 사용자의 승인을 묻고 모든 권한 모드에서 게시 가드를 통과시키는 Claude Code 플러그인 hook입니다.

Sarb0Z@Sarb0Z

Sarb0Z/colloid-swarm/tree/main/.agents/claude/mods/publish-approval

번역 완료

이 mod 소개

Claude Code에 hook을 추가해 도구 호출(Bash, PowerShell, Monitor, Artifact)을 가로채고 push, deploy 또는 publish가 실행되기 전에 대화 상자에서 사용자의 승인을 묻습니다. 어떤 권한 모드에서도 작동합니다.

이 hook은 대상 저장소의 guard-publish.py를 실행하고 도구 사용 id를 키로 승인을 마커 파일에 기록하며, 필요할 때 AskUserQuestion으로 다시 묻습니다. Claude Code, Codex, Kimi, GitHub Copilot용 이식 가능한 에이전트 스캐폴드인 Colloid Swarm 스캐폴드의 일부입니다. 엔진에 중립적인 hook 정책은 .agents/hooks/policy/ 아래에 있고 호스트 어댑터가 페이로드를 변환합니다.

저장소를 클론하고 익스포터를 실행해 스캐폴드 키트를 만들면 설치할 수 있습니다.

git clone https://github.com/Sarb0Z/colloid-swarm.git
cd colloid-swarm
.agents/export-scaffold.py /tmp/scaffold-kit

Bash, Python 3, Node.js 22+가 필요합니다. test-guard-publish.py와 test-session-start.sh를 포함한 저장소 테스트 모음으로 확인하세요. 저장소 전체에 적용할 라이선스는 아직 선택되지 않았습니다.

설치

먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.

claude plugin marketplace add Sarb0Z/colloid-swarm
claude plugin install publish-approval
원문 / README

Colloid Swarm

A portable agent scaffold for Claude Code, Codex, Kimi, and GitHub Copilot. Canonical instructions, skills, hook policies, personas, and MCP definitions live under .agents/; host directories contain direct links or thin adapters.

This repository also carries an experimental genome layer. Exports remove it.

Install

Requirements are Bash, Python 3, and Node.js 22+ for the two repository-owned MCP servers.

git clone https://github.com/Sarb0Z/colloid-swarm.git
cd colloid-swarm
.agents/export-scaffold.py /tmp/scaffold-kit

The exporter reads the current Git commit and refuses a non-empty destination. Review the kit, then follow export/README.md to merge it into a target. It includes .agents/, static .claude/ and .codex/ integration, Kimi config, Copilot links, root instructions, and the transplant guide. Dirty or ignored local state does not travel.

Architecture

  • AGENTS.md: operating contract and delegation policy.
  • .agents/personas/: Claude-native cached roles; .claude/agents/ links here.
  • .codex/agents/: static Codex roles with exact invocation model/effort.
  • .agents/skills/: reusable, progressively disclosed workflows.
  • .agents/rules/: scoped codebase and framework guidance.
  • .agents/hooks/: engine-neutral policies plus host payload adapters.
  • .agents/mcp.json: server definitions and project on/off state.
  • .agents/playbooks/: focused review, QA, wrap, and reporting procedures.

Run python3 .agents/check-layout.py after changing scaffold inventory. It checks committed links without generating or pruning files.

Delegation defaults

| Work | Claude | Codex | | --- | --- | --- | | Mechanical or bounded exploration | Haiku | gpt-5.6-luna / low | | Implementation, QA, research | Claude Sonnet 5 | gpt-5.6-terra / medium | | Well-specified work too broad for medium; the lead | Claude Opus 5 | gpt-5.6-sol / high | | Complex or critical work | Claude Fable 5.1 | — |

The cached personas cover common work but do not restrict generic delegation. The Opus lead sends well-specified work to the cheapest tier that can solve and verify it and complex work up to Fable, and grants only the capabilities that task needs.

MCP capabilities

The tracked registry directly owns state. Defaults are Context7, Playwright, and the repository-owned research server; mobile automation, live security scanning, issue trackers, and keyed search services remain off until requested.

python3 .agents/mcp.py
python3 .agents/mcp.py enable appium-mcp
python3 .agents/mcp.py disable appium-mcp

The command writes .mcp.json, .codex/config.toml, optional .kimi-code/mcp.json, Claude's enabled-server list, and the reader and default browser configs. Restart the session after a state change.

| Server | Default | Purpose | | --- | --- | --- | | context7 | on | current library documentation | | playwright | on | browser QA; optional synced site cookies and proxy (see .agents/README.md) | | research-mcp | on | readable web/PDF research | | playwright-reader | off | browser reading with an installed blocker | | appium-mcp | off | mobile device/simulator QA | | security-mcp | off | authorized live-target scanning | | linear, atlassian | off | issue and knowledge systems | | greptile, exa | off | keyed external services |

User- and plugin-level host configuration may still add unknown capabilities. Project records mask only the same server names; this is not a machine-wide allowlist.

Hooks

Policies under .agents/hooks/policy/ receive normalized JSON on stdin. The active set covers destructive-command refusal, focused post-edit checks, research/source context, compaction recovery, session start/wrap, and stop inspection. Host adapters translate payloads; policies own behavior.

Codex hook declarations are hash-trusted. After changing them, review the file and run:

python3 .agents/codex/trust-hooks.py "$(pwd)"

Verification

python3 .agents/check-layout.py
.agents/lint-skills.sh
.agents/test-session-start.sh
python3 .agents/test-guard-destructive.py
python3 .agents/test-guard-publish.py
.agents/test-mcp.sh
.agents/test-codex.sh
.agents/test-export.sh

Each repository-owned MCP server also runs npm run check. CI runs the static and focused behavior suites; local test-codex.sh additionally proves that the installed Codex binary loads the project MCP records.

Deferred work and evidence

  • .agents/breadcrumbs.md: deferred work, surfaced at SessionStart.
  • .agents/debt-log.md: standing tradeoffs referenced as debt: <id>.
  • .agents/knowledge/: dated external observations indexed on demand.

Experimental genome layer

Colloid alone carries genomes.md, .agents/genome.sh, the mutagen, and the panspermia-mutation skill. The export removes those files, their hooks, config keys, and links. Run bash demo/demo.sh for the offline scaffold demonstration.

License

No repository-wide license has been selected. The learning-output-style playbook has its own Apache-2.0 notice under .agents/licenses/.

비슷한 프로젝트