AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

M Code Rules Audit

skill-mapuamap-denys-fast-mskills-m-code-rules-audit · by mapuamap

Audit code against the rules that actually exist in this repo (CLAUDE.md, .claude/rules, configs, CI) plus the deterministic checks that can run safely — architecture boundaries, tests, typecheck, lint, build, security-sensitive changes. report-only by default. Use for PR/commit readiness and rule-compliance checks; complements /code-review, which is rule-agnostic.

No reviews yet
0 installs
21 views
0.0% view→install

Install

$ agentstack add skill-mapuamap-denys-fast-mskills-m-code-rules-audit

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-mapuamap-denys-fast-mskills-m-code-rules-audit)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of M Code Rules Audit? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

mcoderules_audit

Audit code against the rules that actually exist in the repo and the deterministic checks that can be run safely.

Contract

Use $ARGUMENTS as the target file, directory, branch, diff, PR, or rule focus.

Default mode is report-only. Do not edit code unless the user explicitly asks for fixes.

Never claim a check passed unless it ran in this session or the user provided the result.

Workflow

1. Determine scope

If a target is given, audit that target.

If no target is given:

- audit the current working-tree diff
- if there is no diff, audit the highest-risk project rules and structure

Inspect:

- git status
- git diff / changed files, when available
- target files
- nearby tests
- relevant configs and docs

2. Load rule sources in order

Read applicable rules from:

1. User's explicit request
2. CLAUDE.md and .claude/CLAUDE.md
3. .claude/rules/**/*.md
4. nested CLAUDE.md files near target files
5. README, docs/architecture.md, ADRs, contribution guide
6. package/build scripts and test config
7. lint/typecheck/formatter configs
8. CI workflows
9. visible framework/repo conventions

If AGENTS.md exists but no CLAUDE.md imports or mirrors it, report that Claude Code may miss those instructions.

If rules conflict, report the conflict. Do not silently choose the convenient rule.

3. Classify risk

Mark these as high-risk areas:

authentication
authorization/permissions
billing/payments
migrations/schema changes
data deletion or retention
security-sensitive parsing/validation
cryptography/secrets/config
external API contracts
concurrency/race-prone code
production deployment behavior

High-risk changes require stronger evidence, tests, and human review.

4. Run deterministic checks when safe

Delegate noisy or large-output runs to the m_code-test-runner agent and keep only its concise summary plus the exact commands. Prefer repo-defined commands over invented commands:

format check
lint
typecheck
test
focused test for changed area
integration test only when environment is available
build
security/secret scan if configured

Skip destructive, production-touching, or environment-dependent commands unless safe prerequisites are present. Report exact skip reason.

LLM review is not a deterministic check. Treat it as supplementary.

5. Audit dimensions

Check only against evidence. For the architecture dimension you can delegate an independent read to the m_code-architecture-reviewer agent and fold its findings in:

Rules compliance:
- Does code follow CLAUDE.md/rules/docs/configs?

Architecture:
- dependency direction
- domain vs application vs adapter boundaries
- direct DB/API/filesystem/env/time/random calls in core logic
- circular dependencies
- broad utils/helpers/misc modules

Testing:
- behavior covered by tests
- regression tests for bug fixes
- test seams at external boundaries
- over-mocking or tests coupled to private implementation

Code quality:
- single responsibility
- naming clarity
- duplication
- type safety
- error handling
- edge cases
- observability where needed

Security:
- validation and escaping
- permission checks
- secret handling
- unsafe command/file/network behavior
- untrusted input and prompt-injection-sensitive surfaces

Delivery:
- docs updated when behavior/API changed
- migration safety
- CI compatibility

6. Severity rules

Use these severities:

blocker: should stop merge/commit; correctness/security/data loss/build break/high-risk rule violation
high: likely bug, significant architecture violation, missing test for risky behavior
medium: maintainability/testability issue with clear future cost
low: style, naming, documentation, small cleanup

Every finding must include evidence and a concrete fix.

7. Fix mode

If the user asks to fix:

1. fix blockers first
2. make the smallest safe patch
3. do not expand scope
4. rerun relevant checks
5. report remaining findings separately

Final response format

Audit scope:
- 

Rules inspected:
- 

Checks run:
- : pass/fail/skipped + reason

Findings:
1. [severity] 
   Rule/source: 
   Evidence: 
   Impact: 
   Fix: 

Compliance summary:
- Ready to commit/merge: yes/no
- Blockers: 
- High: 
- Medium: 
- Low: 

Recommended next action:
- 

If no issues are found, still state what was inspected and what checks ran. Do not say fully compliant unless the relevant rules were inspected and required checks passed.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.