Agent skill
verify-meshjs-governance
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/verify-meshjs-governance
SKILL.md
Verify
Comprehensive verification before PRs. Runs all quality gates and produces a structured pass/fail report.
Modes
- quick: Build + type check only (fastest)
- full (default): Build + types + lint + debug statement audit + git status
- pre-pr: Full + security scan (secrets, env files, API keys)
Instructions
Step 1: Determine Mode and Build System
Check the argument. Default to full if none provided.
Detect the build system:
package.json→ npm/yarn/pnpm (check forbuild,typecheck,lintscripts)Cargo.toml→ cargo (build, clippy)go.mod→ go (build, vet, lint)pyproject.toml→ python (build, mypy, ruff/flake8)Makefile→ make targets
Step 2: Run Checks
Run checks sequentially. Stop early on CRITICAL failures (build, types) since later checks depend on them.
2a. Build Check
<build-command> 2>&1
- PASS: Build completes without errors
- FAIL: Any build errors
If build fails, STOP. Report the errors and suggest running /build-fix.
2b. Type Check (quick mode stops here)
The build usually includes type checking. For explicit type check without full build:
- TypeScript:
npx tsc --noEmit - Python:
mypy .orpyright - Go:
go vet ./... - Rust:
cargo check
2c. Lint Check
-
JS/TS:
npm run lintornpx eslint . -
Python:
ruff check .orflake8 -
Go:
golangci-lint run -
Rust:
cargo clippy -
PASS: No lint errors (warnings are OK)
-
FAIL: Any lint errors
2d. Debug Statement Audit
Search for debug statements in source files (excluding node_modules, build output, tests):
| Language | Pattern |
|---|---|
| JS/TS | console.log( |
| Python | print( (in non-CLI code), breakpoint(), pdb.set_trace() |
| Go | fmt.Println( (debug-only) |
| Rust | dbg!( |
- PASS: No debug statements
- WARN: Debug statements found (list file:line)
2e. Security Scan (pre-pr mode only)
Search for potential secrets and sensitive data:
Use Grep tool to search across source files:
- Hardcoded API keys:
api[_-]?key\s*[:=]\s*['"][^'"]+['"](case insensitive) - Hardcoded secrets:
secret\s*[:=]\s*['"][^'"]+['"](case insensitive) - Hardcoded passwords:
password\s*[:=]\s*['"][^'"]+['"](case insensitive) - Private keys:
-----BEGIN.*PRIVATE KEY----- .envfiles committed:git ls-files | grep '\.env'
Also check that .env is in .gitignore.
2f. Git Status
git status
git diff --stat
Report uncommitted changes, untracked files.
Step 3: Report
VERIFICATION: [PASS/FAIL]
═══════════════════════════════
Build: [PASS/FAIL]
Types: [PASS/FAIL] (X errors)
Lint: [PASS/FAIL] (X issues)
Debug stmts: [CLEAN/X found]
Security: [CLEAN/X issues] (pre-pr only)
Git: [clean/X uncommitted changes]
═══════════════════════════════
Ready for PR: [YES/NO]
If any check fails, list the specific failures below the report with file:line references.
Step 4: Recommendations
If verification fails:
- Build/Type errors → suggest
/build-fix - Lint issues → suggest auto-fix command
- Debug statements → list files to clean
- Security issues → flag as CRITICAL, do not proceed
- Uncommitted changes → suggest committing or stashing
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?