LeoYeAI/agent-master-skills / skills/agentaudit
agentaudit-skill
FlaggedAutomatic security gate that checks packages against a vulnerability database before installation. Use before any npm install, pip install, yarn add, or package manager operation.
| File | Kind | Size |
|---|---|---|
| README.md | markdown | 33.7 KB |
| SKILL.md | skill md | 18.0 KB |
| _meta.json | config | 631 B |
| config/credentials.json | config | 89 B |
| install.sh | script | 5.7 KB |
| prompts/audit-prompt.md | markdown | 36.6 KB |
| prompts/review-prompt.md | markdown | 2.8 KB |
| references/API-REFERENCE.md | markdown | 4.1 KB |
| references/AUDIT-METHODOLOGY.md | markdown | 6.8 KB |
| references/DETECTION-PATTERNS.md | markdown | 5.9 KB |
| references/REPORT-FORMAT.md | markdown | 5.0 KB |
| references/TROUBLESHOOTING.md | markdown | 4.4 KB |
| references/TRUST-SCORING.md | markdown | 2.2 KB |
| scripts/_curl-retry.sh | script | 850 B |
| scripts/_load-key.sh | script | 1.6 KB |
| scripts/check.mjs | script | 6.3 KB |
| scripts/check.sh | script | 5.7 KB |
| scripts/gate.mjs | script | 5.1 KB |
| scripts/gate.sh | script | 4.9 KB |
| scripts/register.mjs | script | 4.7 KB |
| scripts/register.sh | script | 3.4 KB |
| scripts/rotate-key.sh | script | 2.3 KB |
| scripts/upload.mjs | script | 7.3 KB |
| scripts/upload.sh | script | 8.4 KB |
| scripts/verify.sh | script | 3.6 KB |
references/TRUST-SCORING.md
View on GitHub# Trust Score System
Every audited package gets a Trust Score from 0 to 100.
## Score Meaning
| Range | Label | Meaning |
|-------|-------|---------|
| 80β100 | π’ Trusted | Clean or minor issues only. Safe to use. |
| 70β79 | π’ Acceptable | Low-risk issues. Generally safe. |
| 40β69 | π‘ Caution | Medium-severity issues found. Review before using. |
| 1β39 | π΄ Unsafe | High/critical issues. Do not use without remediation. |
| 0 | β« Unaudited | No data. Needs an audit. |
## Calculation Formula
```
Trust Score = max(0, 100 - penalties)
Penalties per finding (only where by_design = false):
Critical: -25
High: -15
Medium: -8
Low: -3
By-design: 0 (excluded from score)
```
**Component-Type Weighting**: Apply Γ1.2 multiplier to penalties for findings in high-risk component types (hooks/, configs, MCP servers, plugin entry points).
**Example**: 1 critical + 2 medium findings β 100 - 25 - 8 - 8 = **59** (β οΈ Caution)
## How Scores Change
| Event | Effect |
|-------|--------|
| Critical finding confirmed | Large decrease (-25 base) |
| High finding confirmed | Moderate decrease (-15 base) |
| Medium finding confirmed | Small decrease (-8 base) |
| Low finding confirmed | Minimal decrease (-3 base) |
| Clean scan (no findings) | +5 |
| Finding fixed (`/api/findings/:asf_id/fix`) | Recovers 50% of penalty |
| Finding marked false positive | Recovers 100% of penalty |
| Finding in high-risk component | Penalty Γ 1.2 multiplier |
## Recovery
Maintainers can recover Trust Score by fixing issues and reporting fixes:
```bash
# Use asf_id (e.g., ASF-2026-0777), NOT numeric id
curl -s -X POST "https://agentaudit.dev/api/findings/ASF-2026-0777/fix" \
-H "Authorization: Bearer $AGENTAUDIT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"fix_description": "Replaced exec() with execFile()",
"commit_url": "https://github.com/owner/repo/commit/abc123"
}'
```
## By-Design Findings
Findings with `by_design: true` are reported for transparency but have `score_impact: 0` and don't reduce the Trust Score. These are patterns that are core to the package's documented purpose (e.g., `exec()` in an agent framework).
See [AUDIT-METHODOLOGY.md](AUDIT-METHODOLOGY.md) for by-design classification criteria.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |