Agent skill

Audit Tests

by trycompai in trycompai/comp

Audit & fix unit tests for permission-gated components. An agent skill from trycompai/comp.

AGPL-3.0Auto-check passedTesting & QA

Install Audit Tests

skills CLI
$ npx skills add trycompai/comp --skill audit-tests -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install trycompai/comp audit-tests --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/trycompai/comp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/audit-tests .claude/skills/audit-tests && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
audit-tests
GitHub stars
2k
Token cost
~280 tokens
SKILL.md length
109 words
Files
1
Skills in repo
31
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Audit & fix unit tests for permission-gated components. An agent skill from trycompai/comp.

  • Works in 3 steps: Admin (write) user: mutation elements… → Auditor (read-only): mutation elements… → Data always visible: read-only content…
  • Tasks that involve Unit testing
  • SKILL.md covers Infrastructure, Required Test Pattern and Process
  • Calls bunx

What it does

Audit Tests is an agent skill from trycompai/comp. Audit & fix unit tests for permission-gated components

Its SKILL.md is about 280 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Unit testing. It works with Vitest. The repository describes itself as: AI Native platform to get companies compliant - Vanta & Drata Alternative. The licence is AGPL-3.0.

When your agent uses it

  • Tasks that involve Unit testing

Example prompts

  • “/audit-tests”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Admin (write) user: mutation elements visible/enabled
  2. Auditor (read-only): mutation elements hidden/disabled
  3. Data always visible: read-only content renders regardless of permissions

What it can do on your machine

Read from SKILL.md and the folder at commit 1bf4d52. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • bunx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use bunx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Audit Tests loads about 280 tokens when it runs. Until then it costs about 17 tokens; SKILL.md has 109 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~17
When it runs · the whole SKILL.md, loaded when a task matches
~280

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from trycompai/comp at commit 1bf4d52, republished under its AGPL-3.0 licence (© trycompai). 109 words, ~280 tokens.

