ba-mode-requirements-folder
Skill9 starsChanged 6 months agoApache-2.0View on GitHub
BA Phase 1.F ingestion mode (ingest-from-requirements-folder) — greenfield with fragmented upstream. Load when Shape Detection selects Mode F: no SRS yet, but docs/requirements/ holds requirement fragments (md/txt/html, or docx/pdf when those skills are active). Synthesizes a kit-shape SRS from the fragments with full Synthesized-From provenance.
In this repository61 other files it gives its agents.
- rules/CLAUDE.mdCLAUDE.md
- acceptance-criteria-authorSkill
- adr-authorSkill
- api-contract-authorSkill
- backend-logging-traceabilitySkill
- ba-design-completenessSkill
- ba-ingestion-pipelineSkill
- ba-iteration-planningSkill
- ba-mode-augmentSkill
- ba-mode-external-sourceSkill
- ba-mode-multi-docSkill
- ba-mode-reverse-engineerSkill
- ba-mode-single-docSkill
- ba-post-implementationSkill
- be-framework-coding-standardSkill
- c4-authorSkill
- codebase-inventorySkill
- data-lifecycle-contractsSkill
- design-system-authorSkill
- docker-deploymentSkill
- external-integration-adequacySkill
- fe-framework-coding-standardSkill
- figma-canvas-layoutSkill
- figma-design-handoffSkill
- figma-requirements-extractionSkill
- figma-srs-mappingSkill
- flutter-implementationSkill
- flutter-performanceSkill
- flutter-platform-integrationSkill
- format-boundary-contractsSkill
- git-commitSkill
- incident-debuggingSkill
- intent-archaeologySkill
- kubernetes-deploymentSkill
- local-deploymentSkill
- migration-safetySkill
- observability-readinessSkill
- playwright-authorSkill
- qa-author-by-taskSkill
- qa-author-by-usSkill
- qa-execution-runnerSkill
- react-native-implementationSkill
- react-native-performanceSkill
- react-native-platform-integrationSkill
- release-readinessSkill
- rollback-readinessSkill
- sa-architecture-designSkill
- sa-brownfield-extractSkill
- secrets-config-auditSkill
- security-compliance-checklistSkill
- solution-defaultsSkill
- ssh-remote-operationsSkill
- staging-deploymentSkill
- task-sizingSkill
- <kebab-case-name-matching-folder>Skill
- test-case-authorSkill
- third-party-dependency-evaluationSkill
- ui-test-executionSkill
- ui-ux-page-scopingSkill
- user-story-authorSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 1 is distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
If the corresponding skill is active on the project (.claude/skills/docx/, .claude/skills/pdf/), use it to extract content.
- Very specific: line 22
If the skill is NOT active, do NOT half-attempt.
- Very specific: line 50
After all fragments are processed, halt with ONE NEEDS_CONTEXT listing every conflict in a single payload:
- Very specific: line 67
Leave the section's placeholder in SRS with a TODO: <description of expected content> marker.
- Very specific: line 100
Synthesis decisions get logged: Every SRS section, US, and FR carries a Synthesized-From: line citing source fragment(s).
- Distinctive: line 101
Format normalization preserves intent: When BA changes "use case" to "user story", the original term is footnoted so the team can verify …
- Very specific: line 103
.docx/.pdfrequire their skills active: If the skill is absent, refuse with a clear "convert to .md first OR activate the skill" … - Very specific: line 108
After completing this mode's setup, load ba-ingestion-pipeline and run its Common Procedure (Phase 1.X) → Delta Detection (Phase 1.Z) → …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
BA Mode F — ingest-from-requirements-folder
When to use
You are the BA and Shape Detection selected Mode F: greenfield project, no SRS, but docs/requirements/ holds requirement fragments. Synthesize a kit-shape SRS from the fragments (no invention; full Synthesized-From: provenance), then hand to the pipeline.
Phase 1.F — Mode ingest-from-requirements-folder setup (greenfield, fragmented upstream)
Greenfield project. The PM has dropped requirements fragments into docs/requirements/ rather than authoring a single SRS doc. Files may be markdown, plain text, exported HTML, or — when the project's skills allow — .docx / .pdf. Your job is to synthesize a kit-shape SRS from these fragments. Distinct from Mode A (which expects a single bulk doc at docs/SRS.md) and from Mode E (which extracts from code).
F1. Enumerate docs/requirements/. List every file. Note file extension. For non-text formats (.docx, .pdf):
- If the corresponding skill is active on the project (
.claude/skills/docx/,.claude/skills/pdf/), use it to extract content. - If the skill is NOT active, do NOT half-attempt. Return
NEEDS_CONTEXTto the Orchestrator: "Found<file>.docxindocs/requirements/; project does not have thedocxskill active. Convert to.mdfirst OR activate thedocxskill; halt until resolved."
F2. Classify each file's likely role by content sampling (don't trust filenames alone — PMs name things inconsistently). Categories:
- Executive summary / vision (typical signals: "we want to build", "the goal is", high-level paragraphs)
- User stories (typical signals: "As a / I want / So that", "user can", numbered capabilities)
- Functional requirements (typical signals: endpoint definitions, schemas, error codes, data flows)
- Non-functional / NRS (typical signals: latency numbers, throughput, uptime targets)
- Security / compliance (typical signals: PII, auth, regulatory references)
- Roles / permissions (typical signals: role enumeration, who-can-do-what tables)
- Design references (typical signals: Figma URLs, screen names, mockup descriptions)
- Glossary / domain language (typical signals: term definitions, ubiquitous-language tables)
- Other (anything that doesn't fit; surface in OQ for the team to clarify intent)
File a brief classification table at the top of SRS §10 Changelog so the audit trail records how BA interpreted the fragments.
F3. Synthesize the kit-shape SRS. For each kit-required section (§1–§10):
- Find every fragment whose classification maps to that section.
- Combine their content into the kit's expected shape.
- Cite provenance via a
Synthesized-From:annotation at the section level. Example:Synthesized-From: docs/requirements/vision.md + docs/requirements/exec-summary-draft.docx(multi-source) orSynthesized-From: docs/requirements/user-stories.md(single-source). - Preserve original phrasing as footnotes when meaningful intent might be lost in normalization (e.g., when a fragment says "use case" but kit needs "user story" — normalize the heading, footnote the original term).
F4. Construct per-US and per-FR files where fragments carry that detail.
- Each
docs/user-stories/US-NNN.mdgets aSynthesized-From:line. - Each
docs/frs/FR-NNN.mdgets the same. - Description's "So that" must come from a fragment — never fabricated. If no fragment provides it, mark
TODO: <PM-supplied value statement>and file an OQ (same pattern as Mode E for missing value statements).
F5. Conflict detection. When two or more fragments contradict each other (different error codes for the same operation, different rate limits, different role assignments, etc.), accumulate the conflicts. Do NOT halt on the first conflict — that would force noisy round-trips for projects with many small fragments.
After all fragments are processed, halt with ONE NEEDS_CONTEXT listing every conflict in a single payload:
Status: NEEDS_CONTEXT
Reason: <N> conflicts detected across requirements fragments. Team must resolve each before BA can finalize the synthesized SRS.
Question: How should each conflict resolve?
Conflicts:
[c1] FR-008 error code: docs/requirements/api-spec.md says `AUTH_001`; docs/requirements/security-notes.md says `ACCESS_DENIED`. Which is authoritative?
[c2] US-003 role: docs/requirements/roles.md says `admin only`; docs/requirements/user-stories.md says `any authenticated user`. Which is correct?
[c3] …
Recommended: resolve [c1] = AUTH_001 (consistent with project-wide error envelope at §3.4), [c2] = unknown — PM decision required.
Confidence: medium for [c1]; low for the rest.On re-dispatch with user resolutions, apply each decision and continue.
F6. Gap detection. When a kit-required section has NO fragment addressing it:
- Leave the section's placeholder in SRS with a
TODO: <description of expected content>marker. - File one OQ per gap, citing which kit-required section is missing.
- Sign-off remains
In-Reviewuntil the team fills the gaps.
F7. Annotate-in-place preservation. Each file in docs/requirements/ gets a header annotation appended (NOT prepended — don't disturb the original first line which might be metadata):
---
_BA annotation (2026-MM-DD): Ingested into kit-shape SRS via Mode F. Maps to SRS sections: §1, §2 (partial). See SRS §10 Changelog for the full classification table._Files stay in place. Don't delete, don't move to _archive/. The original is preserved as historical reference; the kit's SRS is the new canonical artifact.
F8. Set SRS header.
Version: 1.0Status: Draftinitially; transitions toIn-Reviewonce Phase 1.X common procedure runs and the OQ set is final.Source: requirements-folder(new value)Last-Updated: <ISO-8601>Designated Design Approver: TBD,Designated Dependency Approver: TBD(team must name).
F9. Log to SRS §10 Changelog. A single entry:
| <ISO-8601> | BA Mode F ingestion — synthesized SRS from <N> fragments in docs/requirements/. Classification table: <embed table from F2>. Conflicts resolved: <N>. Gaps remaining: <N>. | BA |F10. Inline-don't-link (self-containment). Walk the synthesized SRS body + per-US/per-FR files for body-content references back to docs/requirements/<file> (see docs/requirements/security-notes.md, details in docs/requirements/api-spec.md, etc.). The docs/requirements/ files are preserved in place but downstream agents read kit artifacts ONLY — they should never need to open the requirements fragments. Replace every substantive back-reference with inlined content from the fragment; raise OQs for gaps. The Synthesized-From: annotation is the ONLY allowed reference to upstream fragments. Self-containment per CLAUDE.md §10.
F11. Proceed to Phase 1.X common procedure.
Hard rules specific to ingest-from-requirements-folder:
- Never invent content to fill gaps. Missing kit-required section → TODO marker + OQ. Fabrication is forbidden.
- Synthesis decisions get logged. Every SRS section, US, and FR carries a
Synthesized-From:line citing source fragment(s). No untraced content. - Format normalization preserves intent. When BA changes "use case" to "user story", the original term is footnoted so the team can verify intent was captured.
- Conflicts halt the batch, not the fragment. Accumulate all conflicts across all fragments; surface in one NEEDS_CONTEXT round. Single round-trip per ingestion run, not per-conflict.
.docx/.pdfrequire their skills active. If the skill is absent, refuse with a clear "convert to .md first OR activate the skill" message. Don't half-attempt with regex.docs/requirements/files are preserved in place post-ingestion. Annotate (don't delete, don't move). The SRS becomes canonical; the fragments stay as historical reference.
Next step
After completing this mode's setup, load ba-ingestion-pipeline and run its Common Procedure (Phase 1.X) → Delta Detection (Phase 1.Z) → Sign-off Gate (Phase 2).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

