aimsise/simple-workflow/test

Claude Code and agent skill by aimsise/simple-workflow

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Creates and runs tests for a specified file or feature by spawning the test-writer subagent in a forked context, then returns a structured summary with test file paths and pass/fail counts. Use when (1) the user runs `/test FILE` directly to add tests for a specific module, (2) the user runs `/test FEATURE` to design and execute test cases for a feature outside any ticket workflow, or (3) `/catchup` detects Rule 4 (source diff exists but no matching test changes) and suggests `/test` against the changed files to close coverage. The test-writer subagent reads existing tests first and follows project conventions (happy path, edge cases, boundary values, error cases), runs the configured test command, and returns a structured result under 500 tokens per the Context Conservation Protocol. Triggers on "/test", "write tests", "add tests", "test the feature", "test coverage", "missing tests", "test cases", "cover the changes".

Install

npx vskill@latest install aimsise/simple-workflow/test

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as aimsise/simple-workflow/test.

Create and run tests for: $ARGUMENTS

Current changes: !git diff --stat 2>/dev/null || true

Existing test directories: !ls -d tests/ test/ __tests__/ spec/ 2>/dev/null || echo "(no top-level test directory found)"

Pre-computed Context

Available user skills: !( ls -1 ~/.claude/skills 2>/dev/null ; ls -1 .claude/skills 2>/dev/null ) | sort -u | grep . | tr "\n" "," | sed "s/,$//" | grep . || echo "(none)"

Instructions

  1. Parse $ARGUMENTS to identify the file path(s) or feature name to be tested. The spawned test-writer subagent owns the fork — the orchestrator does NOT run direct Read/Grep/Edit loops at this level; delegation happens via context: fork + agent: test-writer declared in the frontmatter.
  2. The test-writer subagent examines existing tests to understand patterns and conventions (test runner, helper imports, fixture style, naming).
  3. The test-writer subagent designs test cases covering: happy path, edge cases, boundary values, error cases — following the rubric in skills/impl/references/test-authoring-guidance.md (independent oracle + raw-value tolerance for computational targets, property/invariant tests, adversarial/non-finite inputs by default).
  4. The test-writer subagent writes tests following the existing patterns and project conventions (test framework, file naming, directory layout — as defined in CLAUDE.md or project conventions).
  5. The test-writer subagent runs the project's test command (as defined in CLAUDE.md or project conventions) to verify.
  6. The test-writer subagent fixes any failing tests it introduced before returning. If the iteration limit (maxTurns: 25 in agents/test-writer.md) is hit with tests still failing, the agent returns a partial or failed status.
  7. Return contract: the test-writer agent returns the structured envelope declared in agents/test-writer.md Context Conservation Protocol — under 500 tokens, with the fields Status: success | partial | failed, Output: [test file path(s) created/modified], Summary: [test count, pass/fail results], the REQUIRED Advisory consultation: field, and Next Steps: [recommended actions]. The orchestrator surfaces these fields to the user verbatim. The **Advisory consultation**: field (per agents/test-writer.md ### Consultation reporting format) is mandatory: emit the literal (none) when the spawn prompt carried no ## Advisory capabilities (per ticket) block or no entry's Used by column lists test-writer, otherwise emit one - <Name>: invoked (<evidence>) / - <Name>: not invoked (<reason>) bullet per applicable entry. Because /test is a declarative context: fork spawn (context: fork + agent: test-writer in the frontmatter makes the Claude Code platform run this skill body AS the test-writer's task prompt), there is no inline orchestrator turn after the fork to gate this field — the contract is carried by the test-writer agent body AND by this return-contract clause. /test has no orchestrator parent that re-spawns it (it is user-invoked or suggested by /catchup), so silent omission of the field surfaces as a Phase 6 audit-trail gap rather than a gated failure.

Error Handling

  • Empty arguments: If $ARGUMENTS is empty, print Usage: /test <file path or feature name to test> and stop without spawning the subagent.
  • test-writer agent failure (no return value, or **Status**: failed): Report the failure reason and any files modified up to the failure point. Do not silently swallow the error.
  • Persistent test failures after fix loop: When the test-writer returns **Status**: partial with remaining failures, surface the test command output and the list of still-failing tests to the user. Do not mark the task as success.

Subagent Skill-Access Handoff

When you spawn a subagent via the Agent tool, consult the Available user skills: line in the Pre-computed Context above. If a listed utility skill is relevant to that subagent's task, name it in the Agent prompt and instruct the subagent to use it via the Skill tool when it materially helps.

  • Truly hermetic agents (security-scanner, ticket-evaluator) carry no Skill tool, no MCP, no Bash(*). If you spawn one, hand off nothing — speculative references only add noise.
  • Skill-bearing verdict / read-only agents (ac-evaluator, code-reviewer, decomposer, tune-analyzer) retain explicit tools: allowlists and do NOT inherit MCP / Bash(*). They DO carry the Skill tool and receive capability handoffs, but only via deterministic per-AC binding (the ## Bound capabilities (per AC) block extracted from {ticket-dir}/ticket.md's ### Capabilities section) — never via ad-hoc speculation from the Available user skills: probe.
  • Productive agents (implementer, planner, researcher, test-writer) inherit-all under v8.0.0 — every parent-session MCP server and Bash(*) is in their tool inventory. Only mcp__* and Skills bound to an active AC via ## Bound capabilities (per AC) may be invoked (per the agent body's ## Bound Capabilities (Handoff from Orchestrator) section).
  • Never present a pipeline skill (/scout, /impl, /audit, /ship, /autopilot, /brief, /catchup, /create-ticket, /investigate, /plan2doc, /refactor, /test, /tune) as a utility for a subagent.
  • When a ticket's ### Capabilities section exists (resolve via {ticket-dir}/ticket.md or the autopilot state file's paths.ticket), Read it before constructing any subagent spawn prompt and inline the bound capabilities verbatim into every spawn prompt under the heading ## Bound capabilities (per AC). For per-AC spawns (one spawn per AC, e.g. /impl Steps 13/15), include only the rows whose Bound AC(s) column lists the active AC. For tip / whole-deliverable spawns (the rest), include the full table. The upstream binding is authoritative — do NOT re-derive relevance from the AC text or re-scan Available user skills: for plausible matches. When the ticket lacks ### Capabilities (older ticket pre-dating Gate 6), emit ## Bound capabilities (per AC): (none recorded — ticket pre-dates Gate 6) in the spawn prompt and let the subagent fall back to its in-house capability-selection path.
  • If the Available user skills: probe reports (none), hand off nothing and let the subagent proceed with its in-house capabilities.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
3

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/aimsise/simple-workflow/test/badge)](https://verified-skill.com/skills/aimsise/simple-workflow/test)

Something wrong with this skill or its page? Tell us.