Skip to content
Back to skills

Testing Inline Skill

ASecurity

In-session testing delegate — runs the testing workflow inline (no subagent): language/framework test discovery, scoped test writing for current-diff files, execution and failure triage. Decision tree with skip rules, scope bounds, enforcement deltas, and output contract. Triggers: inline testing, write tests in-session, plan-execution-inline-skill testing step.

  • 8 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
researchgotestinggit

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add darellchua2/civiltekk-skills --skill testing-inline-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Testing Inline Skill?

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

Security grade badge for Testing Inline Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/darellchua2-testing-inline-skill-civiltekk-skills/badge)](https://www.skillsdirectory.com/skills/darellchua2-testing-inline-skill-civiltekk-skills)

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: testing-inline-skill
description: >-
  In-session testing delegate — runs the testing workflow inline (no subagent):
  language/framework test discovery, scoped test writing for current-diff files,
  execution and failure triage. Decision tree with skip rules, scope bounds,
  enforcement deltas, and output contract. Triggers: inline testing, write
  tests in-session, plan-execution-inline-skill testing step.
license: Apache-2.0
compatibility: opencode
metadata:
  mirrors: testing-subagent
category: Code Quality
---

# Testing (inline)

You are executing the testing delegate's workflow **in this session** — no
subagent, no fresh context. The trade you are accepting: you keep the session's
context and the caller's full tool access, so the discipline below is advisory,
not harness-enforced. Follow it anyway.

## Decision tree

1. **Skip check (run first):**
   - Changed files are all pure-data (JSON/YAML/MD configs, docs) with no
     testable logic → report "no testable changes", stop.
   - The project has no test runner discoverable from manifests (package.json
     scripts, pyproject, Makefile, CI files) → report "test-inviable stack",
     stop. Never install a test framework unprompted.
2. **Discover:** nearest existing test for each changed source file (TS: sibling
   `*.test.ts`; PY: `tests/<dir>/test_<name>.py`); mirror its framework and
   style. No existing tests → place per language convention.
3. **Write:** cover the behavior change, one assertion per contract point;
   table-driven when >3 similar cases. No snapshots of generated output.
4. **Execute:** run ONLY the new/affected tests (scoped, not the suite).
5. **Triage failures:** product bug → report, do not fix past the test's scope;
   test bug → fix and re-run (max 3 cycles).

## Scope bounds

- Write/modify **test files only**. Product-code fixes are findings, not edits.
- Test only files in the current diff (`git diff --name-only --diff-filter=AM`,
  minus configs/docs). Untouched modules are out of scope.

## Enforcement deltas (vs testing-subagent)

| Subagent enforcement | Inline discipline (you) |
|---|---|
| Fresh context window | You carry session context — restate the diff's intent in one line before writing tests so drift is visible |
| Session-isolated tool state | Same session — prefix every write with the target test file path in your narration |
| Tier-model routing | Same model as the caller — if the diff exceeds your context comfort, say so and stop rather than guessing |

## Output contract

**Status:** [success | partial | failed]
**Output:** tests written (paths) + run result (passed/failed counts) + skipped-reason if any
**Summary:** ≤3 sentences
**Issues:** blockers, product bugs found, or "None"

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

Comments

Loading comments…

Newsletter

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