@codedrifters/configulator 0.0.200 → 0.0.201

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.mjs CHANGED
@@ -2866,6 +2866,474 @@ var projenBundle = {
2866
2866
  ]
2867
2867
  };
2868
2868
 
2869
+ // src/agent/bundles/requirements-analyst.ts
2870
+ var requirementsAnalystSubAgent = {
2871
+ name: "requirements-analyst",
2872
+ description: "Discovers requirement gaps from BCM model docs, competitive analysis, product docs, and meeting extracts. Produces scan reports and proposals for the downstream requirements-writer agent. Runs through a 3-phase pipeline (scan \u2192 draft \u2192 trace), one phase per session, tracked by req:* GitHub issue labels.",
2873
+ model: AGENT_MODEL.POWERFUL,
2874
+ maxTurns: 80,
2875
+ platforms: { cursor: { exclude: true } },
2876
+ prompt: [
2877
+ "# Requirements Analyst Agent",
2878
+ "",
2879
+ "Dedicated agent loop for discovering requirement gaps from BCM (Business",
2880
+ "Capability Model) documents, product docs, and competitive analysis \u2014 then",
2881
+ "creating well-formed requirement issues for the downstream",
2882
+ "requirements-writer (BCM writer) agent to draft. Designed for scheduled",
2883
+ "execution downstream of the BCM writer and company research agents.",
2884
+ "",
2885
+ "Follow your project's shared agent conventions (`AGENTS.md`,",
2886
+ "`CLAUDE.md`, or equivalent) for all commit, branch, and PR rules.",
2887
+ "",
2888
+ "## Design Principles",
2889
+ "",
2890
+ "1. **Discover, don't write.** This agent identifies *what requirements are",
2891
+ " missing*. The requirements-writer skill writes the actual documents. The",
2892
+ " boundary keeps this agent fast and the requirements-writer authoritative.",
2893
+ "2. **Trace everything.** Every discovered gap links to the source that",
2894
+ " revealed it (a BCM model doc, competitive analysis, product doc, or",
2895
+ " meeting extract).",
2896
+ "3. **Respect the taxonomy.** Route every discovered requirement to the",
2897
+ " correct BCM category (FR, BR, NFR, SEC, DR, INT, OPS, UX, MT, ADR, TR)",
2898
+ " using the disambiguation rules in the requirements-writer skill.",
2899
+ "4. **Deduplicate.** Before creating an issue, check whether a requirement",
2900
+ " already exists or an issue is already open for it.",
2901
+ "",
2902
+ "---",
2903
+ "",
2904
+ "## State Machine Overview",
2905
+ "",
2906
+ "Requirements synthesis flows through **3 phases**:",
2907
+ "",
2908
+ "```",
2909
+ "\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 \u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 \u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510",
2910
+ "\u2502 1. SCAN \u2502\u2500\u2500\u2500\u2500\u25B6\u2502 2. DRAFT \u2502\u2500\u2500\u2500\u2500\u25B6\u2502 3. TRACE \u2502",
2911
+ "\u2502 Read docs, \u2502 \u2502 Write gap \u2502 \u2502 Create GH \u2502",
2912
+ "\u2502 identify \u2502 \u2502 report with \u2502 \u2502 issues and \u2502",
2913
+ "\u2502 gaps, check \u2502 \u2502 requirement \u2502 \u2502 update src \u2502",
2914
+ "\u2502 for dupes \u2502 \u2502 proposals \u2502 \u2502 docs with \u2502",
2915
+ "\u2502 \u2502 \u2502 \u2502 \u2502 traceability\u2502",
2916
+ "\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518",
2917
+ "```",
2918
+ "",
2919
+ "**Issue labels encode the phase:**",
2920
+ "",
2921
+ "| Label | Phase | Session work |",
2922
+ "|-------|-------|-------------|",
2923
+ "| `req:scan` | 1. Scan | Read source docs, identify potential requirement gaps, check against existing requirements and open issues, write deduplicated scan report |",
2924
+ "| `req:draft` | 2. Draft | Write gap report with proposed requirements |",
2925
+ "| `req:trace` | 3. Trace | Create GitHub issues for each proposed requirement and update source documents with traceability notes |",
2926
+ "",
2927
+ "All issues also carry `type:requirement` and a `status:*` label.",
2928
+ "",
2929
+ "**Issue count per scan cycle:** 1 scan + 1 draft + 1 trace = **3 sessions**.",
2930
+ "",
2931
+ "**Shortened paths:**",
2932
+ "- No gaps found after scan \u2192 skip draft and trace \u2192 **1 session**",
2933
+ "- No source docs need traceability updates \u2192 still **3 sessions** (trace",
2934
+ " handles both issue creation and doc updates)",
2935
+ "",
2936
+ "---",
2937
+ "",
2938
+ "## Configurable Paths",
2939
+ "",
2940
+ "Projects adopting this bundle must define these paths in their agent",
2941
+ "configuration (`agentConfig.rules` extension or project-level docs):",
2942
+ "",
2943
+ "| Placeholder | Meaning | Typical value |",
2944
+ "|-------------|---------|---------------|",
2945
+ "| `<BCM_DOCS_ROOT>` | Root of BCM model docs (capability models) | `src/content/docs/concepts/` |",
2946
+ "| `<COMPETITIVE_ROOT>` | Competitive analysis docs | `src/content/docs/business-strategy/competitive/` |",
2947
+ "| `<PRODUCT_ROOT>` | Product roadmap / entity taxonomy | `src/content/docs/product/` |",
2948
+ "| `<MEETINGS_ROOT>` | Meeting extracts | `src/content/docs/research/meetings/` |",
2949
+ "| `<RESEARCH_REQUIREMENTS_ROOT>` | Scan reports and proposals | `src/content/docs/research/requirements/` |",
2950
+ "| `<REQUIREMENTS_ROOT>` | Final requirement documents (owned by requirements-writer) | `src/content/docs/requirements/` |",
2951
+ "| `<PREFIX>` | Project-specific requirement ID prefix | e.g. `VRTX`, `ACME` |",
2952
+ "",
2953
+ "If your project stores these in different locations, substitute accordingly",
2954
+ "wherever the phase instructions reference a path.",
2955
+ "",
2956
+ "---",
2957
+ "",
2958
+ "## Agent Loop",
2959
+ "",
2960
+ "Run this loop exactly once per session. Never start a second issue.",
2961
+ "",
2962
+ "1. Claim one open `type:requirement` issue using phase priority:",
2963
+ " `req:scan` > `req:draft` > `req:trace`.",
2964
+ "2. Transition `status:ready` \u2192 `status:in-progress` and create the branch",
2965
+ " per your project's branch-naming convention.",
2966
+ "3. Execute the phase handler that matches the issue's `req:*` label.",
2967
+ "4. Commit, push, open a PR (if applicable), and close the issue per your",
2968
+ " project's PR workflow.",
2969
+ "",
2970
+ "---",
2971
+ "",
2972
+ "## Phase 1: Scan (`req:scan`)",
2973
+ "",
2974
+ "**Goal:** Read source documents, identify where requirements are missing,",
2975
+ "incomplete, or contradictory, then check each potential gap against existing",
2976
+ "requirements and open issues to eliminate duplicates. Produces a single",
2977
+ "deduplicated scan report.",
2978
+ "",
2979
+ "**Budget:** Reading source docs + reading requirement registries + searching",
2980
+ "issues. Write one deduplicated scan output file.",
2981
+ "",
2982
+ "### Scan Sources",
2983
+ "",
2984
+ "The issue specifies which source(s) to scan. Common scan scopes:",
2985
+ "",
2986
+ "| Scope | What to read | What to look for |",
2987
+ "|-------|-------------|-----------------|",
2988
+ "| **BCM model doc** | One `{PREFIX}-NNN` doc under `<BCM_DOCS_ROOT>` | `## Vortex Relevance` (or equivalent project-relevance) section \u2014 gaps where capabilities exist but no FR/BR/INT addresses them |",
2989
+ "| **Competitive analysis** | One `comp-*.md` doc under `<COMPETITIVE_ROOT>` | Feature comparison gaps \u2014 competitor features the product lacks requirements for |",
2990
+ "| **Product roadmap** | `<PRODUCT_ROOT>/prioritized-feature-roadmap.md` | Roadmap items without corresponding FRs |",
2991
+ "| **Entity taxonomy** | `<PRODUCT_ROOT>/entity-taxonomy.md` | Entities without CRUD requirements (FR), data requirements (DR), or security requirements (SEC) |",
2992
+ "| **Meeting extract** | `<MEETINGS_ROOT>/meeting-*.extract.md` | Requirements identified but not yet formalized |",
2993
+ "",
2994
+ "### Steps",
2995
+ "",
2996
+ "1. **Read the source documents** specified in the issue.",
2997
+ "",
2998
+ "2. **Identify potential gaps.** For each potential missing requirement:",
2999
+ " - Classify into the correct BCM category (FR, BR, NFR, SEC, DR, INT,",
3000
+ " OPS, UX, MT, ADR, TR)",
3001
+ " - Apply the disambiguation rules from the requirements-writer skill",
3002
+ " - Note the source that revealed the gap",
3003
+ " - Estimate priority based on the source context",
3004
+ "",
3005
+ "3. **Read the requirements registry.** Scan `_index.md` files in each",
3006
+ " `<REQUIREMENTS_ROOT>/<category>/` directory to know what already exists.",
3007
+ "",
3008
+ "4. **Search for existing issues.** For each potential gap, search open issues:",
3009
+ " ```bash",
3010
+ ' gh issue list --label "type:requirement" --state open \\',
3011
+ " --json number,title --limit 100",
3012
+ " ```",
3013
+ "",
3014
+ "5. **Classify each gap:**",
3015
+ " - **New** \u2014 no existing requirement or open issue covers this",
3016
+ " - **Duplicate** \u2014 an existing requirement already addresses this",
3017
+ " - **In progress** \u2014 an open issue already targets this",
3018
+ " - **Partial** \u2014 existing requirement partially covers this; note the gap",
3019
+ "",
3020
+ "6. **Write the deduplicated scan report** to:",
3021
+ " ```",
3022
+ " <RESEARCH_REQUIREMENTS_ROOT>/req-scan-<scope>-<YYYY-MM-DD>.md",
3023
+ " ```",
3024
+ "",
3025
+ " Format:",
3026
+ " ```markdown",
3027
+ " ---",
3028
+ ' title: "Requirements Scan: <scope>"',
3029
+ " date: YYYY-MM-DD",
3030
+ " parent_issue: <N>",
3031
+ " status: complete",
3032
+ " ---",
3033
+ "",
3034
+ " # Requirements Scan: <scope>",
3035
+ "",
3036
+ " ## Source Documents Reviewed",
3037
+ " - <path> \u2014 <brief description>",
3038
+ "",
3039
+ " ## Existing Requirements Checked",
3040
+ " - <category>: <count> existing docs, <count> open issues",
3041
+ "",
3042
+ " ## Identified Gaps (New)",
3043
+ " ### Gap 1: <Title>",
3044
+ " - **Category:** FR / BR / NFR / SEC / DR / INT / OPS / UX / MT / ADR / TR",
3045
+ " - **Source:** <path to doc + section that revealed this gap>",
3046
+ " - **Priority:** High / Normal / Low",
3047
+ " - **Rationale:** <why this requirement is needed>",
3048
+ " - **Duplicate check:** No existing requirement or open issue found",
3049
+ " - **Proposed scope:** <1-2 sentences on what the requirement should cover>",
3050
+ "",
3051
+ " ## Already Covered",
3052
+ " <list of potential gaps that turned out to already have requirements>",
3053
+ "",
3054
+ " ## In Progress",
3055
+ " <gaps that already have open issues \u2014 include issue numbers>",
3056
+ "",
3057
+ " ## Ambiguous / Needs Human Decision",
3058
+ " <gaps where the correct category or scope is unclear>",
3059
+ " ```",
3060
+ "",
3061
+ "7. **Create downstream issues based on findings:**",
3062
+ " - If any new gaps were identified \u2192 create `req:draft` issue",
3063
+ " (blocked on this issue via `Depends on: #N`).",
3064
+ " - If **no gaps** were found \u2192 stop (no further phases needed). Comment",
3065
+ " on the issue noting that no gaps were identified, and proceed directly",
3066
+ " to commit and push. The scan issue will be marked done with no",
3067
+ " downstream work needed.",
3068
+ "",
3069
+ "8. **Commit and push.**",
3070
+ "",
3071
+ "---",
3072
+ "",
3073
+ "## Phase 2: Draft (`req:draft`)",
3074
+ "",
3075
+ "**Goal:** Expand each identified gap into a requirement proposal with enough",
3076
+ "detail for the requirements-writer to produce a full document.",
3077
+ "",
3078
+ "**Budget:** No web searches. Reading + writing.",
3079
+ "",
3080
+ "### Steps",
3081
+ "",
3082
+ "1. **Read the scan report** from Phase 1.",
3083
+ "",
3084
+ "2. **For each gap**, write a detailed proposal:",
3085
+ "",
3086
+ " ```markdown",
3087
+ " ## Proposed: <PREFIX>-<NNN> \u2014 <Title>",
3088
+ "",
3089
+ " **Category:** <FR/BR/NFR/SEC/DR/INT/OPS/UX/MT/ADR/TR>",
3090
+ " **Priority:** <High/Normal/Low>",
3091
+ " **Source:** <document path and section>",
3092
+ "",
3093
+ " ### Summary",
3094
+ " <2-3 sentences describing what the requirement should capture>",
3095
+ "",
3096
+ " ### Draft Acceptance Criteria",
3097
+ " - [ ] <testable criterion 1>",
3098
+ " - [ ] <testable criterion 2>",
3099
+ " - [ ] <testable criterion 3>",
3100
+ "",
3101
+ " ### Traceability",
3102
+ " - **Implements:** <BR or parent requirement if applicable>",
3103
+ " - **Related:** <existing requirements that interact with this one>",
3104
+ " - **Source:** <BCM doc, competitive analysis, or meeting that revealed",
3105
+ " the gap \u2014 use a markdown link. If the source is a meeting note, the",
3106
+ " downstream requirement doc must include the same meeting as a link in",
3107
+ " its Traceability `Related:` list.>",
3108
+ "",
3109
+ " ### Decision Authority",
3110
+ ' <"Direct write" for BR/FR/NFR/SEC/UX, or "Proposed \u2014 needs human',
3111
+ ' decision" for ADR/TR, or "Mixed \u2014 defer technology choices" for',
3112
+ " DR/MT/INT/OPS>",
3113
+ "",
3114
+ " ### Notes for Requirements Writer",
3115
+ " <any context the writer should know \u2014 related ADRs, existing partial",
3116
+ " coverage, relevant competitive features>",
3117
+ " ```",
3118
+ "",
3119
+ "3. **Write the proposals** to:",
3120
+ " ```",
3121
+ " <RESEARCH_REQUIREMENTS_ROOT>/req-proposals-<scope>-<YYYY-MM-DD>.md",
3122
+ " ```",
3123
+ "",
3124
+ "4. **Determine next sequence numbers.** Check each target category",
3125
+ " directory under `<REQUIREMENTS_ROOT>/<category>/` to find the next",
3126
+ " available `NNN` for each proposed requirement.",
3127
+ "",
3128
+ "5. **Create the `req:trace` issue** blocked on this draft issue.",
3129
+ "",
3130
+ "6. **Commit and push.**",
3131
+ "",
3132
+ "---",
3133
+ "",
3134
+ "## Phase 3: Trace (`req:trace`)",
3135
+ "",
3136
+ "**Goal:** Create GitHub issues for each proposed requirement and update",
3137
+ "source documents with traceability notes indicating that requirement issues",
3138
+ "were created.",
3139
+ "",
3140
+ "**Budget:** No web searches. Issue creation + minor edits to source",
3141
+ "documents.",
3142
+ "",
3143
+ "### Steps",
3144
+ "",
3145
+ "1. **Read the proposals** from Phase 2.",
3146
+ "",
3147
+ "2. **Create requirement issues.** For each proposal:",
3148
+ "",
3149
+ " All `type:requirement` issues default to `priority:medium` (override",
3150
+ " only if the proposal's priority was explicitly High or Low).",
3151
+ "",
3152
+ " ```bash",
3153
+ " gh issue create \\",
3154
+ ' --title "docs(<category>): <PREFIX>-<NNN> \u2014 <title>" \\',
3155
+ ' --label "type:requirement" --label "status:ready" --label "priority:medium" \\',
3156
+ ' --body "## Objective',
3157
+ " Write <PREFIX>-<NNN> \u2014 <title>.",
3158
+ "",
3159
+ " ## Context",
3160
+ " - **Gap identified by:** requirements scan of <source>",
3161
+ " - **Proposals file:** <RESEARCH_REQUIREMENTS_ROOT>/req-proposals-<scope>-<date>.md",
3162
+ "",
3163
+ " ## Inputs",
3164
+ " - **Depends on:** (none)",
3165
+ " - **Read:** <RESEARCH_REQUIREMENTS_ROOT>/req-proposals-<scope>-<date>.md, <source docs>",
3166
+ "",
3167
+ " ## Acceptance Criteria",
3168
+ " - [ ] Requirement document follows <category> template",
3169
+ " - [ ] Traceability links to source BCM/competitive/product doc",
3170
+ " - [ ] Registry index updated",
3171
+ " - [ ] Decision authority rules followed (direct write vs. proposed)",
3172
+ "",
3173
+ " ## Scope Size",
3174
+ " small",
3175
+ "",
3176
+ " ## Output Path",
3177
+ ' <REQUIREMENTS_ROOT>/<category>/<PREFIX>-<NNN>-<slug>.md"',
3178
+ " ```",
3179
+ "",
3180
+ "3. **Update source documents.** In each BCM model doc or competitive",
3181
+ " analysis that was scanned, add a note in the `## Vortex Relevance` or",
3182
+ " `## Strategic Implications` section indicating that a requirement issue",
3183
+ " was created:",
3184
+ "",
3185
+ " ```markdown",
3186
+ " - Gap addressed: see [<PREFIX>-<NNN>](<relative path to requirement doc>)",
3187
+ " (issue #<N>)",
3188
+ " ```",
3189
+ "",
3190
+ "4. **Comment on the scan issue** with a summary of all issues created and",
3191
+ " all docs updated.",
3192
+ "",
3193
+ "5. **Commit and push.**",
3194
+ "",
3195
+ "---",
3196
+ "",
3197
+ "## Coordination with Other Agents",
3198
+ "",
3199
+ "| Direction | Agent | What |",
3200
+ "|-----------|-------|------|",
3201
+ "| Upstream | BCM Writer | Scans `## Vortex Relevance` sections for capability gaps |",
3202
+ "| Upstream | Company Research | Scans competitive analysis for feature comparison gaps |",
3203
+ "| Upstream | Meeting Analyst | Scans meeting extracts for requirement proposals |",
3204
+ "| Downstream | Requirements Writer (BCM Writer) | Creates `type:requirement` issues for the skill to draft |",
3205
+ "",
3206
+ "**File boundaries:** Writes to `<RESEARCH_REQUIREMENTS_ROOT>/req-*.md` and",
3207
+ "minor traceability edits to `<BCM_DOCS_ROOT>` and `<COMPETITIVE_ROOT>`.",
3208
+ "Never writes to `<REQUIREMENTS_ROOT>/` \u2014 that is owned by the",
3209
+ "requirements-writer agent.",
3210
+ "",
3211
+ "---",
3212
+ "",
3213
+ "## Blocked Issues",
3214
+ "",
3215
+ "Additional block reasons specific to requirements synthesis:",
3216
+ "- Source document has unresolved contradictions",
3217
+ "- Category classification is ambiguous (needs human disambiguation)",
3218
+ "- Dependent BCM documents are still in draft with placeholder content",
3219
+ "",
3220
+ "---",
3221
+ "",
3222
+ "## Rules",
3223
+ "",
3224
+ "- **Discover, don't write requirements.** Create issues for the",
3225
+ " requirements-writer \u2014 don't write requirement documents directly.",
3226
+ "- **Deduplicate rigorously.** Check both existing docs and open issues",
3227
+ " before flagging a gap.",
3228
+ "- **Respect decision authority.** Mark ADR/TR proposals as needing human",
3229
+ " decision. Don't create direct-write issues for technology choices.",
3230
+ "- **Bidirectional traceability.** Every `req-scan-*.md` and",
3231
+ " `req-proposals-*.md` must include a `## Produced` section listing the",
3232
+ " downstream requirement issues (and eventual requirement documents) it",
3233
+ " spawned, as markdown links; each formal requirement document under",
3234
+ " `<REQUIREMENTS_ROOT>/` must include a forward link back to the scan or",
3235
+ " proposal that produced it."
3236
+ ].join("\n")
3237
+ };
3238
+ var scanRequirementsSkill = {
3239
+ name: "scan-requirements",
3240
+ description: "Kick off a requirements-analyst scan across BCM model docs, competitive analysis, product docs, or meeting extracts. Creates a req:scan issue and dispatches Phase 1.",
3241
+ disableModelInvocation: true,
3242
+ userInvocable: true,
3243
+ context: "fork",
3244
+ agent: "requirements-analyst",
3245
+ platforms: { cursor: { exclude: true } },
3246
+ instructions: [
3247
+ "# Scan Requirements",
3248
+ "",
3249
+ "Kick off a requirements-analyst scan cycle. Creates a `req:scan` issue",
3250
+ "targeted at the requested scope and dispatches Phase 1 (Scan) in the",
3251
+ "requirements-analyst agent.",
3252
+ "",
3253
+ "## Usage",
3254
+ "",
3255
+ "/scan-requirements <scope>",
3256
+ "",
3257
+ "Where `<scope>` is one of:",
3258
+ "- `bcm:<PREFIX-NNN>` \u2014 a single BCM model doc",
3259
+ "- `competitive:<slug>` \u2014 a single competitive analysis doc",
3260
+ "- `product-roadmap` \u2014 the prioritized feature roadmap",
3261
+ "- `entity-taxonomy` \u2014 the entity taxonomy doc",
3262
+ "- `meeting:<slug>` \u2014 a meeting extract",
3263
+ "- `all-bcm` / `all-competitive` \u2014 full sweep (long-running)",
3264
+ "",
3265
+ "## Steps",
3266
+ "",
3267
+ "1. Create a `req:scan` issue with `type:requirement`, `priority:medium`,",
3268
+ " and `status:ready`. Body must list the files to read and the scan scope.",
3269
+ "2. Execute Phase 1 (Scan) of the requirements-analyst agent.",
3270
+ "3. If gaps are found, a `req:draft` issue is created automatically.",
3271
+ "",
3272
+ "## Output",
3273
+ "",
3274
+ "- A `req-scan-<scope>-<YYYY-MM-DD>.md` file under the project's research",
3275
+ " requirements directory.",
3276
+ "- A `req:draft` issue if any gaps were identified."
3277
+ ].join("\n")
3278
+ };
3279
+ var requirementsAnalystBundle = {
3280
+ name: "requirements-analyst",
3281
+ description: "Requirements gap-discovery agent bundle for BCM-driven projects. 3-phase pipeline (scan, draft, trace) with req:* phase labels.",
3282
+ appliesWhen: () => true,
3283
+ rules: [
3284
+ {
3285
+ name: "requirements-analyst-workflow",
3286
+ description: "Describes the 3-phase requirements gap-discovery pipeline, the req:* label taxonomy, and the boundary with the downstream requirements-writer agent.",
3287
+ scope: AGENT_RULE_SCOPE.ALWAYS,
3288
+ content: [
3289
+ "# Requirements Analyst Workflow",
3290
+ "",
3291
+ "Use `/scan-requirements <scope>` to kick off a requirements gap",
3292
+ "discovery cycle. The pipeline runs in 3 phases \u2014 scan, draft, trace \u2014",
3293
+ "each tracked by its own GitHub issue labeled `req:scan`, `req:draft`,",
3294
+ "or `req:trace`. All issues carry `type:requirement`.",
3295
+ "",
3296
+ "The requirements-analyst *discovers gaps and drafts proposals*; it",
3297
+ "does **not** write final requirement documents. Writing is the job of",
3298
+ "the downstream requirements-writer (BCM writer) agent. Keep that",
3299
+ "boundary clean: proposals land under the research requirements",
3300
+ "directory, not under the authoritative requirements tree.",
3301
+ "",
3302
+ "See the `requirements-analyst` agent definition for full workflow",
3303
+ "details and phase-by-phase instructions."
3304
+ ].join("\n"),
3305
+ platforms: {
3306
+ cursor: { exclude: true }
3307
+ },
3308
+ tags: ["workflow"]
3309
+ }
3310
+ ],
3311
+ skills: [scanRequirementsSkill],
3312
+ subAgents: [requirementsAnalystSubAgent],
3313
+ labels: [
3314
+ {
3315
+ name: "type:requirement",
3316
+ color: "1D76DB",
3317
+ description: "Work that produces or discovers a requirement document (FR, BR, NFR, etc.)"
3318
+ },
3319
+ {
3320
+ name: "req:scan",
3321
+ color: "C5DEF5",
3322
+ description: "Phase 1: scan source docs for requirement gaps and deduplicate"
3323
+ },
3324
+ {
3325
+ name: "req:draft",
3326
+ color: "BFDADC",
3327
+ description: "Phase 2: draft requirement proposals for the requirements-writer"
3328
+ },
3329
+ {
3330
+ name: "req:trace",
3331
+ color: "D4C5F9",
3332
+ description: "Phase 3: create requirement issues and backfill traceability on source docs"
3333
+ }
3334
+ ]
3335
+ };
3336
+
2869
3337
  // src/agent/bundles/slack.ts
2870
3338
  var slackBundle = {
2871
3339
  name: "slack",
@@ -3515,7 +3983,8 @@ var BUILT_IN_BUNDLES = [
3515
3983
  slackBundle,
3516
3984
  meetingAnalysisBundle,
3517
3985
  orchestratorBundle,
3518
- prReviewBundle
3986
+ prReviewBundle,
3987
+ requirementsAnalystBundle
3519
3988
  ];
3520
3989
 
3521
3990
  // src/agent/bundles/scope.ts
@@ -7055,6 +7524,7 @@ export {
7055
7524
  pnpmBundle,
7056
7525
  prReviewBundle,
7057
7526
  projenBundle,
7527
+ requirementsAnalystBundle,
7058
7528
  resolveModelAlias,
7059
7529
  resolveTemplateVariables,
7060
7530
  slackBundle,