소스 정보
- 저장소
- lev-os/agent-lease
- 최근 소스 활동
- 2026년 3월 7일 06:22
- 감지된 SKILL.md 언어
- 영어
- 스타
- 0
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/lev-os/agent-lease --skill agentguard명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | agentguard |
| description | Standards-enforcing validation gates for git commits. Catches what linters miss. |
| version | 3.3.0 |
| tags | validation, git-hooks, agent, code-review, husky, lefthook |
Standards-enforcing validation gates for AI agents. Scans your codebase, learns your patterns, and blocks commits until validation passes. Not a replacement for lint/build/test. Those are deterministic — run them in CI. agentguard catches everything else: the patterns linters miss, the standards PR reviewers enforce manually.
skills.sh (Claude Code, Codex, Cursor):
npx skills add chidev/agentguard
ClawdHub (OpenClaw):
npx clawhub@latest install agentguard
Then invoke:
"Use agentguard to add standards-enforcing validation gates to this repo"
Read the project to understand what exists before configuring anything.
scripts (build, lint, test, typecheck), devDependencies, detect package manager (npm/pnpm/bun via lockfile).husky/, lefthook.yml, .git/hooks/* for active hook systems.agentguard.json (already configured? skip to Step 4)CLAUDE.md, AGENTS.md for existing agent instructions and project standardsgh pr list --limit 5 --json title,url and check recent review comments for recurring feedback patternsShow the user what was discovered:
╔══════════════════════════════════════════════════════════════╗
║ AGENT-LEASE DISCOVERY ║
╠══════════════════════════════════════════════════════════════╣
║ Project: {name} Package Manager: {pm} ║
╠──────────────────────────────────────────────────────────────╣
║ EXISTING HOOKS ║
║ {list hooks found, or "None detected"} ║
╠──────────────────────────────────────────────────────────────╣
║ DETERMINISTIC CHECKS (from package.json scripts) ║
║ {list: lint, build, test, typecheck — mark found/missing} ║
╠──────────────────────────────────────────────────────────────╣
║ NON-DETERMINISTIC PATTERNS ║
║ {from PR comments: "update changelog", "add tests", etc} ║
║ {from CLAUDE.md: project standards found} ║
╚══════════════════════════════════════════════════════════════╝
Ask the user:
npx agentguard init — installs hooks (detects husky automatically, falls back to .git/hooks/).agentguard.json with runners based on user input:
package.json.agentguard/commit.md — template with standards the user chose, injected into LLM review prompts via {{standards}}.agentguard/push.md — template for push-phase review standards (if push runners configured)Display what was configured:
╔══════════════════════════════════════════════════════════════╗
║ AGENT-LEASE CONFIGURED ║
╠══════════════════════════════════════════════════════════════╣
║ Hook System: {husky | lefthook | .git/hooks} ║
╠──────────────────────────────────────────────────────────────╣
║ COMMIT PHASE ║
║ [deterministic] lint {command} ║
║ [deterministic] typecheck {command} ║
║ [pattern] review claude -p '...' ║
╠──────────────────────────────────────────────────────────────╣
║ PUSH PHASE ║
║ [deterministic] test {command} ║
╠──────────────────────────────────────────────────────────────╣
║ Templates: .agentguard/commit.md, .agentguard/push.md ║
║ Config: .agentguard.json ║
╚══════════════════════════════════════════════════════════════╝
| Command | Description |
|---|---|
agentguard init | Install hooks + config + templates (detects husky) |
agentguard commit | DENY: show gate template, create lock, exit 1 |
agentguard commit --audit-proof='...' | RELEASE: accept proof, release lock, exit 0 |
agentguard push | DENY: show gate template, create lock, exit 1 |
agentguard push --audit-proof='...' | RELEASE: accept proof, release lock, exit 0 |
agentguard status | Check current lock state |
agentguard clear | Remove all locks for this project |
agentguard release --audit-proof | Legacy: run all runners internally and release |
When an agent attempts git commit:
npx agentguard commit → DENY: shows gate template with ⛔ --no-verify is FORBIDDEN headernpx agentguard commit --audit-proof='## Validation Report\nRunner: lint\nStatus: PASS\nOutput: clean\n\nSummary: All passed.'git commit again → hook calls agentguard commit → sees proof → exit 0 → commit succeedsThe key: agents cannot skip validation. The lock persists until proof is submitted.
Available in runner command strings:
| Variable | Value |
|---|---|
{{diff}} | Staged changes (commit phase) or origin/main...HEAD diff (push phase) |
{{files}} | List of changed file paths |
{{project}} | Project name from .agentguard.json |
{{branch}} | Current git branch |
{{hash}} | Current commit hash |
Runners are defined in .agentguard.json under "runners":
Deterministic (binary pass/fail):
{ "name": "lint", "command": "pnpm run lint", "on": "commit" }
{ "name": "test", "command": "pnpm test", "on": "push" }
Pattern (LLM review):
{
"name": "haiku-review",
"command": "claude -p 'Review against standards:\n{{diff}}'",
"on": "commit",
"llm": true
}
Each runner needs name, command, and on (which phase: "commit" or "push").
SOC 직업 분류 기준