windsurf-integration

A Specsmith governance procedure for using the Windsurf coding environment. It defines setup steps and checks to run during each coding session.

In plain words
What is it for?
It helps configure Windsurf, run audits and checkpoints, perform a preflight check before edits, and save and close sessions safely.
Why use it?
It adds a consistent review trail and approval checkpoints before code changes, while keeping session state synchronized.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/layer1labs/specsmith/windsurf-integration
Any agent
npx skills add layer1labs/specsmith --skill windsurf-integration
Clone the repo
git clone --depth 1 https://github.com/layer1labs/specsmith

Made for: Claude Code, Codex.

Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 245 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00245
Opus 5 $0.00000 $0.00122
Sonnet 5 $0.00000 $0.00049
Haiku 4.5 $0.00000 $0.00024

Measured 2d ago against content hash 5f5e0c787679, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

windsurf-integration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/windsurf-integration/SKILL.md · 35 lines

What it actually says

Windsurf — specsmith Governance Integration

One-time setup

specsmith integrate windsurf   # generates .windsurfrules

For MCP in Windsurf (Settings → MCP Servers):

{
  "specsmith-governance": {
    "command": "specsmith",
    "args": ["mcp", "serve"]
  }
}

Every Windsurf session — mandatory protocol

  1. Run at session start:
specsmith kill-session  # idempotent; safe when no processes exist
specsmith audit --project-dir .
specsmith sync  --project-dir .
specsmith checkpoint --project-dir .
  1. Output checkpoint block verbatim.
  2. Before every code change: specsmith preflight "<intent>" --json
  3. Every 8–10 turns: specsmith checkpoint (output verbatim)
  4. Session end: specsmith save && specsmith kill-session

Key files

  • .windsurfrules — Windsurf global rules file
  • AGENTS.md — universal governance hub
  • .agents/skills/ — skill directory (Cascade agent reads these)
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 35 lines · 0 tokens per session scan A 5f5e0c787679

Subscribe to this mod's changes

windsurf-integration is a skill published in the GitHub repository layer1labs/specsmith (7 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 245 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

arch-audit

Audit Claude Code architecture files against Anthropic docs and release notes, and verify internal ecosystem consistency. Run on demand to maintain compliance, catch new features, and keep the context system clean.

marcoguillermaz/Tierward · 41 tokens

skill-review

Orchestrate the skill-review framework v1.2 pipeline on a target skill or cross-tier family. Runs Phase 1 preflight, Phase 2 structural review with interactive walkthrough, Phase 3 fix + rollback, optional Phase 4 external LLM review, Phase 5 integration, Phase 6 closeout. Supports full, preflight-only, and…

marcoguillermaz/Tierward · 106 tokens

external-review

Run a fresh-context review of Tierward before a release. --mode=quick spawns a Claude general-purpose subagent with no project memory and an auto-bundled snapshot. --mode=full fans out the same bundle to GPT-4.1, Gemini 2.5 Pro, Mistral Large, and Perplexity Sonar Pro for cross-LLM coverage. Maintainer-only; not…

marcoguillermaz/Tierward · 91 tokens

ifixai

Guide the user through an independent iFixAi audit of their own agent, checking whether it does the job it is supposed to do given their business rules and org structure. Prefer pointing it at the user's REAL deployed agent over its HTTP endpoint (its actual tools, retrieval, and governance) with --provider http…

ifixai-ai/iFixAi · 178 tokens

improve-harness

Run one explicitly authorized, evidence-backed improvement to a repository's agent guidance, tools, runbooks, or validation. Use only when the user invokes $improve-harness or explicitly asks to improve the Harness after observed reusable agent friction. Do not use for ordinary product changes, speculative cleanup…

hoangnb24/repository-harness · 76 tokens

setup-claude-md

Create comprehensive CLAUDE.md files with tech stack, standard commands, repository structure, and boundaries to optimize repositories for AI-assisted development.

ambient-code/agentready · 32 tokens