Download SKILL.mdSave it as .claude/skills/audit-tests/SKILL.md (or your agent's skills folder).
name
audit-tests
description
Audit & fix unit tests for permission-gated components

Check that unit tests exist and pass for permission-gated components. Write missing tests immediately.

Infrastructure

  • Framework: Vitest with jsdom
  • Component testing: @testing-library/react + @testing-library/jest-dom
  • Setup: apps/app/src/test-utils/setup.ts
  • Permission mocks: apps/app/src/test-utils/mocks/permissions.ts
  • Run: cd apps/app && bunx vitest run

Required Test Pattern

Every component importing usePermissions MUST have tests covering:

  1. Admin (write) user: mutation elements visible/enabled
  2. Auditor (read-only): mutation elements hidden/disabled
  3. Data always visible: read-only content renders regardless of permissions

Use setMockPermissions, ADMIN_PERMISSIONS, AUDITOR_PERMISSIONS from test utils.

Process

  1. Find components with usePermissions in $ARGUMENTS
  2. Check for corresponding .test.tsx files
  3. Write missing tests following the pattern above
  4. Fix any failing tests
  5. Run: cd apps/app && bunx vitest run

© trycompai, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/audit-tests of trycompai/comp.

Open the folder on GitHubat commit 1bf4d52

Compare with similar skills

Audit Tests next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Audit Tests compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Audit Tests this skilltrycompai/comp2k—~280Automated safety check: PassAGPL-3.0
Test Writing WorkflowiOfficeAI/AionUi33k1 repos~1.2kAutomated safety check: PassApache-2.0
Test GuardamElnagdy/guard-skills1.3k2 repos~2.1kAutomated safety check: PassMIT
Adding LLM MCP ToolsTriliumNext/Trilium38k—~2.5kAutomated safety check: PassAGPL-3.0
Concept Page Test Writerleonardomso/33-js-concepts67k—~5.5kAutomated safety check: PassMIT
Archestra Dev Testingarchestra-ai/archestra4.3k—~3.2kAutomated safety check: PassCustom licence

Similar skills

  • Test Writing Workflow

    iOfficeAI/AionUi

    Sets the test-writing workflow for the repository: risk-first scenario lists, behavior-focused Vitest tests, a full run before each commit and a coverage target.

    33k GitHub starsUsed in 1 repo~1.2k tokens
    Testing & QAAuto-check passed
  • Test Guard

    amElnagdy/guard-skills

    Reviews newly written or edited tests against nine rules that cut test bloat, such as mock-heavy checks and near-duplicate cases, before they are committed.

    1.3k GitHub starsUsed in 2 repos~2.1k tokens
    Testing & QAAuto-check passed
  • Adding LLM MCP Tools

    TriliumNext/Trilium

    A skill your agent uses when adding, changing, or reviewing an LLM/MCP tool in Trilium (the defineTools definitions under packages/trilium-core/src/services/llm/tools/ —…

    38k GitHub stars~2.5k tokensUpdated today
    Testing & QAAuto-check passed
  • Concept Page Test Writer

    leonardomso/33-js-concepts

    Generates Vitest tests for every runnable code example on a JavaScript concept documentation page, following a four-phase extraction and conversion process.

    67k GitHub stars~5.5k tokensUpdated 27 days ago
    Testing & QAAuto-check passed
  • Archestra Dev Testing

    archestra-ai/archestra

    A skill your agent uses for test selection and quality across backend, frontend, and e2e; load its backend reference for Vitest projects, mocking, DB fixtures, and performance.

    4.3k GitHub stars~3.2k tokensUpdated today
    Testing & QAAuto-check passed
  • Vitest

    pixel-point/animate-text

    Vitest testing framework patterns for test setup, async testing, mocking with vi., snapshots, and test performance (formerly test-vitest).

    149 GitHub starsUsed in 2 repos~1.3k tokens
    Testing & QAAuto-check passed

More from trycompai/comp

All 31 skills in this repo
  • API Endpoint Contract

    trycompai/comp

    The contract every new or modified API endpoint must follow so it is correct for the public OpenAPI spec, the MCP server (npm @trycompai/mcp-server), the ValidationPipe, and the docs.

    2k GitHub stars~2.7k tokensUpdated 5 days ago
    Auto-check passed
  • Check Results Service

    trycompai/comp

    How to reuse ANY integration check's results in a feature via the universal CheckResultsService (apps/api integration-platform).

    2k GitHub stars~2.1k tokensUpdated 5 days ago
    Auto-check passed
  • Data

    trycompai/comp

    A skill your agent uses when implementing data fetching, API calls, server/client components, or SWR hooks

    2k GitHub stars~955 tokensUpdated 5 days ago
    Auto-check passed
  • A skill your agent uses when SDK generation failed or seeing errors.

    2k GitHub stars~938 tokensUpdated 5 days ago
    Auto-check passed
  • Forms

    trycompai/comp

    A skill your agent uses when building forms - covers React Hook Form, Zod validation, and form patterns

    2k GitHub stars~1k tokensUpdated 5 days ago
    Auto-check passed
  • Code

    trycompai/comp

    A skill your agent uses when writing TypeScript/React code - covers type safety, component patterns, and file organization

    2k GitHub stars~909 tokensUpdated 5 days ago
    Auto-check: warnings

Works with

Categories

Questions about Audit Tests

What does Audit Tests do?

Audit & fix unit tests for permission-gated components. An agent skill from trycompai/comp. Audit Tests is an agent skill from trycompai/comp.

When should I use Audit Tests?

Audit Tests fits situations like: tasks that involve Unit testing.

How do I install Audit Tests in Claude Code?

Run `npx skills add trycompai/comp --skill audit-tests -a claude-code`. Or copy the skill folder (.agents/skills/audit-tests in trycompai/comp) into .claude/skills/audit-tests in your project. Claude Code loads it when a task matches its description.

How do I install Audit Tests in Codex?

Run `npx skills add trycompai/comp --skill audit-tests -a codex`. Or copy the skill folder (.agents/skills/audit-tests in trycompai/comp) into .agents/skills/audit-tests in your project. Codex loads it when a task matches its description.

Can I use Audit Tests in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add trycompai/comp --skill audit-tests -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/audit-tests, .gemini/skills/audit-tests, .github/skills/audit-tests and .opencode/skills/audit-tests in your project.

What does Audit Tests need to run?

Going by SKILL.md and its folder, Audit Tests needs the command-line tools its instructions call (bunx).

Does Audit Tests access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Audit Tests safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Audit Tests use?

Audit Tests is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Audit Tests use?

About 280 tokens (SKILL.md is roughly 1.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Audit Tests?

Skills that share tags, products or a category with Audit Tests: Test Writing Workflow (iOfficeAI/AionUi, 33k stars), Test Guard (amElnagdy/guard-skills, 1.3k stars), Adding LLM MCP Tools (TriliumNext/Trilium, 38k stars) and Concept Page Test Writer (leonardomso/33-js-concepts, 67k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Audit Tests?

trycompai (a GitHub organization) maintains it in trycompai/comp, which has 2,016 GitHub stars. The repository holds 31 skills in this directory. The repository was last updated on October 2, 2026.

Source: trycompai/comp on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.