Skip to content
Back to skills

Tasks

ASecurity

> **Portable task** — copy this file to any project's `tasks/` directory and run: > `Run tasks/audit-skill.md` > **Source guides:** `03_SKILLS.md`, `02_PROMPTING_BASICS.md`

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 19, 2026
ai-agentspythonbashapidocumentation

Works with

  • claude code
  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned November 12, 2026

npx -y skills add KalastajaM/Cluide --skill tasks --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tasks?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tasks
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kalastajam-tasks/badge)](https://www.skillsdirectory.com/skills/kalastajam-tasks)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Task: Audit Skill

> **Portable task** — copy this file to any project's `tasks/` directory and run:
> `Run tasks/audit-skill.md`
> **Source guides:** `03_SKILLS.md`, `02_PROMPTING_BASICS.md`

## Runtime route

Name the target surface and available tools before running steps. Claude-only policy lives in `CLAUDE.md`; Codex uses `AGENTS.md`; dual-platform shares `AGENTS.md` through a thin Claude adapter. References below to editing project rules mean that selected policy, not duplicated adapters. ChatGPT source projects use project instructions and dated sources; without write access, return replacement artifacts and record refresh as pending.

Execute only the selected native branch. Claude commands/settings/hooks are Claude-only; never install them as an OpenAI fix. Missing access is **unverified**; an unnecessary capability is **N/A**. Use an available, permitted question tool or concise chat, reusing existing answers and authorization. Unattended runs record unresolved decisions. Report applied versus drafted changes and fresh-session verification per supported surface; untested is not passed.

## Native implementation

First identify the skill's intended surface and how it is discovered. Codex project skills use `.agents/skills/`; Claude Code skills use its project/personal locations; source-only ChatGPT tasks are manually invoked unless native discovery was separately verified. Audit the common workflow on every surface, but validate metadata against that surface's documentation. Run positive/negative trigger cases and an inert forbidden-action case; record pass/fail/untested per surface. Never report an omitted Claude frontmatter field as a Codex defect. On Claude Code v2.1.283 or later, `/doctor prompt-audit <skill path>` gives a static second opinion on prompting written for older models; treat its proposals as findings for this audit, not as applied fixes. A local Claude Code skill named `verify` or `simplify` makes Claude run it before each commit that is not docs- or tests-only (v2.1.286); flag either name unless that is intended.

## Purpose
Review an existing skill against the Guide 03 quality checklist: reliable triggering, complete workflow, explicit output format, named tools, and edge case coverage. Returns a prioritised list of issues and applies fixes after approval.

---

## Instructions

> **Clarifying questions:** use an available question tool when the runtime permits it; otherwise ask concisely in chat. Reuse answers already supplied.

### Step 1 — Identify the skill to audit

Ask: "Which skill should I audit? Provide the skill name or path (e.g. `client-status-update` or `~/.claude/skills/client-status-update/SKILL.md`)."

Read the `SKILL.md`. Also check if a `references/` subfolder exists and how large `SKILL.md` is.

Report:
```
Skill: [name]
Location: [path]
Lines: N
References folder: [exists with N files / missing]
```

### Step 2 — Run the audit checklist

#### Check 1: Description quality (most important)

The description controls whether the skill triggers. Evaluate:

- [ ] Names what the skill does (not just a title)
- [ ] Lists specific trigger phrases — including casual, implicit phrasings
- [ ] Uses "trigger this skill" explicitly (helps Claude match intent)
- [ ] Covers at least 3–5 example user phrasings
- [ ] Says what to do proactively when input is ambiguous (e.g. "confirm tone unless clear")
- [ ] Not so broad it triggers for unrelated requests

Flag weak descriptions with: "A user saying '[phrase]' would not trigger this skill with the current description."

#### Check 2: Workflow completeness

- [ ] Steps are numbered and sequential
- [ ] Each step that uses an MCP tool names the exact tool (e.g. `gmail_create_draft`, not "check email")
- [ ] Each step that needs user input specifies what to ask
- [ ] Each step that can fail has a fallback or graceful skip
- [ ] No step is so vague Claude would interpret it differently each session

#### Check 3: Output format

- [ ] An explicit output format is defined
- [ ] A code block example is included showing exactly what the output should look like
- [ ] Headers, bullet style, and field names are specified — not left to Claude's discretion

#### Check 4: Constraints

- [ ] Hard limits are stated with "NEVER" (e.g. "NEVER send — always draft")
- [ ] Each prohibition has a positive counterpart (what to do instead)
- [ ] Every hard prohibition has evidence of effective runtime permissions, sandbox restrictions or connector scopes; prose-only restrictions are identified as such.

Claude `allowed-tools` grants pre-approval and does not prove that omitted tools are denied. On Claude Code, `disallowed-tools` is the skill-level restriction (Guide 03): look for it where a hard prohibition maps onto a tool. Do not credit it on another surface or artifact type without current official documentation that proves support. Codex constraints require its actual runtime controls. Report the forbidden action, effective grant and missing boundary; recommend a native fix or keep that action on a surface with verified enforcement.

#### Check 5: Edge cases

- [ ] At least 3 edge cases are named
- [ ] Each edge case has a specific handling rule (not "use your judgment")
- [ ] The most common failure modes for this skill type are covered

#### Check 6: Size and progressive disclosure

Each figure in this task is a target with a ~5% tolerance band (Guide 06 §6): flag only beyond it. Externally enforced limits (a loader cap, an API limit) are hard and get no band.

- [ ] SKILL.md is under 500 lines
- [ ] If over 500 lines: detailed reference content is moved (or should be moved) to `references/`
- [ ] `references/` files are named from SKILL.md — not silently expected
- [ ] Measured, not guessed: where available on the Claude runtime, use `/skill-doctor` (verify it exists in your version) for what this skill costs in context and how often it actually gets used; otherwise use observed invocation/usage records and mark unavailable metrics unknown — a large skill that never fires is a stronger finding than line count alone

#### Check 7: Memory (if applicable)

If the skill involves recurring context (contacts, preferences, past decisions):
- [ ] Memory section is present with explicit format for what to store
- [ ] Without it: the skill re-learns the same things every session

#### Check 8: Frontmatter validity (mechanical)

- [ ] Frontmatter parses as YAML — a plain one-line `description` containing ": " breaks strict parsers; use a folded `>` block or quotes
- [ ] `description` is 1–1024 characters (full value, not line count) — the [Agent Skills spec](https://agentskills.io/specification) limit that claude.ai uploads, the Skills API and `package_skill.py` enforce; Claude Code truncates `description` plus `when_to_use` at 1,536 characters in its listing, and Codex shortens descriptions first when the skill list exceeds its budget (Guide 03)
- [ ] `name` is at most 64 lowercase letters, numbers and hyphens, and matches the skill's directory name

Run it, do not eyeball it (needs Python with PyYAML; a parse error is itself the finding):
```bash
python3 -c "import sys,os,re,yaml; p=sys.argv[1]; m=yaml.safe_load(re.match(r'^---\n(.*?)\n---\n', open(p).read(), re.S).group(1)); d=os.path.basename(os.path.dirname(os.path.abspath(p))); print('description chars:', len(m['description']), '| name matches dir:', m['name']==d); print('name ok:', bool(re.fullmatch(r'[a-z0-9-]{1,64}', m['name'])))" "[path]/SKILL.md"
```

### Step 3 — Present findings

```
Skill Audit: [name]
───────────────────
Size: N lines [✓ under 500 / ⚠ consider splitting]

Issues found (prioritised by impact):

CRITICAL (skill may not trigger reliably):
  ✗ Description: [specific problem] — "[current text]"
    Suggested: [improved version]

HIGH (inconsistent output or broken steps):
  ⚠ [Check N]: [description]

MEDIUM (edge cases, memory):
  ⚠ [Check N]: [description]

LOW / OPTIONAL:
  ℹ [Check N]: [description]

Passing:
  ✓ [Check N]: [description]

Overall: [N issues — critical/high/medium/low breakdown]
```

**Finding discipline.** For anything that rests on judgement rather than on a file being present or
absent, carry a **confidence** (high / medium / low) and a **would-drop-it-if** line naming the evidence
that would make you withdraw the finding. A finding with no answer to that question is an opinion — leave
it out rather than padding the report with it. When the user pushes back, check the finding against its
would-drop-it-if line instead of trading verdicts (`27_INDEPENDENT_JUDGMENT.md`).

**Real-world example** — what an audit finding looks like with specific, actionable detail:

```
Skill Audit: client-email-drafter
──────────────────────────────────
Size: 85 lines ✓ under 500

Issues found (prioritised by impact):

CRITICAL (skill may not trigger reliably):
  ✗ Description: Only says "Draft client emails" — no trigger phrases listed.
    Current: "Draft professional emails to clients."
    Suggested: "Draft professional emails to clients. Trigger when the user says
    'write an email to [client]', 'draft a reply to [name]', 'help me respond to
    this email', or 'client email'. Also trigger when the user pastes an email
    and asks to reply or follow up."

HIGH (inconsistent output or broken steps):
  ⚠ Check 2 (Workflow): Step 3 says "send the email" but uses no tool name.
    Fix: Replace with "Call `gmail_create_draft` with the composed email.
    NEVER call `gmail_send_email` — always draft, never send."

MEDIUM (edge cases, memory):
  ⚠ Check 5 (Edge cases): Only 1 edge case listed. Missing:
    - If the client name is ambiguous (multiple contacts with similar names)
    - If the user wants to reply to a thread vs. start a new email

Passing:
  ✓ Check 3 (Output format): Clear email template with subject, greeting, body, sign-off
  ✓ Check 4 (Constraints): "NEVER send" rule present with positive counterpart

Overall: 3 issues — 1 critical, 1 high, 1 medium
```

Ask:
> "Would you like me to apply fixes? Options:
> - (A) Rewrite the description (highest impact — do this first)
> - (B) Fix workflow steps and tool names
> - (C) Add/improve output format example
> - (D) Add edge cases
> - (E) All of the above
> - (F) Walk through each issue together"

### Step 4 — Apply fixes

**Description rewrite:** Show the old description and the proposed new version side by side. The new version should be longer and more explicit. Apply after approval.

**Workflow fixes:** For each step missing a tool name, propose the specific tool. For each step missing a fallback, propose one. Show each change and apply after approval.

**Output format:** If missing, ask: "Can you show me an example of what the ideal output looks like?" Use that to write the format block. If the user can't provide one, generate a plausible example and ask them to correct it.

**Edge cases:** Propose 3 edge cases based on the skill's domain. The user approves, rejects, or modifies each.

### Step 5 — Confirm

Tell the user:
- Issues found and fixed
- Final line count
- The trigger phrases now in the description
- "Test it: start a new Claude session and use one of the trigger phrases. If it still doesn't activate, the description needs stronger phrasing."

Files in this skill

  • README.md4.3 KB
  • analyze-project-reference.md26 KB
  • analyze-project.md9.7 KB
  • audit-claude-md.md6.5 KB
  • audit-cost.md7.8 KB
  • audit-file-hygiene.md8.8 KB
  • audit-memory.md9.9 KB
  • audit-skill.md9.3 KB
  • audit-task-efficiency.md6.3 KB
  • harvest-from-projects.md9.3 KB
  • onboard-project.md12.7 KB
  • relocate-project-reference.md11.4 KB
  • relocate-project.md12.3 KB
  • reorganize-project.md7 KB
  • retire-project.md12.7 KB
  • review-platform-changes.md11.3 KB
  • review-tasks.md16.3 KB
  • setup-action-authority.md10.9 KB
  • setup-behaviour-tests.md12.4 KB
  • setup-bootstrap-folder.md6.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.