ba-mode-single-doc
Skill9 starsChanged 6 months agoApache-2.0View on GitHub
BA Phase 1.A ingestion mode (ingest-from-single-doc). Load when Shape Detection selects Mode A: docs/SRS.md is one bulk document with US/FR content inline and the per-US/per-FR file trees are empty. Restructures the bulk doc into the kit's three-file shape before the common pipeline runs.
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-requirements-folderSkill
- ba-mode-reverse-engineerSkill
- 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
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Write a new file at docs/user-stories/US-NNN.md per user-story-template.md.
- Very specific: line 44
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 A — ingest-from-single-doc
When to use
You are the BA and Shape Detection (Phase 1.0, in the BA agent router) selected Mode A: docs/SRS.md is one bulk document with User Story and FR content inline, and docs/user-stories/ + docs/frs/ are empty. Run this setup, then hand to the ingestion pipeline.
Phase 1.A — Mode ingest-from-single-doc setup
The incoming SRS is one bulk document with US and FR content inline (any source format — markdown, Word, plain text dropped into docs/SRS.md from an upstream paste). Your job is to restructure it into the kit's three-file shape before the common procedure runs.
A1. Identify inline US blocks. Walk SRS §3.2 looking for per-US sub-sections (#### [US-NNN] headers or equivalent). For each:
- Extract the US content (Description / Pre-conditions / Main Flow / Business Rules / Post-conditions).
- Write a new file at
docs/user-stories/US-NNN.mdperuser-story-template.md. - Replace the SRS §3.2 sub-section with an index-table row (ID / Title / one-line Description / Role / Priority / Linked FRs / Status).
A2. Identify inline FR blocks. Walk SRS §3.3 (or §3.4 if FRs were mixed into technical constraints in the upstream doc). For each FR with inline detail:
- Extract Description / Preconditions / Main Flow / Business Rules / schemas / Error Handling / sequence diagram.
- Write a new file at
docs/frs/FR-NNN.mdperfrs-template.md. - Replace the SRS §3.3 sub-section with an index-table row.
A3. Set Source: inline in the SRS header (this is the default for Mode A — the materialized files ARE the source of truth going forward; the upstream bulk doc is treated as input, not as an external system to sync against).
A4. Log the split in SRS §10 Changelog: <ISO-8601> | BA Mode A ingestion — split N inline User Stories into docs/user-stories/, M inline FRs into docs/frs/.
A5. Gap detection (no invention). After the split, walk the resulting SRS against the kit's required-section list (per srs-ingestion-checklist.md § Gap Handling). For every kit-required field that the bulk doc didn't supply (US Description's "So that", Business Rules, Post-conditions, §4.1 sub-categories, role rows, DoD items, etc.), leave a TODO: <field expected> marker AND raise a paired OQ in SRS §8. Never auto-author. The bulk doc is the only source; if it didn't say something, neither does the synthesized SRS.
A6. Conflict detection (batched). Cross-reference sections of the bulk doc for internal contradictions (e.g., §3.4 says error code AUTH_001; §4.1 says ACCESS_DENIED for the same case; US-001 Business Rule contradicts FR-001 Error Handling row). Accumulate all conflicts. If at least one exists, halt with one batched NEEDS_CONTEXT listing every conflict — never per-conflict round-trips. On re-dispatch with user resolutions, apply each decision and continue.
A7. Inline-don't-link (self-containment). Before exiting setup, walk the produced SRS body + per-US files + per-FR files for any see docs/SRS.md-style references back to the now-superseded bulk doc, OR pointers to externally-named upstream artifacts. Replace each substantive back-reference with inlined content from the source. If the source didn't carry the needed content, leave a TODO: <field expected> marker and raise an OQ. The kit artifact must be self-contained per CLAUDE.md §10 self-containment invariant.
A8. Proceed to Phase 1.X common procedure.
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.

