Skip to content
Back to skills

Woc Extract And Test

ASecurity

Implement World of ClaudeCraft features, bug fixes, and focused refactors using module-first design and behavior-driven tests. Use when adding behavior, fixing a defect, extracting logic from a large file, or moving code behind an existing architectural seam.

  • 2,342 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 16, 2026
databasessqlgitdatabasesecurityperformance

Security analysis

A100/100

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

Scanned November 16, 2026

npx -y skills add levy-street/world-of-claudecraft --skill woc-extract-and-test --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Woc Extract And Test?

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

Security grade badge for Woc Extract And Test
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/levy-street-woc-extract-and-test/badge)](https://www.skillsdirectory.com/skills/levy-street-woc-extract-and-test)

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
---
name: woc-extract-and-test
description: "Implement World of ClaudeCraft features, bug fixes, and focused refactors using module-first design and behavior-driven tests. Use when adding behavior, fixing a defect, extracting logic from a large file, or moving code behind an existing architectural seam."
---

# Extract and Test

Implement the requested behavior with the smallest clean module boundary and direct
regression coverage.

## Load context

1. Read the root `CLAUDE.md` in full.
2. Read the relevant local `CLAUDE.md` before opening or editing that area.
3. Run `git status --short` and preserve unrelated work.
4. Inspect the production path, its callers, and nearby tests before choosing a seam.

Apply canonical architecture rules to the concrete change without copying them here.

Before implementing database-backed behavior, invoke `woc_database_performance` for a
read-only checkpoint when the change can affect SQL or query call sites, schema or indexes,
query frequency or cardinality, pool configuration, lock scope, timeout policy, or stored-data
growth, including database driver/dependency upgrades and PostgreSQL
engine/resource/configuration/topology changes. Carry its concrete bounds and evidence
requirements into the test-first contract.

## Choose the workflow

For a bug fix:

1. Reproduce the defect through the real production path.
2. Add a focused test that fails for the intended reason.
3. Confirm the test is red before changing production code.
4. Make the smallest coherent fix.
5. Add nearby edge cases only when they protect the same contract.

For a feature or refactor:

1. Identify the existing module, coordinator, state owner, or extension seam.
2. Place behavior in a pure sibling module, current state owner, or thin adapter.
3. Separate pure decisions from I/O, rendering, global state, and transport.
4. Give the extracted unit direct tests and keep consumers thin.
5. When relocating behavior, preserve semantics before redesigning anything.

Do not grow a monolith when a tested sibling is appropriate, introduce a framework for
one call site, bypass existing seams to reach private state, or build parallel versions
of the same rule. Preserve determinism, parity, localization, and persistence contracts.
Do not commit unless explicitly asked.

## Validate

Run focused tests while iterating, then:

```sh
npm run ci:changed
npx tsc --noEmit
```

Run domain guards for architecture, localization, persistence, parity, or security when
applicable. Re-run `woc_database_performance` on the finished diff when its database triggers
match, and `woc_server_hot_path` when the diff adds or changes per-tick, per-request,
per-broadcast, or recurring server work (a `selfWireJson` key or the `src/sim/` read it
calls, an autosave, sweep, or durability write, a `world_state` blob). Before declaring the
implementation ready, run `npm run gate`.

Report the selected seam, behavior covered, commands run, and remaining manual checks.

Files in this skill

  • SKILL.md2.9 KB
  • agents/openai.yaml298 B

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 databases →

Comments

Loading comments…

Newsletter

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