# Write Tests

> A Claude skill from Karthick-Ramachandran/persist-os.

- **Type:** Skill
- **Install:** `agentstack add skill-karthick-ramachandran-persist-os-write-tests`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [Karthick-Ramachandran](https://agentstack.voostack.com/s/karthick-ramachandran)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [Karthick-Ramachandran](https://github.com/Karthick-Ramachandran)
- **Source:** https://github.com/Karthick-Ramachandran/persist-os/tree/main/.claude/skills/write-tests
- **Website:** https://persist-os.pages.dev

## Install

```sh
agentstack add skill-karthick-ramachandran-persist-os-write-tests
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Skill: Write Tests

## Purpose

Create professional tests that prove important behavior, not random happy paths.

## Inputs

- Feature PRD or task.
- Acceptance criteria.
- Changed files or planned modules.
- Known risks.

## Required Reading

- `docs/50-quality/TESTING_STRATEGY.md`
- `docs/50-quality/QUALITY_GATES.md`
- `docs/20-security/SECURITY_MODEL.md`
- `docs/60-engineering/ENGINEERING_STANDARDS.md`
- Relevant feature `TEST_PLAN.md`
- Relevant module `TEST_PLAN.md`

## Output Files

- Test files under the appropriate `tests/` area.
- Updated `TEST_PLAN.md` when test strategy changes.
- Completion evidence listing commands and results.

## Process

1. Map acceptance criteria to test cases.
2. Add risk-based tests for unsafe paths, overwrites, symlinks, config validation, generated output,
   and CLI behavior as relevant.
3. Prefer unit tests for pure logic and integration tests for command behavior.
4. Add golden tests for generated docs and templates.
5. Name tests by behavior.
6. Document skipped tests and remaining risk.

## Stop Conditions

Stop and request human decision if:

- Requirements are not testable.
- The requested test would require runtime network, telemetry, cloud, MCP, or AI API behavior
  without review.
- Security-sensitive behavior lacks a documented expected result.
- The test approach conflicts with engineering standards.

## Quality Bar

- Tests derive from requirements and risk.
- Security invariants are covered.
- Test names describe behavior.
- Engineering standards for evidence and skipped checks are followed.
- The completion report includes commands and results.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [Karthick-Ramachandran](https://github.com/Karthick-Ramachandran)
- **Source:** [Karthick-Ramachandran/persist-os](https://github.com/Karthick-Ramachandran/persist-os)
- **License:** MIT
- **Homepage:** https://persist-os.pages.dev

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-karthick-ramachandran-persist-os-write-tests
- Seller: https://agentstack.voostack.com/s/karthick-ramachandran
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
