Speq Audit logo

Speq Audit

Community
marconae
speq-audit

Audits a speq project's health: specs, decision logs, plans, mission sync, unrecorded plans, and gitignore hygiene. Use when asked to audit, health-check, or check a project build with speq-skill.

Overview

Publishermarconae
Repositoryspeq-skill
Skill namespeq-audit
Stars
54
Forks
10
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by marconae on GitHub. Read the source before you install it.

Installation

Install the Speq Audit AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/marconae/speq-skill/tree/main/.claude/skills/speq-audit
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/marconae/speq-skill.git /tmp/speq-skill
mkdir -p .claude/skills
cp -r /tmp/speq-skill/.claude/skills/speq-audit .claude/skills/speq-audit
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Speq Audit in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Speq Audit on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Speq Audit is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Spec Auditor (Orchestrator)

Thin orchestrator. It runs read-only health checks over a speq project, delegates the mission ↔ spec-library sync check to audit-agent, judges the ADRs itself, prints a summary, and offers to fix each finding. Always ask before a fix.

Required Skills (for the orchestrator)

Invoke before starting:

  • /speq-cli — spec discovery and the validate commands
  • /speq-writing-guardrails — prose style for the summary

Each check in references/checks.md names the skill that owns its rules. Invoke that skill instead of working from memory.

The audit-agent sub-agent invokes /speq-cli itself. Read references/checks.md for the per-check detection recipes, thresholds, and remediation procedures.

Workflow

Phase 0: Load Project Hook (orchestrator)

Check for .speq/audit-hook.md in the repo root.

  • Present: read it. Announce "Loaded project hook: .speq/audit-hook.md". Its content is authoritative: it can add to, change, or override any part of this workflow. If the hook conflicts with this workflow, the hook wins.
  • Absent: continue normally, no mention.

Note it (not its full content) as a Project Hook: line in each sub-agent brief below.

Phase 1: Preconditions (orchestrator)

Check: specs/ directory exists?
├─ Yes → proceed
└─ No  → STOP: "No spec library found. Run /speq-mission to bootstrap."

Phase 2: Run checks (orchestrator, READ-ONLY)

Run every check in references/checks.md, recording a ✓ / ✗ / ⚠ and a one-line detail for each. The Serena check records ℹ (hint) instead of ⚠. A hint is not a finding, so it never counts toward N findings and never gets a remediation. Modify nothing in this phase. The checks:

Layout

  1. Spec structure — every spec.md is at specs/<domain>/<feature>/spec.md
  2. Feature specs — speq feature validate
  3. Library thresholds — scenarios per spec, features per domain

Decisions 4. Decision log — old specs/decision-log.md vs specs/_decision/; speq decision-log validate 5. ADR review — judged by the orchestrator (Phase 3b)

