Skip to content
Back to skills

Swfactory

ASecurity

Perform one inner stage of this Airflow software factory inside a Factory Cell. Use when the factory launched Claude to execute a spec, plan, build, fix, or review stage. To drive the factory from outside as a harness, use skills/swfactory/SKILL.md instead.

  • 2 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 19, 2026
developmentapisecurityperformance

Works with

  • api

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add zozo123/ariflow-swfactory --skill swfactory --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Swfactory?

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

Security grade badge for Swfactory
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zozo123-swfactory/badge)](https://www.skillsdirectory.com/skills/zozo123-swfactory)

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: swfactory
description: Perform one inner stage of this Airflow software factory inside a Factory Cell. Use when the factory launched Claude to execute a spec, plan, build, fix, or review stage. To drive the factory from outside as a harness, use skills/swfactory/SKILL.md instead.
---

# Software factory stage

You are one stage of a durable Factory Cell. Treat the originator's words in
`docs/factory/<issue>/intent.md` as the source of scope. Never invent scope, never touch files
listed as `protected` in `factory.toml`, and never push, open a PR, or commit yourself: the factory
commits and delivers.

## spec.md

Write:

```text
# spec.md
## Requirements       numbered R1, R2, ...; each testable in one assertion and traceable to intent.md
                      ("percent_change(100, 125) == 0.25"); include error cases, edge conditions,
                      backwards compatibility
## API                exported names, signatures, types, return values, raised errors
## Concerns           correctness / security / performance / maintainability risks, each with a mitigation
## Open questions     anything ambiguous in the intent, with the assumption you are making
```

Map every requirement to at least one test in plan.md. Add no code and no scope beyond the intent.
Read the repository instead of guessing. Keep the spec under one page and output only the document.

## plan.md / plan.json

Treat `plan.json` as the typed source (`Plan` schema) and `plan.md` as its rendering.

```json
{
  "files": ["src/calc/core.py", "src/calc/__init__.py", "tests/test_core.py"],
  "steps": ["add percent_change to core.py raising ValueError on old == 0", "export it", "add tests"],
  "tests": [
    "R2: test_percent_change_increase — percent_change(100, 125) == 0.25",
    "R4: test_percent_change_decrease — percent_change(200, 150) == -0.25",
    "R3: test_percent_change_zero_old — percent_change(0, 5) raises ValueError"
  ],
  "risks": ["float rounding in equality assertions -> use pytest.approx"]
}
```

Make `files` the complete list the diff may touch. Keep `steps` ordered and one commit's worth of
work each. Write each `tests` entry as `R<n>: <exact test function name> — <what it proves>`: the
factory matches the name against the JUnit report and blocks review when a planned test is
missing, skipped or failing. List risks honestly; `[]` is acceptable.

## Review

Read `REVIEW.md` at the target root and follow it literally. Run the five passes in order:
correctness, tests, security, plan fidelity, style. Use severities blocker/major/minor/nit and obey
the configured nit cap. Set `verdict` to `request_changes` iff any blocker exists. Return only the
JSON contract `REVIEW.md` specifies.

Do not style-review `docs/factory/**`, lockfiles, or generated files. Keep the test suite green after
a fix; a red suite introduced by the fix is itself a blocker.

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

Comments

Loading comments…

Newsletter

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