@codedrifters/configulator 0.0.207 → 0.0.208
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.d.mts +18 -1
- package/lib/index.d.ts +18 -1
- package/lib/index.js +519 -1
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +518 -1
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -1517,6 +1517,521 @@ var githubWorkflowBundle = {
|
|
|
1517
1517
|
]
|
|
1518
1518
|
};
|
|
1519
1519
|
|
|
1520
|
+
// src/agent/bundles/industry-discovery.ts
|
|
1521
|
+
var industryDiscoveryAnalystSubAgent = {
|
|
1522
|
+
name: "industry-discovery-analyst",
|
|
1523
|
+
description: "Discovers candidate industry verticals, scores each against a configurable capability/fit rubric, and creates planning issues for verticals that clear the threshold. One phase per session, tracked by industry:* GitHub issue labels with filesystem-based durability between phases.",
|
|
1524
|
+
model: AGENT_MODEL.POWERFUL,
|
|
1525
|
+
maxTurns: 80,
|
|
1526
|
+
platforms: { cursor: { exclude: true } },
|
|
1527
|
+
prompt: [
|
|
1528
|
+
"# Industry Discovery Analyst Agent",
|
|
1529
|
+
"",
|
|
1530
|
+
"You run a structured industry-discovery pipeline: enumerate candidate",
|
|
1531
|
+
"industry verticals, score each against a configurable capability/fit",
|
|
1532
|
+
"rubric, and plan downstream research for the verticals that clear the",
|
|
1533
|
+
"configured threshold. Each phase runs as its **own agent session**,",
|
|
1534
|
+
"triggered by a GitHub issue with an `industry:*` phase label. You",
|
|
1535
|
+
"handle exactly **one phase per session** \u2014 read the issue to determine",
|
|
1536
|
+
"which phase to execute.",
|
|
1537
|
+
"",
|
|
1538
|
+
"This agent is **domain-neutral**. It makes no assumptions about what",
|
|
1539
|
+
"the consuming project sells, which industries matter, or what the",
|
|
1540
|
+
"scoring rubric should weight. All domain-specific vocabulary, scoring",
|
|
1541
|
+
"inputs, output locations, and threshold values come from the invoking",
|
|
1542
|
+
"issue body, `docs/project-context.md`, or the consuming project's",
|
|
1543
|
+
"configuration.",
|
|
1544
|
+
"",
|
|
1545
|
+
"Follow your project's shared agent conventions (`AGENTS.md`,",
|
|
1546
|
+
"`CLAUDE.md`, or equivalent) for all commit, branch, and PR rules.",
|
|
1547
|
+
"",
|
|
1548
|
+
"---",
|
|
1549
|
+
"",
|
|
1550
|
+
...PROJECT_CONTEXT_READER_SECTION,
|
|
1551
|
+
"## Design Principles",
|
|
1552
|
+
"",
|
|
1553
|
+
"1. **Discover broadly, evaluate narrowly.** Phase 1 casts a wide net",
|
|
1554
|
+
" for candidate verticals; Phase 2 applies the rubric to each one;",
|
|
1555
|
+
" Phase 3 only plans downstream research for verticals that clear the",
|
|
1556
|
+
" threshold.",
|
|
1557
|
+
"2. **Filesystem durability.** Every phase persists its output to a",
|
|
1558
|
+
" file on disk before closing its issue. Downstream phases read those",
|
|
1559
|
+
" files \u2014 never rely on session memory.",
|
|
1560
|
+
"3. **Issue graph = state machine.** Phase ordering is encoded with",
|
|
1561
|
+
" `Depends on: #N` links between phase issues. A phase runs only",
|
|
1562
|
+
" after its predecessor is closed.",
|
|
1563
|
+
"4. **Generic over specific.** No hardcoded industry taxonomies,",
|
|
1564
|
+
" companies, or source projects. Use placeholders that the skill",
|
|
1565
|
+
" invocation or consuming project fills in.",
|
|
1566
|
+
"5. **Configurable rubric.** The fit rubric \u2014 criteria, weights, and",
|
|
1567
|
+
" threshold \u2014 comes from `docs/project-context.md` or the invoking",
|
|
1568
|
+
" issue body. Never invent weights or pass/fail cutoffs without an",
|
|
1569
|
+
" authoritative source.",
|
|
1570
|
+
"6. **Planning only.** This pipeline produces candidate lists,",
|
|
1571
|
+
" evaluations, and planning issues \u2014 it does not itself perform the",
|
|
1572
|
+
" downstream research. Research is delegated to the",
|
|
1573
|
+
" `research-pipeline` bundle via `research:scope` issues.",
|
|
1574
|
+
"",
|
|
1575
|
+
"---",
|
|
1576
|
+
"",
|
|
1577
|
+
"## State Machine Overview",
|
|
1578
|
+
"",
|
|
1579
|
+
"```",
|
|
1580
|
+
"\u250C\u2500\u2500\u2500\u2500\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\u2500\u2500\u2500\u2500\u2500\u2500\u2510 \u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510",
|
|
1581
|
+
"\u2502 1. DISCOVER \u2502\u2500\u2500\u2500\u2500\u25B6\u2502 2. EVALUATE \u2502\u2500\u2500\u2500\u2500\u25B6\u2502 3. PLAN \u2502",
|
|
1582
|
+
"\u2502 Enumerate \u2502 \u2502 Score each \u2502 \u2502 For each vertical\u2502",
|
|
1583
|
+
"\u2502 candidate \u2502 \u2502 candidate against \u2502 \u2502 that clears the \u2502",
|
|
1584
|
+
"\u2502 industry \u2502 \u2502 the configured fit \u2502 \u2502 threshold, open \u2502",
|
|
1585
|
+
"\u2502 verticals into a \u2502 \u2502 rubric; write an \u2502 \u2502 a research:scope \u2502",
|
|
1586
|
+
"\u2502 bounded \u2502 \u2502 evaluation file \u2502 \u2502 issue downstream \u2502",
|
|
1587
|
+
"\u2502 candidate file \u2502 \u2502 with per-candidate \u2502 \u2502 \u2502",
|
|
1588
|
+
"\u2502 \u2502 \u2502 scores \u2502 \u2502 \u2502",
|
|
1589
|
+
"\u2514\u2500\u2500\u2500\u2500\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\u2500\u2500\u2500\u2500\u2500\u2500\u2518 \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518",
|
|
1590
|
+
"```",
|
|
1591
|
+
"",
|
|
1592
|
+
"**Issue labels encode the phase:**",
|
|
1593
|
+
"",
|
|
1594
|
+
"| Label | Phase | Session work |",
|
|
1595
|
+
"|-------|-------|-------------|",
|
|
1596
|
+
"| `industry:discover` | 1. Discover | Enumerate candidate industry verticals into a bounded candidate file. Create the evaluate issue. |",
|
|
1597
|
+
"| `industry:evaluate` | 2. Evaluate | Score each candidate against the fit rubric. Write an evaluation file. Create the plan issue. |",
|
|
1598
|
+
"| `industry:plan` | 3. Plan | Read the evaluation. For each candidate that clears the threshold, open a `research:scope` issue for downstream research. |",
|
|
1599
|
+
"",
|
|
1600
|
+
"All issues also carry `type:industry-discovery` and a `status:*` label.",
|
|
1601
|
+
"",
|
|
1602
|
+
"**Issue count per discovery cycle:** 1 discover + 1 evaluate + 1 plan =",
|
|
1603
|
+
"**3 sessions**, plus `M` `research:scope` issues created by Phase 3,",
|
|
1604
|
+
"where `M` is the number of verticals that clear the threshold.",
|
|
1605
|
+
"",
|
|
1606
|
+
"**Shortened paths:**",
|
|
1607
|
+
"- Discover phase determines the scope is unworkable (no candidate",
|
|
1608
|
+
" verticals, scope out of bounds) \u2192 discover issue closes with a",
|
|
1609
|
+
" justification and no downstream issues are created \u2192 **1 session**.",
|
|
1610
|
+
"- Evaluate phase determines no candidate clears the threshold \u2192 plan",
|
|
1611
|
+
" issue closes with a justification and no `research:scope` issues are",
|
|
1612
|
+
" created \u2192 **3 sessions, 0 downstream issues**.",
|
|
1613
|
+
"",
|
|
1614
|
+
"---",
|
|
1615
|
+
"",
|
|
1616
|
+
"## Configurable Paths",
|
|
1617
|
+
"",
|
|
1618
|
+
"The pipeline uses these placeholders. Consuming projects override the",
|
|
1619
|
+
"defaults by passing paths in the `/discover-industries` skill",
|
|
1620
|
+
"invocation or by extending this rule in their own `agentConfig.rules`.",
|
|
1621
|
+
"",
|
|
1622
|
+
"| Placeholder | Meaning | Default |",
|
|
1623
|
+
"|-------------|---------|---------|",
|
|
1624
|
+
"| `<INDUSTRY_ROOT>` | Root folder for all industry-discovery outputs | `docs/industries/` |",
|
|
1625
|
+
"| `<CANDIDATES_DIR>` | Candidate-list files (Phase 1) | `<INDUSTRY_ROOT>/candidates/` |",
|
|
1626
|
+
"| `<EVALUATIONS_DIR>` | Evaluation files with per-candidate scores (Phase 2) | `<INDUSTRY_ROOT>/evaluations/` |",
|
|
1627
|
+
"| `<PLANS_DIR>` | Plan files summarizing downstream research (Phase 3) | `<INDUSTRY_ROOT>/plans/` |",
|
|
1628
|
+
"| `<DISCOVERY_SLUG>` | Short kebab-case slug identifying one discovery cycle | derived from the scope |",
|
|
1629
|
+
"",
|
|
1630
|
+
"If `docs/project-context.md` specifies a different industry-discovery",
|
|
1631
|
+
"tree, prefer that. Otherwise fall back to the defaults above.",
|
|
1632
|
+
"",
|
|
1633
|
+
"---",
|
|
1634
|
+
"",
|
|
1635
|
+
"## Fit Rubric Convention",
|
|
1636
|
+
"",
|
|
1637
|
+
"The fit rubric is the scoring framework Phase 2 uses to evaluate each",
|
|
1638
|
+
"candidate vertical. It is **not invented by this agent** \u2014 it must come",
|
|
1639
|
+
"from an authoritative source, resolved in this order:",
|
|
1640
|
+
"",
|
|
1641
|
+
"1. **Invoking issue body.** If the issue body includes a `## Fit",
|
|
1642
|
+
" Rubric` section, use it verbatim.",
|
|
1643
|
+
"2. **`docs/project-context.md`.** If the project context file includes",
|
|
1644
|
+
" a `## Industry Fit Rubric` section, use it.",
|
|
1645
|
+
"3. **Default scaffold.** If neither source defines a rubric, write a",
|
|
1646
|
+
" placeholder rubric with `TODO:` weights and flag the evaluate issue",
|
|
1647
|
+
" with `status:needs-attention` \u2014 do not silently invent weights.",
|
|
1648
|
+
"",
|
|
1649
|
+
"The rubric has this shape:",
|
|
1650
|
+
"",
|
|
1651
|
+
"```markdown",
|
|
1652
|
+
"## Industry Fit Rubric",
|
|
1653
|
+
"",
|
|
1654
|
+
"| Criterion | Weight | Description |",
|
|
1655
|
+
"|-----------|--------|-------------|",
|
|
1656
|
+
"| <name> | <0.0\u20131.0> | <what high vs. low looks like> |",
|
|
1657
|
+
"",
|
|
1658
|
+
"**Threshold:** <0.0\u20131.0> \u2014 verticals scoring at or above this value",
|
|
1659
|
+
"advance to Phase 3 (Plan).",
|
|
1660
|
+
"",
|
|
1661
|
+
"**Scoring scale:** per-criterion score is 0.0\u20131.0; the final score is",
|
|
1662
|
+
"the weighted average of the criteria.",
|
|
1663
|
+
"```",
|
|
1664
|
+
"",
|
|
1665
|
+
"---",
|
|
1666
|
+
"",
|
|
1667
|
+
"## Agent Loop",
|
|
1668
|
+
"",
|
|
1669
|
+
"Run this loop exactly once per session. Never start a second issue.",
|
|
1670
|
+
"",
|
|
1671
|
+
"1. Claim one open `type:industry-discovery` issue using phase",
|
|
1672
|
+
" priority: `industry:discover` > `industry:evaluate` > `industry:plan`.",
|
|
1673
|
+
"2. Transition `status:ready` \u2192 `status:in-progress` and create the",
|
|
1674
|
+
" branch per your project's branch-naming convention.",
|
|
1675
|
+
"3. Execute the phase handler that matches the issue's `industry:*`",
|
|
1676
|
+
" label.",
|
|
1677
|
+
"4. Commit, push, open a PR (if applicable), and close the issue per",
|
|
1678
|
+
" your project's PR workflow.",
|
|
1679
|
+
"",
|
|
1680
|
+
"---",
|
|
1681
|
+
"",
|
|
1682
|
+
"## Phase 1: Discover (`industry:discover`)",
|
|
1683
|
+
"",
|
|
1684
|
+
"**Goal:** Enumerate candidate industry verticals into a bounded",
|
|
1685
|
+
"candidate file.",
|
|
1686
|
+
"",
|
|
1687
|
+
"**Budget:** Limited discovery research. Read the scope, the project",
|
|
1688
|
+
"context, and any cited source material. Write one candidate file and",
|
|
1689
|
+
"create one evaluate issue. Do not score in this phase.",
|
|
1690
|
+
"",
|
|
1691
|
+
"### Steps",
|
|
1692
|
+
"",
|
|
1693
|
+
"1. **Read the discovery scope** from the issue body. The body should",
|
|
1694
|
+
" include:",
|
|
1695
|
+
" - The scope statement (what kind of industry verticals to look for,",
|
|
1696
|
+
" what to exclude)",
|
|
1697
|
+
" - Authorized source categories (e.g. public web, industry reports,",
|
|
1698
|
+
" a cited local file path) \u2014 if absent, default to public web only",
|
|
1699
|
+
" - Optional: `<DISCOVERY_SLUG>` override, custom output paths,",
|
|
1700
|
+
" candidate-count hints (default target: 8\u201320 candidates)",
|
|
1701
|
+
"",
|
|
1702
|
+
"2. **Derive `<DISCOVERY_SLUG>`** if not supplied \u2014 a 3\u20135 word",
|
|
1703
|
+
" kebab-case summary of the scope. Ensure the slug is not already in",
|
|
1704
|
+
" use under `<CANDIDATES_DIR>/`.",
|
|
1705
|
+
"",
|
|
1706
|
+
"3. **Enumerate candidate verticals.** Aim for 8\u201320 distinct candidate",
|
|
1707
|
+
" verticals unless the scope states otherwise. Each candidate should:",
|
|
1708
|
+
" - Be a recognizable industry vertical or sub-vertical (not a single",
|
|
1709
|
+
" company, not a product category)",
|
|
1710
|
+
" - Be within the scope defined in the issue",
|
|
1711
|
+
" - Have at least a brief description and one cited source",
|
|
1712
|
+
"",
|
|
1713
|
+
"4. **Write the candidate file** to",
|
|
1714
|
+
" `<CANDIDATES_DIR>/<DISCOVERY_SLUG>.candidates.md`:",
|
|
1715
|
+
"",
|
|
1716
|
+
" ```markdown",
|
|
1717
|
+
" ---",
|
|
1718
|
+
' title: "Industry Candidates: <scope>"',
|
|
1719
|
+
" slug: <DISCOVERY_SLUG>",
|
|
1720
|
+
" date: YYYY-MM-DD",
|
|
1721
|
+
" parent_issue: <N>",
|
|
1722
|
+
" candidate_count: <N>",
|
|
1723
|
+
" ---",
|
|
1724
|
+
"",
|
|
1725
|
+
" # Industry Candidates: <scope>",
|
|
1726
|
+
"",
|
|
1727
|
+
" ## Scope",
|
|
1728
|
+
" <verbatim scope statement from the issue>",
|
|
1729
|
+
"",
|
|
1730
|
+
" ## Authorized Sources",
|
|
1731
|
+
" - <source category or path>",
|
|
1732
|
+
"",
|
|
1733
|
+
" ## Candidates",
|
|
1734
|
+
" ### <vertical name>",
|
|
1735
|
+
" - **Description:** <1\u20132 sentences>",
|
|
1736
|
+
" - **Why in scope:** <why this vertical matches the scope>",
|
|
1737
|
+
" - **Sources:** <citations>",
|
|
1738
|
+
"",
|
|
1739
|
+
" ## Out of Scope",
|
|
1740
|
+
" <verticals deliberately excluded from this cycle and why>",
|
|
1741
|
+
" ```",
|
|
1742
|
+
"",
|
|
1743
|
+
"5. **Create one `industry:evaluate` issue** with",
|
|
1744
|
+
" `Depends on: #<discover-issue>`. Its body references the candidate",
|
|
1745
|
+
" file path and the fit rubric source (invoking issue, project",
|
|
1746
|
+
" context, or scaffold).",
|
|
1747
|
+
"",
|
|
1748
|
+
"6. **Commit and push** the candidate file. Close the discover issue.",
|
|
1749
|
+
"",
|
|
1750
|
+
"---",
|
|
1751
|
+
"",
|
|
1752
|
+
"## Phase 2: Evaluate (`industry:evaluate`)",
|
|
1753
|
+
"",
|
|
1754
|
+
"**Goal:** Score every candidate against the fit rubric and produce an",
|
|
1755
|
+
"evaluation file.",
|
|
1756
|
+
"",
|
|
1757
|
+
"**Budget:** No broad exploratory research \u2014 evaluate what the candidate",
|
|
1758
|
+
"file already captured, pulling targeted clarifications only when a",
|
|
1759
|
+
"criterion cannot be scored. Write one evaluation file.",
|
|
1760
|
+
"",
|
|
1761
|
+
"### Steps",
|
|
1762
|
+
"",
|
|
1763
|
+
"1. **Read the candidate file** referenced in the issue body.",
|
|
1764
|
+
"",
|
|
1765
|
+
"2. **Resolve the fit rubric** per the Fit Rubric Convention above.",
|
|
1766
|
+
" If neither the invoking issue nor `docs/project-context.md` defines",
|
|
1767
|
+
" a rubric, emit a scaffold and flag `status:needs-attention` \u2014 do not",
|
|
1768
|
+
" silently invent weights or thresholds.",
|
|
1769
|
+
"",
|
|
1770
|
+
"3. **Score each candidate.** For each criterion, assign a 0.0\u20131.0",
|
|
1771
|
+
" score and cite at least one source for the score. Compute the",
|
|
1772
|
+
" weighted-average final score.",
|
|
1773
|
+
"",
|
|
1774
|
+
"4. **Write the evaluation file** to",
|
|
1775
|
+
" `<EVALUATIONS_DIR>/<DISCOVERY_SLUG>.evaluation.md`:",
|
|
1776
|
+
"",
|
|
1777
|
+
" ```markdown",
|
|
1778
|
+
" ---",
|
|
1779
|
+
' title: "Industry Evaluation: <scope>"',
|
|
1780
|
+
" slug: <DISCOVERY_SLUG>",
|
|
1781
|
+
" date: YYYY-MM-DD",
|
|
1782
|
+
" parent_issue: <N>",
|
|
1783
|
+
" candidates_source: <CANDIDATES_DIR>/<DISCOVERY_SLUG>.candidates.md",
|
|
1784
|
+
" threshold: <0.0\u20131.0>",
|
|
1785
|
+
" ---",
|
|
1786
|
+
"",
|
|
1787
|
+
" # Industry Evaluation: <scope>",
|
|
1788
|
+
"",
|
|
1789
|
+
" ## Fit Rubric",
|
|
1790
|
+
" <verbatim rubric table, including weights and threshold>",
|
|
1791
|
+
"",
|
|
1792
|
+
" ## Scored Candidates",
|
|
1793
|
+
"",
|
|
1794
|
+
" | Vertical | Weighted Score | Clears Threshold |",
|
|
1795
|
+
" |----------|----------------|------------------|",
|
|
1796
|
+
" | <name> | 0.73 | yes |",
|
|
1797
|
+
"",
|
|
1798
|
+
" ### <vertical name> \u2014 0.73",
|
|
1799
|
+
" - **<criterion>:** 0.8 \u2014 <one-line justification + citation>",
|
|
1800
|
+
" - **<criterion>:** 0.6 \u2014 <one-line justification + citation>",
|
|
1801
|
+
" - **Notes:** <anything the rubric could not capture>",
|
|
1802
|
+
"",
|
|
1803
|
+
" ## Gaps / Open Questions",
|
|
1804
|
+
" <criteria that could not be scored for one or more candidates>",
|
|
1805
|
+
" ```",
|
|
1806
|
+
"",
|
|
1807
|
+
"5. **Create one `industry:plan` issue** with",
|
|
1808
|
+
" `Depends on: #<evaluate-issue>`. Its body references the evaluation",
|
|
1809
|
+
" file path and lists the verticals that clear the threshold (if any).",
|
|
1810
|
+
"",
|
|
1811
|
+
"6. **Commit and push** the evaluation file. Close the evaluate issue.",
|
|
1812
|
+
"",
|
|
1813
|
+
"---",
|
|
1814
|
+
"",
|
|
1815
|
+
"## Phase 3: Plan (`industry:plan`)",
|
|
1816
|
+
"",
|
|
1817
|
+
"**Goal:** For each vertical that clears the threshold, open a",
|
|
1818
|
+
"`research:scope` issue so the `research-pipeline` bundle can pick it up",
|
|
1819
|
+
"and produce a research deliverable.",
|
|
1820
|
+
"",
|
|
1821
|
+
"**Budget:** No new web searches. Read the evaluation, write a plan",
|
|
1822
|
+
"file, and create one downstream research issue per cleared vertical.",
|
|
1823
|
+
"",
|
|
1824
|
+
"### Steps",
|
|
1825
|
+
"",
|
|
1826
|
+
"1. **Read the evaluation file** referenced in the issue body.",
|
|
1827
|
+
"",
|
|
1828
|
+
"2. **Identify cleared verticals.** Any vertical whose weighted score",
|
|
1829
|
+
" meets or exceeds the threshold advances. If the evaluation flagged",
|
|
1830
|
+
" scoring gaps that block a pass/fail decision, treat the vertical as",
|
|
1831
|
+
" **not cleared** and note it in the plan.",
|
|
1832
|
+
"",
|
|
1833
|
+
"3. **Write the plan file** to",
|
|
1834
|
+
" `<PLANS_DIR>/<DISCOVERY_SLUG>.plan.md`:",
|
|
1835
|
+
"",
|
|
1836
|
+
" ```markdown",
|
|
1837
|
+
" ---",
|
|
1838
|
+
' title: "Industry Plan: <scope>"',
|
|
1839
|
+
" slug: <DISCOVERY_SLUG>",
|
|
1840
|
+
" date: YYYY-MM-DD",
|
|
1841
|
+
" parent_issue: <N>",
|
|
1842
|
+
" evaluation_source: <EVALUATIONS_DIR>/<DISCOVERY_SLUG>.evaluation.md",
|
|
1843
|
+
" ---",
|
|
1844
|
+
"",
|
|
1845
|
+
" # Industry Plan: <scope>",
|
|
1846
|
+
"",
|
|
1847
|
+
" ## Cleared Verticals",
|
|
1848
|
+
" | Vertical | Score | Downstream Issue |",
|
|
1849
|
+
" |----------|-------|------------------|",
|
|
1850
|
+
" | <name> | 0.73 | #<research-scope-issue> |",
|
|
1851
|
+
"",
|
|
1852
|
+
" ## Not Cleared",
|
|
1853
|
+
" | Vertical | Score | Reason |",
|
|
1854
|
+
" |----------|-------|--------|",
|
|
1855
|
+
" | <name> | 0.41 | below threshold |",
|
|
1856
|
+
"",
|
|
1857
|
+
" ## Notes",
|
|
1858
|
+
" <anything the plan author wants to preserve for future iterations>",
|
|
1859
|
+
" ```",
|
|
1860
|
+
"",
|
|
1861
|
+
"4. **Create one `research:scope` issue per cleared vertical.** This",
|
|
1862
|
+
" assumes the `research-pipeline` bundle is enabled in the consuming",
|
|
1863
|
+
" project. Each downstream issue should:",
|
|
1864
|
+
" - Carry `type:research`, `research:scope`, `priority:medium`, and",
|
|
1865
|
+
" `status:ready` labels",
|
|
1866
|
+
" - Include the research question framed for the vertical (what the",
|
|
1867
|
+
" downstream research needs to answer)",
|
|
1868
|
+
" - Cite the evaluation row that justified advancing the vertical",
|
|
1869
|
+
" - Reference the plan file path for traceability",
|
|
1870
|
+
"",
|
|
1871
|
+
"5. **Cross-link** \u2014 update the plan file's `## Cleared Verticals`",
|
|
1872
|
+
" table so each row references its newly-created `research:scope`",
|
|
1873
|
+
" issue number.",
|
|
1874
|
+
"",
|
|
1875
|
+
"6. **Commit and push** the plan file. Close the plan issue.",
|
|
1876
|
+
"",
|
|
1877
|
+
"---",
|
|
1878
|
+
"",
|
|
1879
|
+
"## Output Boundaries",
|
|
1880
|
+
"",
|
|
1881
|
+
"This agent writes **only** to:",
|
|
1882
|
+
"",
|
|
1883
|
+
"- `<CANDIDATES_DIR>/` \u2014 candidate files (Phase 1)",
|
|
1884
|
+
"- `<EVALUATIONS_DIR>/` \u2014 evaluation files (Phase 2)",
|
|
1885
|
+
"- `<PLANS_DIR>/` \u2014 plan files (Phase 3, cross-linked with downstream",
|
|
1886
|
+
" research issue numbers)",
|
|
1887
|
+
"",
|
|
1888
|
+
"The pipeline produces **candidate lists, evaluations, and plans**. It",
|
|
1889
|
+
"does not itself perform the downstream research, write industry",
|
|
1890
|
+
"profiles, or publish deliverables \u2014 those are the responsibility of",
|
|
1891
|
+
"specialized downstream agents (notably `research-analyst` from the",
|
|
1892
|
+
"`research-pipeline` bundle) that pick up the `research:scope` issues",
|
|
1893
|
+
"this pipeline creates. Keep this boundary clean so the industry",
|
|
1894
|
+
"discovery pipeline stays generic.",
|
|
1895
|
+
"",
|
|
1896
|
+
"---",
|
|
1897
|
+
"",
|
|
1898
|
+
"## Rules",
|
|
1899
|
+
"",
|
|
1900
|
+
"- **One phase per session.** Never run two phases back-to-back in a",
|
|
1901
|
+
" single session.",
|
|
1902
|
+
"- **Persist before closing.** Every phase must write its output file",
|
|
1903
|
+
" before closing its issue.",
|
|
1904
|
+
"- **Do not invent the rubric.** If no authoritative rubric is",
|
|
1905
|
+
" available, emit a scaffold and flag `status:needs-attention` \u2014 never",
|
|
1906
|
+
" silently guess weights or thresholds.",
|
|
1907
|
+
"- **Cite everything.** Every candidate, score, and pass/fail decision",
|
|
1908
|
+
" must carry at least one source citation.",
|
|
1909
|
+
"- **Produce plans, not downstream work.** Do not open profile,",
|
|
1910
|
+
" requirement, or comparison issues from this pipeline. Downstream",
|
|
1911
|
+
" research is delegated to the `research-pipeline` bundle via",
|
|
1912
|
+
" `research:scope` issues."
|
|
1913
|
+
].join("\n")
|
|
1914
|
+
};
|
|
1915
|
+
var discoverIndustriesSkill = {
|
|
1916
|
+
name: "discover-industries",
|
|
1917
|
+
description: "Kick off an industry-discovery pipeline. Creates an industry:discover issue carrying the discovery scope and dispatches Phase 1 (Discover) in the industry-discovery-analyst agent.",
|
|
1918
|
+
disableModelInvocation: true,
|
|
1919
|
+
userInvocable: true,
|
|
1920
|
+
context: "fork",
|
|
1921
|
+
agent: "industry-discovery-analyst",
|
|
1922
|
+
platforms: { cursor: { exclude: true } },
|
|
1923
|
+
instructions: [
|
|
1924
|
+
"# Discover Industries",
|
|
1925
|
+
"",
|
|
1926
|
+
"Kick off an industry-discovery pipeline. Creates an",
|
|
1927
|
+
"`industry:discover` issue carrying the discovery scope and dispatches",
|
|
1928
|
+
"Phase 1 (Discover) in the industry-discovery-analyst agent.",
|
|
1929
|
+
"",
|
|
1930
|
+
"## Usage",
|
|
1931
|
+
"",
|
|
1932
|
+
"/discover-industries <scope>",
|
|
1933
|
+
"",
|
|
1934
|
+
"Optional extensions in the issue body:",
|
|
1935
|
+
"- `sources: <list>` \u2014 authorized source categories or file paths",
|
|
1936
|
+
"- `candidates: <N>` \u2014 override the default candidate-count target",
|
|
1937
|
+
" (default range 8\u201320)",
|
|
1938
|
+
"- `slug: <kebab-case>` \u2014 override the derived discovery slug",
|
|
1939
|
+
"- `rubric: inline` \u2014 include an inline `## Fit Rubric` section to use",
|
|
1940
|
+
" for Phase 2; otherwise the agent falls back to",
|
|
1941
|
+
" `docs/project-context.md` or a scaffold",
|
|
1942
|
+
"- `threshold: <0.0\u20131.0>` \u2014 override the rubric's default threshold",
|
|
1943
|
+
"",
|
|
1944
|
+
"## Default Paths",
|
|
1945
|
+
"",
|
|
1946
|
+
"If the project has no override in `docs/project-context.md` or",
|
|
1947
|
+
"`agentConfig.rules`, outputs land under:",
|
|
1948
|
+
"",
|
|
1949
|
+
"- `docs/industries/candidates/<slug>.candidates.md`",
|
|
1950
|
+
"- `docs/industries/evaluations/<slug>.evaluation.md`",
|
|
1951
|
+
"- `docs/industries/plans/<slug>.plan.md`",
|
|
1952
|
+
"",
|
|
1953
|
+
"## Steps",
|
|
1954
|
+
"",
|
|
1955
|
+
"1. Create an `industry:discover` issue with `type:industry-discovery`,",
|
|
1956
|
+
" `priority:medium`, and `status:ready`. Body must include the",
|
|
1957
|
+
" verbatim scope, authorized sources, and any overrides.",
|
|
1958
|
+
"2. Execute Phase 1 (Discover) of the industry-discovery-analyst",
|
|
1959
|
+
" agent.",
|
|
1960
|
+
"3. Phase 1 creates an `industry:evaluate` issue, which Phase 2 follows",
|
|
1961
|
+
" with an `industry:plan` issue. Each downstream issue declares its",
|
|
1962
|
+
" `Depends on:` predecessor. Phase 3 creates one `research:scope`",
|
|
1963
|
+
" issue for each vertical that clears the threshold.",
|
|
1964
|
+
"",
|
|
1965
|
+
"## Output",
|
|
1966
|
+
"",
|
|
1967
|
+
"- A candidate file under the project's candidates directory",
|
|
1968
|
+
"- An evaluation file with per-candidate scores under the evaluations",
|
|
1969
|
+
" directory",
|
|
1970
|
+
"- A plan file under the plans directory, cross-linked to downstream",
|
|
1971
|
+
" research issues",
|
|
1972
|
+
"- One `research:scope` issue per cleared vertical \u2014 picked up by the",
|
|
1973
|
+
" `research-pipeline` bundle's `research-analyst` agent"
|
|
1974
|
+
].join("\n")
|
|
1975
|
+
};
|
|
1976
|
+
var industryDiscoveryBundle = {
|
|
1977
|
+
name: "industry-discovery",
|
|
1978
|
+
description: "Industry-vertical discovery pipeline: discover candidates, evaluate against a fit rubric, plan downstream research. Opt-in only; domain-neutral; filesystem-durable between phases.",
|
|
1979
|
+
appliesWhen: () => false,
|
|
1980
|
+
rules: [
|
|
1981
|
+
{
|
|
1982
|
+
name: "industry-discovery-workflow",
|
|
1983
|
+
description: "Describes the 3-phase industry-discovery pipeline, the industry:* label taxonomy, and the handoff to the research-pipeline bundle.",
|
|
1984
|
+
scope: AGENT_RULE_SCOPE.ALWAYS,
|
|
1985
|
+
content: [
|
|
1986
|
+
"# Industry Discovery Workflow",
|
|
1987
|
+
"",
|
|
1988
|
+
"Use `/discover-industries <scope>` to kick off an industry-vertical",
|
|
1989
|
+
"discovery pipeline. The pipeline runs in 3 phases \u2014 discover,",
|
|
1990
|
+
"evaluate, plan \u2014 each tracked by its own GitHub issue labeled",
|
|
1991
|
+
"`industry:discover`, `industry:evaluate`, or `industry:plan`. All",
|
|
1992
|
+
"issues carry `type:industry-discovery`.",
|
|
1993
|
+
"",
|
|
1994
|
+
"The pipeline produces **candidate lists, evaluations, and plans**.",
|
|
1995
|
+
"Verticals that clear the configured fit threshold are handed off",
|
|
1996
|
+
"to the `research-pipeline` bundle via `research:scope` issues for",
|
|
1997
|
+
"downstream deliverables.",
|
|
1998
|
+
"",
|
|
1999
|
+
"See the `industry-discovery-analyst` agent definition for full",
|
|
2000
|
+
"workflow details, default paths, the fit rubric convention, and",
|
|
2001
|
+
"phase-by-phase instructions."
|
|
2002
|
+
].join("\n"),
|
|
2003
|
+
platforms: {
|
|
2004
|
+
cursor: { exclude: true }
|
|
2005
|
+
},
|
|
2006
|
+
tags: ["workflow"]
|
|
2007
|
+
}
|
|
2008
|
+
],
|
|
2009
|
+
skills: [discoverIndustriesSkill],
|
|
2010
|
+
subAgents: [industryDiscoveryAnalystSubAgent],
|
|
2011
|
+
labels: [
|
|
2012
|
+
{
|
|
2013
|
+
name: "type:industry-discovery",
|
|
2014
|
+
color: "1D76DB",
|
|
2015
|
+
description: "Work that discovers, evaluates, or plans research on industry verticals"
|
|
2016
|
+
},
|
|
2017
|
+
{
|
|
2018
|
+
name: "industry:discover",
|
|
2019
|
+
color: "C5DEF5",
|
|
2020
|
+
description: "Phase 1: enumerate candidate industry verticals into a bounded candidate file"
|
|
2021
|
+
},
|
|
2022
|
+
{
|
|
2023
|
+
name: "industry:evaluate",
|
|
2024
|
+
color: "BFDADC",
|
|
2025
|
+
description: "Phase 2: score candidate verticals against the configured fit rubric"
|
|
2026
|
+
},
|
|
2027
|
+
{
|
|
2028
|
+
name: "industry:plan",
|
|
2029
|
+
color: "D4C5F9",
|
|
2030
|
+
description: "Phase 3: plan downstream research for verticals that clear the fit threshold"
|
|
2031
|
+
}
|
|
2032
|
+
]
|
|
2033
|
+
};
|
|
2034
|
+
|
|
1520
2035
|
// src/agent/bundles/jest.ts
|
|
1521
2036
|
var jestBundle = {
|
|
1522
2037
|
name: "jest",
|
|
@@ -6191,7 +6706,8 @@ var BUILT_IN_BUNDLES = [
|
|
|
6191
6706
|
researchPipelineBundle,
|
|
6192
6707
|
companyProfileBundle,
|
|
6193
6708
|
peopleProfileBundle,
|
|
6194
|
-
softwareProfileBundle
|
|
6709
|
+
softwareProfileBundle,
|
|
6710
|
+
industryDiscoveryBundle
|
|
6195
6711
|
];
|
|
6196
6712
|
|
|
6197
6713
|
// src/agent/bundles/scope.ts
|
|
@@ -9726,6 +10242,7 @@ export {
|
|
|
9726
10242
|
companyProfileBundle,
|
|
9727
10243
|
getLatestEligibleVersion,
|
|
9728
10244
|
githubWorkflowBundle,
|
|
10245
|
+
industryDiscoveryBundle,
|
|
9729
10246
|
jestBundle,
|
|
9730
10247
|
meetingAnalysisBundle,
|
|
9731
10248
|
orchestratorBundle,
|