Plans 6. Active-plan validity — speq plan validate <plan> per active plan 7. Unrecorded plans — specs/_plans/*/ with a verification-report.md 8. Recorded-folder naming — _recorded/* follows NNN-<plan>

Git ignores 9. _recorded ignored — specs/.gitignore contains /_recorded 10. Reserved dirs tracked — _decision and _plans are not ignored

Mission and architecture 11. Mission sync — delegated to audit-agent (Phase 3a) 12. Architecture file — specs/architecture.md present and valid, mission.md free of the old sections

Info 13. Project hooks — informational only 14. Serena — hint only, Serena is optional

Phase 3: Delegate the judgment checks

Send both delegations in one message so they run concurrently.

3a. Mission sync to audit-agent
Delegate to audit-agent — Verify mission ↔ spec library

## Context
- Mission: specs/mission.md
- Inventory: run `speq domain list` and `speq feature list`

## Your Task
Diff the mission against the real spec library. Return two lists: (a) domains/features
present in the library but NOT reflected in the mission's Core Capabilities / Domain
Glossary; (b) mission capabilities with NO backing spec. Advisory only —
do NOT edit mission.md.

Project Hook: <if active, ".speq/audit-hook.md — read it and apply it"; otherwise omit this line>

If specs/mission.md is absent, skip the delegation and mark the check ✗ (no mission.md).

3b. ADR review (orchestrator)

Invoke /speq-adr-rules, then follow check 5 in references/checks.md to judge every ADR. Advisory only: edit nothing until the user says Yes.

Skip the review and mark the check — n/a when specs/_decision/ holds no fragment. When the old specs/decision-log.md still exists, skip it too and note "migrate first": the migration puts every ADR in one fragment, and the review runs on the migrated result.

Phase 4: Print the summary (orchestrator)

Lead with the verdict (BLUF), then the checks table, then numbered remediations. End each remediation with the concrete next-step command. Tables are exempt from prose guardrails. Keep the Summary line terse. Use this format:

# speq:audit — <project>

| Result | Summary |
|--------|---------|
| **✓ healthy** _or_ **⚠ N findings** | <one-line BLUF: what's wrong, most important first> |

## Checks
| Check                                 | Status | Detail |
|---------------------------------------|--------|--------|
| Spec structure (<domain>/<feature>)   | ✓ | 4 domains · 11 features |
| Feature specs (feature validate)      | ✓ | 0 errors |
| Decision log format                   | ✗ | old specs/decision-log.md (7 ADRs) |
| ADR review                            | ⚠ | 2 noise · 1 wordy of 12 ADRs |
| _recorded gitignored                  | ✗ | missing from specs/.gitignore |
| Reserved dirs tracked                 | ✓ | _decision, _plans tracked |
| mission.md ↔ spec library             | ⚠ | 2 features unmentioned · 1 capability unbacked |
| Architecture file                     | ✗ | specs/architecture.md missing |
| Unrecorded plans                      | ✗ | 1: add-export-command |
| Recorded-folder naming                | ⚠ | 3 legacy names |
| Library thresholds                    | ✓ | max 8 scenarios · 5 features |
| Serena (code tools, optional)         | ℹ | not installed, skills work without it, see docs/mcp-servers.md |
| Project hooks                         | — | 1 active: plan-hook.md |

## Recommended actions  (I ask before each change)
1. Migrate specs/decision-log.md → specs/_decision/ fragments (7 ADRs → slugs)
2. Add `/_recorded` to specs/.gitignore
3. Record the finished plan → /speq-record add-export-command
4. Reconcile mission.md → /speq-mission (seeded): features `cli/export`, `cli/import` unmentioned; capability "Diff specs" unbacked
5. Clean up 3 ADRs: remove 2 noise, trim 1 wordy
6. Create specs/architecture.md → /speq-mission (migration interview seeded from the old mission.md sections)

A clean project prints ✓ healthy and omits the actions section. List each noisy or wordy ADR under its action.

Phase 5: Remediate (orchestrator — each finding gated)

For each actionable finding, ask the user (Yes / No / Skip). Apply per references/checks.md. Never act without a Yes. After an applied fix, re-run the affected validator and reprint its one-line result. Routing:

FindingRemediation
_recorded not ignored · wrong reserved-dir ignored · legacy _recorded/ nameApply inline on Yes (edit specs/.gitignore / mv the folder)
Old decision-log.md · non-conforming domain/feature layoutDelegate to a spawned worker on Yes (see references/checks.md); re-validate
Unrecorded planPoint to /speq-record <plan>
Over-threshold domain/featureRecommend /speq-plan (structural — not auto-fixed)
ADR noise or wordy ADRShow the list first; the user can strike slugs. On Yes, spawn a worker for the ADR cleanup in references/checks.md
Missing architecture file · mission.md still holds the old architecture sectionsOn Yes, spawn /speq-mission. It runs the one-time migration interview. Never write specs/architecture.md directly
Architecture file with bad structureReport the violations. The user fixes the file, or plans the change with /speq-plan
Mission driftOn Yes, spawn /speq-mission seeded with the audit-agent's inconsistency lists; never edit mission.md directly

Phase 6: Close (orchestrator)

Print the final status and any remaining manual next steps.

Work Split (reference)

StepPerformed byWhy
CLI validators, filesystem/structure checks, summary, remediation gatesThis skill (pins Sonnet)Mechanical + conversational
Mission ↔ spec-library semantic diffaudit-agent sub-agentReasoning-heavy cross-referencing
ADR reviewThis skill, by the /speq-adr-rules rulesRules are explicit. A wrong removal loses a real decision, so bias to keep

Anti-Patterns

PatternWhy Wrong
Editing mission.md directly/speq-mission owns that file
Judging ADR noise from titles, age, or a sampleRead every fragment in full. Every ADR gets judged with evidence
Removing an ADR that another ADR referencesIt breaks speq decision-log validate. Keep chain members
Reporting "fast"/"clean" without countsQuantify findings (N features, N scenarios)

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Speq Audit AI skill do?

Audits a speq project's health: specs, decision logs, plans, mission sync, unrecorded plans, and gitignore hygiene. Use when asked to audit, health-check, or check a project build with speq-skill.

Why use Speq Audit on TypingMind?

Because you install it once and use it with any model. Speq Audit is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Speq Audit in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/marconae/speq-skill/tree/main/.claude/skills/speq-audit. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Speq Audit?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Speq Audit?

As many as you like. As long as a model supports skills, you can use Speq Audit with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Speq Audit AI skill free?

Yes. It is published on GitHub by marconae under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