agentsclimarketplace

Reqs

Skill customaistudio/cais-harness/skills/reqs

Use when the user runs /reqs or asks to generate requirements, user stories, a PRD, or architecture decisions for the project. Requires the brief phase to be complete.From its SKILL.md

Install
npx -y skills add customaistudio/cais-harness --skill reqs

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

7.8 KB, as published. Nobody here has run it

/reqs — Requirements & Architecture

Preconditions

Read skills/shared/precondition-check.md and apply it. Required:

  • .cais/project.json exists
  • phases.brief.status = complete
  • .cais/brief.json exists
  • docs/north-star.md exists
  • phases.sow.status = complete OR phases.sow.status = skipped (SOW is optional — run /sow first, or skip it if no client-facing SOW is needed)

Inputs

  1. .cais/brief.json — project brief artifact
  2. docs/north-star.md — success criteria (SC-N IDs)
  3. docs/STRATEGY.md — strategic grounding
  4. docs/CONSTITUTION.md — project constraints
  5. Original intake sources (for domain context not captured in brief)

Type Detection

PROJECT_TYPE=$(jq -r '.project.type // "application"' .cais/project.json)

This value shapes architecture pattern options and user story actors throughout the steps below.

Process

Follow skills/reqs/prompts/extract.md.

Do NOT re-interview the user. Synthesise from brief.json and intake sources.

Step 0: Readiness Check

Before beginning requirements synthesis, confirm the brief is stable enough to build on.

Surface via AskUserQuestion:

Question: "Is the project brief settled, or is your team still refining scope and goals?"

Options:

  • "Ready — the brief is solid, let's derive requirements" → proceed to Step 1
  • "Still refining — I need to update the brief first" → tell the user to run /re-ingest <source> to add new material, or edit docs/brief.md directly, then re-run /reqs when ready. Stop here without writing anything.

Only proceed to Step 1 if the human selects "Ready".

Step 1: Identify deep modules

Before writing user stories, sketch the system's main modules:

  • What are the major functional units?
  • What are the interfaces between them?
  • Which modules have simple, stable interfaces that rarely change?
  • Mark modules that need unit tests vs integration tests

Step 1b: HITL Checkpoint — Choose architecture approach

Read skills/shared/hitl.md.

Based on the brief constraints, tech stack mentions, and docs/CONSTITUTION.md, identify 2-3 viable architecture patterns. Write a choose checkpoint on the reqs phase.

Question: "I've identified architecture approaches for this project. Which should we proceed with? Your choice shapes all user stories, functional requirements, and task slices downstream."

For each option, write the option label as: "[Pattern Name] — [primary trade-off, e.g. 'event-driven: decoupled but operationally complex']". Include which brief constraints each pattern satisfies.

Context: Derive from brief.json constraints and docs/CONSTITUTION.md tech stack.

Type-specific patterns to offer:

  • If PROJECT_TYPE = "application": offer patterns appropriate for deployed software — e.g., "monolith with async workers", "event-driven microservices", "serverless functions + managed database".
  • If PROJECT_TYPE = "workflow": offer patterns appropriate for a Claude Code plugin harness — e.g., "sequential phase pipeline (linear dependency chain, simple)", "event-driven hook mesh (hook-triggered, flexible)", "hybrid: phase pipeline with event hooks (CAIS's own pattern)". Do NOT offer microservice or API-server patterns.

Surface via AskUserQuestion. Record the chosen pattern. Use it as the architecture basis for all subsequent steps.

Step 1c: Write Architecture Decision Record

mkdir -p .cais/adr

Write .cais/adr/adr-0001-architecture.md:

# ADR-0001: Architecture Pattern — <PROJECT_NAME>

**Date:** <YYYY-MM-DD>
**Status:** Accepted
**Deciders:** <project.client> team

## Context

<2-3 sentences on the constraints and goals that drove the decision, derived from brief.json and CONSTITUTION.md>

## Decision

<The chosen pattern name and a brief description of what it means for this project>

## Alternatives Considered

- <Option A name> — <why not chosen: primary trade-off or constraint it violated>
- <Option B name> — <why not chosen>

## Consequences

- <What becomes easier or better with this choice>
- <What becomes harder, riskier, or needs monitoring>
git add .cais/adr/
git commit -m "docs: architecture decision record — <PROJECT_NAME>"

Step 2: Write user stories

For each goal in brief.json, derive user stories in the format: As [actor], I want [feature], so that [benefit].

Each story must:

  • Be independently testable
  • Have a priority: P1 (must-have for POC), P2 (should-have), P3 (nice-to-have)
  • Justify the priority
  • Trace to at least one SC-N
  • Have 2-3 Given/When/Then acceptance scenarios

Type-specific actor guidance:

  • If PROJECT_TYPE = "application": actors are end users, admins, or system roles — e.g., "marketing manager", "system admin", "API consumer".
  • If PROJECT_TYPE = "workflow": actors are harness operators and authors — e.g., "harness operator", "skill author", "plugin maintainer", "client project user". Acceptance scenarios describe skill execution, artifact production, and hook behavior — not UI flows or API responses.

Assign IDs: US-1, US-2, etc.

Step 3: Write functional requirements

For each user story, derive 1-3 functional requirements using MUST/SHALL language. Format: FR-NNN: The system MUST/SHALL <requirement>. Each FR traces back to one or more US-N.

Step 4: Write architecture section

Based on brief constraints and tech stack, document:

  • Architecture pattern (e.g., "event-driven microservice", "monolith with async workers")
  • Tech stack (languages, frameworks, databases, external services)
  • Data models (entity names, key fields, relationships — no code)
  • API contracts (endpoint names, methods, request/response shapes — no code)
  • Infrastructure (hosting, compute, storage)

Step 5: Write non-functional requirements

Extract from brief constraints and standard project needs:

  • Performance (response times, throughput targets from SC-N where applicable)
  • Security (auth requirements, data protection)
  • Scalability (growth expectations)
  • Accessibility (if applicable)

Step 6: Write reqs.json

Write to .cais/reqs.json conforming to schemas/reqs.schema.json.

Step 6b: HITL Checkpoint — Approve requirements before advancing

Read skills/shared/hitl.md.

Write a confirm checkpoint on the reqs phase. Summarise what was written before surfacing.

Question: "Requirements complete — [N] user stories across [P1/P2/P3 counts], [K] functional requirements. Approve to advance to /spec, or request changes."

Context: "Architecture pattern chosen: [the pattern from Step 1b]. User stories and FRs are in .cais/reqs.json. Priority breakdown: P1: [count], P2: [count], P3: [count]."

Options: ["approve", "request_changes"]

Surface via AskUserQuestion. If the human requests changes — stories to add/remove/reprioritise — make the edits to reqs.json, re-commit, and re-surface. Repeat until approved.

Follow "How to advance after approval" in hitl.md. Only then proceed to Step 7 (validation).

Step 7: Run validation

Follow skills/reqs/prompts/validate.md.

Step 8: Update project.json

jq '.phases.reqs.status = "complete" | .phases.reqs.artifact = ".cais/reqs.json" | .project.status = "spec"' \
  .cais/project.json > .cais/project.json.tmp && mv .cais/project.json.tmp .cais/project.json

Step 9: Commit

git add .cais/reqs.json .cais/project.json
git commit -m "feat: requirements and architecture — <PROJECT_NAME>"

Output

  • .cais/reqs.json

Validation

See skills/reqs/prompts/validate.md.

Next Step

"Requirements are captured. When your team is ready, /panel-gate reqs runs a 5-persona quality gate, or /spec starts the implementation spec directly."

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.