# Repo Audit

> Run lint, typecheck, test, and test:render; collect results and produce a short audit report. Use when asked to "audit the repo", "check project health", or "run full validation". Use when this capability is needed.

- Skill: `tomevault-io/repo-audit-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/repo-audit-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/repo-audit-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/repo-audit-2

---


# Repo Audit

Run the validation pipeline and produce a short markdown report.

## Input

- Open workspace (TikTok-AI-Agent). Optionally a "scope" (e.g. "backend only") – still run from root; you may skip `test:e2e` if scope is backend-only.

## Steps

1. From repo root, run in order:
   - `npm run lint` – note pass or first ~5 lines of errors.
   - `npm run typecheck` – note pass or first ~5 lines of errors.
   - `npm run test` – note pass or failing test names/messages.
   - `npm run test:render` – note pass or failures.
2. Optionally `npm run test:e2e` if full audit (requires Playwright browsers).
3. Produce a **short markdown report** with:
   - Each step: **ok** or **fail** + summary.
   - Final line: **Audit: pass** or **Audit: fail** and list of failed steps.

## Output

A concise report, e.g.:

```markdown
## Repo audit

- `npm run lint` – ok
- `npm run typecheck` – ok
- `npm run test` – ok
- `npm run test:render` – ok

**Audit: pass**
```

Or, on failure, which steps failed and the first few error lines.

## References

- [.cursor/commands/validate.md](.cursor/commands/validate.md) – validate command (same steps, no report format)
- [docs/testing.md](../../docs/testing.md) – test setup, env, commands

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/sedarged) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-13 -->

