Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- data/.codex/.codex/.tmp/plugins/plugins/amplitude/.codex-plugin/plugin.json +26 -0
- data/.codex/.codex/.tmp/plugins/plugins/brex/.codex-plugin/plugin.json +32 -0
- data/.codex/.codex/.tmp/plugins/plugins/chronograph-lp/skills/chronograph-cashflow-forecast/SKILL.md +99 -0
- data/.codex/.codex/.tmp/plugins/plugins/chronograph-lp/skills/chronograph-cashflow-forecast/agents/openai.yaml +10 -0
- data/.codex/.codex/.tmp/plugins/plugins/chronograph-lp/skills/chronograph-cashflow-forecast/references/chronograph-mcp-map.md +36 -0
- data/.codex/.codex/.tmp/plugins/plugins/chronograph-lp/skills/chronograph-cashflow-forecast/references/model-methodology.md +141 -0
- data/.codex/.codex/.tmp/plugins/plugins/chronograph-lp/skills/chronograph-gp-meeting-prep/SKILL.md +88 -0
- data/.codex/.codex/.tmp/plugins/plugins/chronograph-lp/skills/chronograph-gp-meeting-prep/agents/openai.yaml +10 -0
- data/.codex/.codex/.tmp/plugins/plugins/chronograph-lp/skills/chronograph-gp-meeting-prep/references/meeting-brief-template.md +106 -0
- data/.codex/.codex/.tmp/plugins/plugins/chronograph-lp/skills/chronograph-gp-meeting-prep/references/question-bank.md +75 -0
- data/.codex/.codex/.tmp/plugins/plugins/chronograph-lp/skills/chronograph-gp-meeting-prep/references/report-review-checklist.md +56 -0
- data/.codex/.codex/.tmp/plugins/plugins/chronograph-lp/skills/chronograph-portfolio-company-one-pager/SKILL.md +487 -0
- data/.codex/.codex/.tmp/plugins/plugins/chronograph-lp/skills/chronograph-portfolio-company-one-pager/agents/openai.yaml +10 -0
- data/.codex/.codex/.tmp/plugins/plugins/cloudinary/.codex-plugin/plugin.json +31 -0
- data/.codex/.codex/.tmp/plugins/plugins/dnb-finance-analytics/.codex-plugin/plugin.json +54 -0
- data/.codex/.codex/.tmp/plugins/plugins/dnb-finance-analytics/skills/fa-jobs-to-be-done/SKILL.md +96 -0
- data/.codex/.codex/.tmp/plugins/plugins/dnb-finance-analytics/skills/fa-jobs-to-be-done/agents/openai.yaml +9 -0
- data/.codex/.codex/.tmp/plugins/plugins/dnb-finance-analytics/skills/fa-jobs-to-be-done/fa-skills/references/fa-alerts-monitoring.md +203 -0
- data/.codex/.codex/.tmp/plugins/plugins/dnb-finance-analytics/skills/fa-jobs-to-be-done/fa-skills/references/fa-credit-decisioning.md +305 -0
- data/.codex/.codex/.tmp/plugins/plugins/dnb-finance-analytics/skills/fa-jobs-to-be-done/fa-skills/references/fa-credit-validation.md +286 -0
- data/.codex/.codex/.tmp/plugins/plugins/dnb-finance-analytics/skills/fa-jobs-to-be-done/fa-skills/references/fa-onboarding-workflow.md +406 -0
- data/.codex/.codex/.tmp/plugins/plugins/dnb-finance-analytics/skills/fa-jobs-to-be-done/fa-skills/references/fa-plain-language.md +303 -0
- data/.codex/.codex/.tmp/plugins/plugins/dnb-finance-analytics/skills/fa-jobs-to-be-done/fa-skills/references/fa-portfolio-management.md +205 -0
- data/.codex/.codex/.tmp/plugins/plugins/github/.codex-plugin/plugin.json +45 -0
- data/.codex/.codex/.tmp/plugins/plugins/github/assets/github-small.svg +3 -0
- data/.codex/.codex/.tmp/plugins/plugins/github/skills/gh-address-comments/LICENSE.txt +202 -0
- data/.codex/.codex/.tmp/plugins/plugins/github/skills/gh-address-comments/SKILL.md +44 -0
- data/.codex/.codex/.tmp/plugins/plugins/github/skills/gh-address-comments/agents/openai.yaml +6 -0
- data/.codex/.codex/.tmp/plugins/plugins/github/skills/gh-address-comments/assets/github-small.svg +3 -0
- data/.codex/.codex/.tmp/plugins/plugins/github/skills/gh-address-comments/scripts/fetch_comments.py +237 -0
- data/.codex/.codex/.tmp/plugins/plugins/github/skills/gh-fix-ci/LICENSE.txt +201 -0
- data/.codex/.codex/.tmp/plugins/plugins/github/skills/gh-fix-ci/SKILL.md +81 -0
- data/.codex/.codex/.tmp/plugins/plugins/github/skills/gh-fix-ci/agents/openai.yaml +6 -0
- data/.codex/.codex/.tmp/plugins/plugins/github/skills/gh-fix-ci/assets/github-small.svg +3 -0
- data/.codex/.codex/.tmp/plugins/plugins/github/skills/gh-fix-ci/scripts/inspect_pr_checks.py +509 -0
- data/.codex/.codex/.tmp/plugins/plugins/github/skills/github/SKILL.md +74 -0
- data/.codex/.codex/.tmp/plugins/plugins/github/skills/github/agents/openai.yaml +6 -0
- data/.codex/.codex/.tmp/plugins/plugins/github/skills/github/assets/github-small.svg +3 -0
- data/.codex/.codex/.tmp/plugins/plugins/github/skills/yeet/LICENSE.txt +201 -0
- data/.codex/.codex/.tmp/plugins/plugins/github/skills/yeet/SKILL.md +70 -0
- data/.codex/.codex/.tmp/plugins/plugins/github/skills/yeet/agents/openai.yaml +6 -0
- data/.codex/.codex/.tmp/plugins/plugins/github/skills/yeet/assets/yeet-small.svg +3 -0
- data/.codex/.codex/.tmp/plugins/plugins/granola/.codex-plugin/plugin.json +31 -0
- data/.codex/.codex/.tmp/plugins/plugins/keybid-puls/.codex-plugin/plugin.json +32 -0
- data/.codex/.codex/.tmp/plugins/plugins/mixpanel/.codex-plugin/plugin.json +49 -0
- data/.codex/.codex/.tmp/plugins/plugins/mixpanel/assets/app-icon.svg +4 -0
- data/.codex/.codex/.tmp/plugins/plugins/monday-com/.codex-plugin/plugin.json +30 -0
- data/.codex/.codex/.tmp/plugins/plugins/moody-s/.codex-plugin/plugin.json +72 -0
- data/.codex/.codex/.tmp/plugins/plugins/moody-s/skills/moody-s-company-analysis/SKILL.md +42 -0
- data/.codex/.codex/.tmp/plugins/plugins/moody-s/skills/moody-s-company-analysis/agents/openai.yaml +4 -0
data/.codex/.codex/.tmp/plugins/plugins/amplitude/.codex-plugin/plugin.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "amplitude",
|
| 3 |
+
"version": "1.0.2",
|
| 4 |
+
"description": "Product analytics and funnels",
|
| 5 |
+
"author": {
|
| 6 |
+
"name": "Amplitude"
|
| 7 |
+
},
|
| 8 |
+
"repository": "https://github.com/openai/plugins",
|
| 9 |
+
"license": "MIT",
|
| 10 |
+
"keywords": [],
|
| 11 |
+
"apps": "./.app.json",
|
| 12 |
+
"interface": {
|
| 13 |
+
"displayName": "Amplitude",
|
| 14 |
+
"shortDescription": "Product analytics and funnels",
|
| 15 |
+
"longDescription": "Product analytics and funnels",
|
| 16 |
+
"developerName": "Amplitude",
|
| 17 |
+
"category": "Data & Analytics",
|
| 18 |
+
"capabilities": [],
|
| 19 |
+
"defaultPrompt": [
|
| 20 |
+
"Show the signup funnel trend in Amplitude"
|
| 21 |
+
],
|
| 22 |
+
"screenshots": [],
|
| 23 |
+
"composerIcon": "./assets/app-icon.png",
|
| 24 |
+
"logo": "./assets/app-icon.png"
|
| 25 |
+
}
|
| 26 |
+
}
|
data/.codex/.codex/.tmp/plugins/plugins/brex/.codex-plugin/plugin.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "brex",
|
| 3 |
+
"version": "1.0.3",
|
| 4 |
+
"description": "Connect Brex to Codex and review your company finances through natural conversation \u2014 at Codex speed.",
|
| 5 |
+
"author": {
|
| 6 |
+
"name": "Brex Inc.",
|
| 7 |
+
"url": "https://brex.com"
|
| 8 |
+
},
|
| 9 |
+
"homepage": "https://brex.com",
|
| 10 |
+
"repository": "https://github.com/openai/plugins",
|
| 11 |
+
"license": "MIT",
|
| 12 |
+
"keywords": [],
|
| 13 |
+
"apps": "./.app.json",
|
| 14 |
+
"interface": {
|
| 15 |
+
"displayName": "Brex",
|
| 16 |
+
"shortDescription": "Connect Brex to Codex and review your company finances through natural conversation \u2014 at Codex speed.",
|
| 17 |
+
"longDescription": "Connect Brex to Codex and review your company finances through natural conversation \u2014 at Codex speed.\n\nFor finance teams: Analyze spend, detect anomalies, and run custom queries and reports instantly to accelerate decisions and do more with less.\n\nFor employees: See how much you can spend, ask policy questions, check reimbursement status, manage travel, and more right in Codex.\n\nAccess is role-aware by default: employees see only what applies to them, while admins retain full visibility and control.",
|
| 18 |
+
"developerName": "Brex Inc.",
|
| 19 |
+
"category": "Finance",
|
| 20 |
+
"capabilities": [],
|
| 21 |
+
"websiteURL": "https://brex.com",
|
| 22 |
+
"privacyPolicyURL": "https://www.brex.com/legal/privacy",
|
| 23 |
+
"termsOfServiceURL": "https://www.brex.com/legal/platform-agreement",
|
| 24 |
+
"defaultPrompt": [
|
| 25 |
+
"How much did I spend on Delta last year"
|
| 26 |
+
],
|
| 27 |
+
"screenshots": [],
|
| 28 |
+
"composerIcon": "./assets/logo.png",
|
| 29 |
+
"logo": "./assets/logo.png",
|
| 30 |
+
"logoDark": "./assets/logo-dark.png"
|
| 31 |
+
}
|
| 32 |
+
}
|
data/.codex/.codex/.tmp/plugins/plugins/chronograph-lp/skills/chronograph-cashflow-forecast/SKILL.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: chronograph-cashflow-forecast
|
| 3 |
+
description: Forecast private capital cashflows for existing portfolios using Chronograph MCP data and a Takahashi-Alexander style model. Use when Codex needs to analyze or forecast LP-level contributions, distributions, NAV, unfunded exposure, net cashflows, or Excel-style cashflow forecast outputs from existing Chronograph funds, commitments, groups, or portfolios.
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Chronograph Cashflow Forecast
|
| 7 |
+
|
| 8 |
+
**Requirements:** The Existing Portfolio Forecast mode requires a connected Chronograph MCP server — these workflows are designed for permissioned Chronograph users to connect to their private investment data. The Future Commitment Pacing Overlay mode runs from user-provided assumptions and works without a connection.
|
| 9 |
+
|
| 10 |
+
## Overview
|
| 11 |
+
|
| 12 |
+
Use the Chronograph MCP server as the source of truth for private capital commitment data, then forecast fund and portfolio cashflows with a Takahashi-Alexander style model. Prefer concise analysis in chat unless the user asks for a workbook, export, or model artifact.
|
| 13 |
+
|
| 14 |
+
Do not hard-code tool names — read the Chronograph MCP server's live tool descriptions to pick the appropriate tool for each data need.
|
| 15 |
+
|
| 16 |
+
## Workflow
|
| 17 |
+
|
| 18 |
+
1. Clarify scope only when needed: portfolio, group, fund IDs, commitment IDs, currency, as-of date, forecast horizon, and units. V1 is existing-portfolio-only; do not model future commitments or pacing schedules.
|
| 19 |
+
2. Resolve entities. The Chronograph MCP server exposes a tool for resolving fund, group, GP, or company names to IDs. Use it to turn user-provided names into IDs before pulling any metrics.
|
| 20 |
+
3. Pull fund metadata. The Chronograph MCP server exposes a generic query tool for retrieving core entity attributes — use it to get fund name, fund type, vintage year, reporting currency, geographic focus, general partner, and final reporting date where useful.
|
| 21 |
+
4. Pull net LP commitment values: NAV, called, distributed, unfunded, commitment amount, net IRR, net MOIC, DPI, and RVPI. The Chronograph MCP server exposes a dedicated tool for net LP-level performance that covers all of these. Treat the values as net and surface the as-of date, currency, and that the values are net (not gross) in user-facing results.
|
| 22 |
+
5. Map fund types to forecast assumptions. Use the default assumptions in `references/model-methodology.md` unless the user provides custom assumptions.
|
| 23 |
+
6. Build yearly or quarterly forecast periods from the as-of date through the requested horizon. Default to annual periods for executive analysis and quarterly periods for Excel-style output.
|
| 24 |
+
7. Forecast contributions, distributions, NAV, unfunded, and net cashflow by fund, then aggregate to portfolio, group, vintage, fund type, or GP as requested.
|
| 25 |
+
8. Present assumptions, source context, and checks. Always state currency, units, as-of date, forecast horizon, and that future commitments are excluded in V1.
|
| 26 |
+
9. If the user requests Excel, create a workbook with Inputs, Fund Forecast, Portfolio Summary, and Checks.
|
| 27 |
+
|
| 28 |
+
## Planning Mode
|
| 29 |
+
|
| 30 |
+
Use one of these modes, or combine them when the user asks for a liquidity plan:
|
| 31 |
+
|
| 32 |
+
- **Existing Portfolio Forecast.** Use Chronograph actuals for current commitments, NAV, unfunded, called, distributed, and net performance, then forecast runoff for existing commitments only.
|
| 33 |
+
- **Future Commitment Pacing Overlay.** Use user-provided planned commitments and strategy assumptions to estimate future calls, distributions, NAV, unfunded, exposure, and net cashflow. These values are planning assumptions, not Chronograph actuals.
|
| 34 |
+
- **Combined Liquidity Plan.** Add the existing portfolio forecast and pacing overlay to show total expected calls, distributions, net cashflow, NAV, unfunded, and exposure.
|
| 35 |
+
|
| 36 |
+
## Chronograph MCP Usage
|
| 37 |
+
|
| 38 |
+
The skill needs three categories of data from the Chronograph MCP server: entity identifiers (fund and group IDs), fund metadata (name, type, vintage, reporting currency, geographic focus, GP, final reporting date), and net LP-level cashflow values (NAV, called, distributed, unfunded, commitment amount, net IRR, net MOIC, DPI, RVPI). Inspect the server's live tool descriptions and pick the appropriate tool for each category. Do not hard-code tool names.
|
| 39 |
+
|
| 40 |
+
**Net vs gross — confirm with the user when ambiguous.** This skill forecasts *net* LP cashflows. The Chronograph MCP server exposes separate tools for net LP-level performance and gross fund-level returns. User requests like "show me MOIC for these funds" are ambiguous — confirm net or gross before picking a tool. Gross returns (gross IRR, gross MOIC, cost, realized, unrealized) are not used in this forecast and live in a different tool.
|
| 41 |
+
|
| 42 |
+
**Currency.** Do not default currency to USD. For specific funds, resolve reporting currency from fund metadata before pulling cashflow values. If reporting currencies conflict across a multi-fund portfolio, ask the user.
|
| 43 |
+
|
| 44 |
+
**Custom investment-level metrics.** If a tool requires a discovery / help / schema-introspection call first (common pattern on the Chronograph MCP server), make that call to see which metric types are available, then query each line item.
|
| 45 |
+
|
| 46 |
+
See `references/chronograph-mcp-map.md` for data-need to tool mapping guidance.
|
| 47 |
+
|
| 48 |
+
## Error Handling
|
| 49 |
+
|
| 50 |
+
- **MCP not connected.** Depends on mode. For an Existing Portfolio Forecast, stop — the connection is required, because forecasting runoff of a real portfolio needs its actual NAV, unfunded, called, and distributed baseline; do not invent those values or forecast a real portfolio from assumptions alone. For a Future Commitment Pacing Overlay (or a from-scratch pacing request with no existing portfolio), proceed from user-provided commitment amounts, vintages, and strategy assumptions, and label every value as a planning assumption rather than a Chronograph actual. If the user wants a Combined Liquidity Plan but Chronograph is unavailable, produce the pacing overlay only and list the existing-portfolio baseline as a missing input.
|
| 51 |
+
- **Entity not found.** Ask the user to confirm the fund / group / GP name. Do not silently substitute a near-match.
|
| 52 |
+
- **Currency cannot be resolved.** Ask the user which currency to use rather than defaulting to USD.
|
| 53 |
+
- **Future commitments / pacing overlay.** Chronograph is still the source of truth for the existing portfolio baseline. Future commitments are user-provided planning assumptions. Do not imply that planned commitments, future calls, future distributions, future NAV, or wind-down schedules are sourced from Chronograph if they are guided by the user in conversation.
|
| 54 |
+
- **Net-vs-gross ambiguity.** Confirm with the user before proceeding.
|
| 55 |
+
- **Pacing details incomplete.** If the user gives a high-level plan such as "deploy $500mm for a couple years, then wind down," make a conservative explicit schedule and label it as an assumption. Ask when the missing detail materially changes the decision, such as currency, annual versus total commitment budget, or strategy mix.
|
| 56 |
+
|
| 57 |
+
## Forecast Method
|
| 58 |
+
|
| 59 |
+
Use `references/model-methodology.md` for the distilled forecast methodology. Load it when doing actual forecast math, explaining assumptions, building an Excel output, or debugging differences versus a reference workbook.
|
| 60 |
+
|
| 61 |
+
Core outputs:
|
| 62 |
+
|
| 63 |
+
- Contributions: forecast capital calls.
|
| 64 |
+
- Distributions: forecast realizations/income.
|
| 65 |
+
- NAV: forecast residual value.
|
| 66 |
+
- Unfunded: forecast remaining callable commitment.
|
| 67 |
+
- Net cashflow: distributions minus contributions.
|
| 68 |
+
- Total exposure: NAV plus unfunded.
|
| 69 |
+
|
| 70 |
+
## Output Standards
|
| 71 |
+
|
| 72 |
+
- Include a compact assumption table whenever forecast values are shown.
|
| 73 |
+
- For planning-mode outputs, include a baseline section, an assumed commitment schedule, an overlay cashflow table, a combined liquidity view when available, and caveats / missing inputs.
|
| 74 |
+
- Separate actuals from forecasts. Label actual periods with `A` and forecast periods with `E` when producing Excel-style tables.
|
| 75 |
+
- Show totals and key years first, then detail by fund or fund type.
|
| 76 |
+
- Include basic checks: beginning NAV plus contributions less distributions plus growth should reconcile to ending NAV; prior unfunded less contributions should reconcile to ending unfunded; net cashflow should equal distributions less contributions.
|
| 77 |
+
- Avoid overstating precision. Forecasts are model estimates driven by assumptions, not Chronograph-reported future values.
|
| 78 |
+
|
| 79 |
+
## Guardrails
|
| 80 |
+
|
| 81 |
+
- Treat the output as draft analyst work product for liquidity and pacing planning.
|
| 82 |
+
- Do not provide investment, legal, tax, audit, or valuation advice. A forecast or liquidity plan is a scenario estimate, not a recommendation to commit, call, distribute, or sell.
|
| 83 |
+
- Do not present a pacing figure or commitment range as advice to act. Frame it as what the model implies under the stated assumptions, and surface the assumptions that drive it.
|
| 84 |
+
- Forecasts are scenario estimates under explicit assumptions, not predictions. Disclose the assumption set and that actual outcomes will differ.
|
| 85 |
+
- Do not imply that planned commitments, future calls, future distributions, or future NAV are sourced from Chronograph when they are user-provided planning inputs.
|
| 86 |
+
|
| 87 |
+
## Excel Outputs
|
| 88 |
+
|
| 89 |
+
When asked for Excel, use the spreadsheet skill and build a clean workbook rather than recreating the original workbook cell-by-cell. A good workbook shape is:
|
| 90 |
+
|
| 91 |
+
- `Inputs`: scope, as-of date, currency, units, horizon, assumptions by fund type.
|
| 92 |
+
- `Fund Forecast`: one row per fund/period with actuals and forecast values.
|
| 93 |
+
- `Portfolio Summary`: annual totals, net cashflow, NAV, unfunded, exposure, charts when useful.
|
| 94 |
+
- `Checks`: reconciliation checks and source context.
|
| 95 |
+
|
| 96 |
+
## Reference Files
|
| 97 |
+
|
| 98 |
+
- `references/model-methodology.md`: forecast formulas and default assumptions based on the Excel model.
|
| 99 |
+
- `references/chronograph-mcp-map.md`: Chronograph MCP data-need to tool mapping guidance for this workflow.
|
data/.codex/.codex/.tmp/plugins/plugins/chronograph-lp/skills/chronograph-cashflow-forecast/agents/openai.yaml
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "Chronograph Cashflow Forecast"
|
| 3 |
+
short_description: "Forecast private capital cashflows with Chronograph"
|
| 4 |
+
default_prompt: "Use $chronograph-cashflow-forecast to forecast private capital contributions, distributions, NAV, and unfunded exposure from Chronograph data."
|
| 5 |
+
|
| 6 |
+
dependencies:
|
| 7 |
+
tools:
|
| 8 |
+
- type: "mcp"
|
| 9 |
+
value: "chronograph-lp"
|
| 10 |
+
description: "Chronograph MCP server for fund, commitment, and investment data."
|
data/.codex/.codex/.tmp/plugins/plugins/chronograph-lp/skills/chronograph-cashflow-forecast/references/chronograph-mcp-map.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Chronograph MCP Data Map
|
| 2 |
+
|
| 3 |
+
Use this map to translate cashflow forecast data needs into Chronograph MCP tool selection. Do not hard-code tool names — read the Chronograph MCP server's live tool descriptions to stay current.
|
| 4 |
+
|
| 5 |
+
## Primary data needs
|
| 6 |
+
|
| 7 |
+
The skill needs four categories of data from the Chronograph MCP server:
|
| 8 |
+
|
| 9 |
+
- **Entity identifiers.** Fund IDs, group IDs, GP IDs, commitment IDs. Chronograph exposes a dedicated tool for resolving names to IDs. Use it before pulling any metric data.
|
| 10 |
+
- **Fund metadata.** Fund name, fund type, vintage year, reporting currency, geographic focus, final reporting date, general partner. Chronograph exposes a generic query tool covering core entity attributes — use it for all metadata reads.
|
| 11 |
+
- **Net LP commitment values.** NAV, called, distributed, unfunded, commitment amount, net IRR, net MOIC, DPI, RVPI. Chronograph exposes a dedicated tool for net LP-level performance that covers all of these in a single call.
|
| 12 |
+
- **Custom investment-level metrics (rare for cashflow forecasting).** Only needed if the user asks for non-standard metrics like Revenue or EBITDA. Chronograph exposes a metrics tool for these; it requires a discovery call first to enumerate available metric types.
|
| 13 |
+
|
| 14 |
+
## Net vs gross
|
| 15 |
+
|
| 16 |
+
This skill uses *net* LP cashflow values, not gross fund returns. If the user request is ambiguous ("show me MOIC for these funds"), confirm net or gross before pulling data. Gross returns (gross IRR, gross MOIC, cost, realized, unrealized) live in a separate Chronograph tool and are not used in this forecast.
|
| 17 |
+
|
| 18 |
+
## Currency
|
| 19 |
+
|
| 20 |
+
Do not default to USD. Resolve reporting currency from fund metadata before pulling cashflow values. If reporting currencies conflict across a multi-fund portfolio, ask the user.
|
| 21 |
+
|
| 22 |
+
## Fund type mapping
|
| 23 |
+
|
| 24 |
+
Map Chronograph fund-type values to general forecast buckets per the table in `model-methodology.md`. Do not duplicate that table here.
|
| 25 |
+
|
| 26 |
+
## Presentation requirements
|
| 27 |
+
|
| 28 |
+
Always surface in user-facing output:
|
| 29 |
+
|
| 30 |
+
- as-of date
|
| 31 |
+
- currency
|
| 32 |
+
- that the values are net (not gross)
|
| 33 |
+
- number of funds or commitments included
|
| 34 |
+
- any funds excluded because data was missing
|
| 35 |
+
|
| 36 |
+
When forecast assumptions are applied, separate Chronograph-reported actuals from model-generated forecasts.
|
data/.codex/.codex/.tmp/plugins/plugins/chronograph-lp/skills/chronograph-cashflow-forecast/references/model-methodology.md
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Model Methodology
|
| 2 |
+
|
| 3 |
+
This reference distills a Takahashi-Alexander style cashflow model pattern. Use it to forecast private capital cashflows from Chronograph actuals. Treat future commitments and pacing overlays as user-provided assumptions and model estimates.
|
| 4 |
+
|
| 5 |
+
## Model Modes
|
| 6 |
+
|
| 7 |
+
- Existing portfolio forecast: forecast runoff from current Chronograph commitments.
|
| 8 |
+
- Future commitment pacing overlay: model planned new commitments as assumptions.
|
| 9 |
+
- Combined liquidity view: add existing portfolio forecast and future pacing overlay.
|
| 10 |
+
|
| 11 |
+
## Example Planning Assumptions
|
| 12 |
+
|
| 13 |
+
Use these as illustrative starting points when the user has not provided custom assumptions. Do not treat them as client-specific defaults.
|
| 14 |
+
|
| 15 |
+
| General fund type | Initial contribution rate | Contribution rate | Bow | Life | Yield | Growth |
|
| 16 |
+
|---|---:|---:|---:|---:|---:|---:|
|
| 17 |
+
| Buyout / Private Equity | 25% | 50% | 2.5 | 12 | 0% | 13% |
|
| 18 |
+
| Venture / Growth | 25% | 50% | 3.0 | 15 | 0% | 10% |
|
| 19 |
+
| Real Assets | 40% | 40% | 5.0 | 12 | 5% | 8% |
|
| 20 |
+
| Energy / Natural Resources | 30% | 50% | 1.0 | 15 | 15% | 8% |
|
| 21 |
+
| Other / Mixed | 30% | 45% | 2.0 | 12 | 8% | 8% |
|
| 22 |
+
|
| 23 |
+
Ask for user assumptions when strategy mix materially affects the answer. If unavailable, use a clearly labeled illustrative assumption set.
|
| 24 |
+
|
| 25 |
+
## Assumption Selection
|
| 26 |
+
|
| 27 |
+
Use assumptions in this order:
|
| 28 |
+
|
| 29 |
+
1. User-provided assumptions.
|
| 30 |
+
2. User-provided strategy mix mapped to the example assumption sets.
|
| 31 |
+
3. A clearly labeled illustrative assumption set.
|
| 32 |
+
4. Chronograph fund type metadata.
|
| 33 |
+
|
| 34 |
+
## Input Data
|
| 35 |
+
|
| 36 |
+
For each fund or commitment, collect:
|
| 37 |
+
|
| 38 |
+
- Fund ID and fund name.
|
| 39 |
+
- Commitment ID if working at commitment level.
|
| 40 |
+
- Vintage year.
|
| 41 |
+
- Fund type or a mapped general fund type.
|
| 42 |
+
- Commitment amount.
|
| 43 |
+
- Actual called, distributed, NAV, and unfunded as of the current reporting date.
|
| 44 |
+
- Historical called and distributed if the output needs actual annual cashflows.
|
| 45 |
+
|
| 46 |
+
## Periods
|
| 47 |
+
|
| 48 |
+
Use annual forecast periods by default. If the as-of date is not a year end, the first forecast year should be prorated for remaining quarters in the year. For a quarterly model, apply the same formulas at quarter granularity.
|
| 49 |
+
|
| 50 |
+
Let:
|
| 51 |
+
|
| 52 |
+
- `age = forecast_year - vintage_year`
|
| 53 |
+
- `remaining_unfunded_prior = prior period unfunded`
|
| 54 |
+
- `nav_prior = prior period NAV`
|
| 55 |
+
- `initial_call_rate = assumption for years 1-2`
|
| 56 |
+
- `call_rate = assumption for years 3+`
|
| 57 |
+
- `bow`, `life`, `yield`, and `growth` from the assumption table
|
| 58 |
+
|
| 59 |
+
## Forecast Contributions
|
| 60 |
+
|
| 61 |
+
The workbook calls capital from prior unfunded. For annual periods:
|
| 62 |
+
|
| 63 |
+
```text
|
| 64 |
+
rate = initial_call_rate if age <= 2 else call_rate
|
| 65 |
+
forecast_contribution = max(rate * remaining_unfunded_prior, 0)
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
For a stub first forecast year, prorate by remaining quarters:
|
| 69 |
+
|
| 70 |
+
```text
|
| 71 |
+
stub_factor = remaining_quarters_in_year / 4
|
| 72 |
+
forecast_contribution = stub_factor * rate * remaining_unfunded_prior
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
Cap contributions so they do not exceed prior unfunded unless the user explicitly wants a looser model.
|
| 76 |
+
|
| 77 |
+
## Forecast Distribution Rate
|
| 78 |
+
|
| 79 |
+
The workbook uses a Takahashi-Alexander style bow curve:
|
| 80 |
+
|
| 81 |
+
```text
|
| 82 |
+
life_progress = age / life
|
| 83 |
+
distribution_rate = 1 if life_progress >= 1 else max(yield, life_progress ^ bow)
|
| 84 |
+
```
|
| 85 |
+
|
| 86 |
+
Clamp negative ages to zero. If vintage year is missing, ask for a vintage or use a conservative assumption only if the user approves.
|
| 87 |
+
|
| 88 |
+
## Forecast Distributions
|
| 89 |
+
|
| 90 |
+
The workbook applies the distribution rate to prior NAV after growth, with a special first forecast period that avoids a drop below prior actual distributions within the same year.
|
| 91 |
+
|
| 92 |
+
Simple annual implementation:
|
| 93 |
+
|
| 94 |
+
```text
|
| 95 |
+
forecast_distribution = distribution_rate * nav_prior * (1 + growth)
|
| 96 |
+
```
|
| 97 |
+
|
| 98 |
+
For income-oriented strategies, `yield` creates a floor through the distribution rate formula. Distributions should not exceed a sensible total value unless the user asks for unconstrained output.
|
| 99 |
+
|
| 100 |
+
## Forecast NAV
|
| 101 |
+
|
| 102 |
+
Roll NAV forward:
|
| 103 |
+
|
| 104 |
+
```text
|
| 105 |
+
forecast_nav = max(nav_prior * (1 + growth) + forecast_contribution - forecast_distribution, 0)
|
| 106 |
+
```
|
| 107 |
+
|
| 108 |
+
For quarterly periods:
|
| 109 |
+
|
| 110 |
+
```text
|
| 111 |
+
quarterly_growth = (1 + annual_growth) ^ 0.25 - 1
|
| 112 |
+
forecast_nav = max(nav_prior * (1 + quarterly_growth) + contribution - distribution, 0)
|
| 113 |
+
```
|
| 114 |
+
|
| 115 |
+
## Forecast Unfunded
|
| 116 |
+
|
| 117 |
+
Roll unfunded forward:
|
| 118 |
+
|
| 119 |
+
```text
|
| 120 |
+
forecast_unfunded = max(remaining_unfunded_prior - forecast_contribution, 0)
|
| 121 |
+
```
|
| 122 |
+
|
| 123 |
+
## Net Cashflow and Exposure
|
| 124 |
+
|
| 125 |
+
```text
|
| 126 |
+
net_cashflow = distributions - contributions
|
| 127 |
+
exposure = nav + unfunded
|
| 128 |
+
```
|
| 129 |
+
|
| 130 |
+
Use net cashflow from the LP perspective: contributions are cash outflows, distributions are inflows.
|
| 131 |
+
|
| 132 |
+
## Checks
|
| 133 |
+
|
| 134 |
+
Include these checks in analysis or Excel outputs:
|
| 135 |
+
|
| 136 |
+
- Contributions do not exceed beginning unfunded.
|
| 137 |
+
- Ending unfunded equals beginning unfunded less contributions.
|
| 138 |
+
- Ending NAV equals beginning NAV grown plus contributions less distributions.
|
| 139 |
+
- Net cashflow equals distributions less contributions.
|
| 140 |
+
- Planned commitments are not counted as contributions until called.
|
| 141 |
+
- Combined totals equal existing portfolio plus pacing overlay.
|
data/.codex/.codex/.tmp/plugins/plugins/chronograph-lp/skills/chronograph-gp-meeting-prep/SKILL.md
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: chronograph-gp-meeting-prep
|
| 3 |
+
description: >
|
| 4 |
+
Prepare an LP to meet with their fund manager (GP): review the fund's latest
|
| 5 |
+
reporting, surface what changed since last period, and draft the questions
|
| 6 |
+
worth raising. Use when someone is getting ready for a manager call, quarterly
|
| 7 |
+
check-in, annual meeting, LPAC meeting, or a re-up decision — for example "I
|
| 8 |
+
have my quarterly call with this manager next week, help me prep," "what
|
| 9 |
+
changed in this fund this quarter," "what should I ask them about these marks,"
|
| 10 |
+
or "what are the red flags in this reporting package." Draws on Chronograph
|
| 11 |
+
fund and portfolio data when connected — captured reporting such as fund
|
| 12 |
+
performance, schedules of investments, and portfolio company KPI profiles —
|
| 13 |
+
and asks the LP to provide anything else it needs, such as a capital account
|
| 14 |
+
statement, investor letter, or AGM or board deck.
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# Chronograph GP Meeting Prep
|
| 18 |
+
|
| 19 |
+
**Requirements:** A connected Chronograph MCP server. These workflows are designed for permissioned Chronograph users to connect to their private investment data.
|
| 20 |
+
|
| 21 |
+
## Overview
|
| 22 |
+
|
| 23 |
+
Prepare an LP for a meeting with a GP by reviewing fund reporting, surfacing what changed, identifying diligence questions, and producing a concise meeting brief. The brief exists to sharpen a forward decision — a re-up, a secondary sale, or an LPAC vote — so prioritize what bears on those. Use Chronograph as the source of truth where connected and permissioned; otherwise work from user-provided reporting materials.
|
| 24 |
+
|
| 25 |
+
Default to a chat brief. Create a document, workbook, or deck only when the user asks for an artifact.
|
| 26 |
+
|
| 27 |
+
## Workflow
|
| 28 |
+
|
| 29 |
+
1. Clarify scope only when needed: GP, fund, reporting period, meeting type, as-of date, currency, units, output format, and whether the user wants a quick brief or a formal prep document.
|
| 30 |
+
2. Resolve the relevant fund, manager, commitment, reporting period, and LP perspective from Chronograph where available. If Chronograph is unavailable, ask for the GP reporting package or a pasted/uploaded summary.
|
| 31 |
+
3. Gather the fund baseline, anchoring first on the figures the GP reported this period and citing the source document where available: gross performance, cost, realized and unrealized value, current valuation, portfolio holdings, prior-period values, and fund attributes. Carry net performance — NAV, calls, distributions, TVPI/DPI/RVPI, and net IRR — as the LP's headline return, clearly labeled gross versus net and dated.
|
| 32 |
+
4. Review document-backed reporting content. When Chronograph document semantic search is available, use it as a primary step to find the story behind the numbers: what drove calls and distributions, how the GP describes its marks, and the commentary on portfolio company KPIs.
|
| 33 |
+
5. If a document the meeting needs isn't in the connected context, ask the LP to provide it. Do not infer narrative, management explanations, or meeting context from structured data alone.
|
| 34 |
+
6. Compare current period to prior period: performance movement, cashflow activity, NAV and unfunded movement, valuation changes, portfolio company adds/exits, concentration changes, and KPI movements.
|
| 35 |
+
7. Separate facts from interpretation. Use reporting data for facts, cite document support when available, and label inferred questions as analyst prompts rather than confirmed issues.
|
| 36 |
+
8. Produce a prioritized meeting brief with key changes, watch items, suggested GP questions, and follow-up requests.
|
| 37 |
+
|
| 38 |
+
## Chronograph Data Use
|
| 39 |
+
|
| 40 |
+
When the Chronograph MCP is available, use it to retrieve the relevant portfolio, fund, commitment, performance, exposure, and report-derived document context where permissioned. Keep public-facing explanations at the workflow level; do not expose internal schemas, private tool names, field mappings, or retrieval recipes.
|
| 41 |
+
|
| 42 |
+
Source discipline:
|
| 43 |
+
|
| 44 |
+
- Cite Chronograph, document, page, period, or user-provided source for quantitative claims whenever available.
|
| 45 |
+
- State currency, units, as-of date, and whether values are GP-reported, Chronograph-derived, user-provided, or estimated.
|
| 46 |
+
- Do not fabricate NAVs, KPIs, performance metrics, holdings, explanations, or manager commentary.
|
| 47 |
+
- If sources disagree, present the discrepancy and ask the GP-facing question that follows from it.
|
| 48 |
+
|
| 49 |
+
## Review Priorities
|
| 50 |
+
|
| 51 |
+
Use `references/report-review-checklist.md` for a fuller checklist when reviewing a package. Anchor the review on the figures the GP reported this period, citing the source document where available, and present net performance as the LP's headline return clearly labeled gross versus net. Prioritize:
|
| 52 |
+
|
| 53 |
+
- Performance: lead with the GP-reported figures — gross IRR and MOIC, cost, and realized and unrealized value — and their movement versus prior period, citing sources where available. Carry net performance (TVPI, DPI, RVPI, net IRR) as the LP's bottom-line return, labeled gross versus net, and watch the trend from unrealized value toward realized distributions.
|
| 54 |
+
- Cashflows: calls, distributions, recallable amounts, unfunded exposure, and unusual activity. Distinguish realized-cash distributions from those financed by NAV or subscription-line facilities.
|
| 55 |
+
- Valuation: write-ups, write-downs, stale marks, methodology changes (including any shift toward a cost basis), the GP's written valuation policy, and valuation concentration.
|
| 56 |
+
- Portfolio: new investments, exits, major company KPI changes, top holdings, sector/geography exposure, and single-name concentration.
|
| 57 |
+
- Reporting quality: missing explanations, inconsistent values, stale dates, changed definitions, or unexplained metric movement.
|
| 58 |
+
- Meeting readiness: three to eight prioritized questions, required follow-up materials, and open items to track.
|
| 59 |
+
|
| 60 |
+
## Output
|
| 61 |
+
|
| 62 |
+
For a quick answer, use this shape:
|
| 63 |
+
|
| 64 |
+
- Executive snapshot
|
| 65 |
+
- What changed this period
|
| 66 |
+
- Items to ask the GP
|
| 67 |
+
- Follow-up requests
|
| 68 |
+
- Source notes and assumptions
|
| 69 |
+
|
| 70 |
+
For a formal memo or document, use `references/meeting-brief-template.md`.
|
| 71 |
+
|
| 72 |
+
Use `references/question-bank.md` when the user wants more complete question coverage by topic or when the review surfaces a broad set of issues.
|
| 73 |
+
|
| 74 |
+
## Fallback Behavior
|
| 75 |
+
|
| 76 |
+
If Chronograph is unavailable, or the meeting needs a document outside the connected context:
|
| 77 |
+
|
| 78 |
+
- Ask the LP for the relevant GP reporting package or materials — for example the quarterly report, schedule of investments, capital account statement, or prior meeting notes.
|
| 79 |
+
- If only partial data is available, produce a partial brief and list the missing inputs needed for a complete meeting prep.
|
| 80 |
+
- If the user provides PDFs, workbooks, or pasted text, extract only what is supported by the material and cite the source artifact.
|
| 81 |
+
|
| 82 |
+
## Guardrails
|
| 83 |
+
|
| 84 |
+
- Treat the output as draft analyst work product for LP meeting preparation.
|
| 85 |
+
- Do not provide investment, legal, tax, audit, or valuation advice.
|
| 86 |
+
- Do not imply that a missing GP explanation is misconduct; frame gaps as questions or follow-up requests.
|
| 87 |
+
- Do not infer manager intent or portfolio company facts from metric movement alone.
|
| 88 |
+
- Avoid overprecision. Round appropriately and disclose incomplete source coverage.
|
data/.codex/.codex/.tmp/plugins/plugins/chronograph-lp/skills/chronograph-gp-meeting-prep/agents/openai.yaml
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "Chronograph GP Meeting Prep"
|
| 3 |
+
short_description: "Prepare LP meeting briefs from GP reporting"
|
| 4 |
+
default_prompt: "Use $chronograph-gp-meeting-prep to review GP reporting and prepare an LP meeting brief."
|
| 5 |
+
|
| 6 |
+
dependencies:
|
| 7 |
+
tools:
|
| 8 |
+
- type: "mcp"
|
| 9 |
+
value: "chronograph-lp"
|
| 10 |
+
description: "Chronograph MCP server for private capital fund, commitment, performance, exposure, and report-derived document context."
|
data/.codex/.codex/.tmp/plugins/plugins/chronograph-lp/skills/chronograph-gp-meeting-prep/references/meeting-brief-template.md
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Meeting Brief Template
|
| 2 |
+
|
| 3 |
+
Use this template when the user asks for a formal memo, document, or full GP meeting prep brief. Keep it concise; expand only where the source materials support it.
|
| 4 |
+
|
| 5 |
+
## Header
|
| 6 |
+
|
| 7 |
+
- GP:
|
| 8 |
+
- Fund:
|
| 9 |
+
- Reporting period:
|
| 10 |
+
- Meeting type:
|
| 11 |
+
- LP perspective:
|
| 12 |
+
- Currency and units:
|
| 13 |
+
- Sources reviewed:
|
| 14 |
+
- Prepared date:
|
| 15 |
+
|
| 16 |
+
## 1. Executive Snapshot
|
| 17 |
+
|
| 18 |
+
Summarize the fund's current status in 3-5 bullets:
|
| 19 |
+
|
| 20 |
+
- Current valuation and performance position
|
| 21 |
+
- Period-over-period change
|
| 22 |
+
- Major cashflow activity
|
| 23 |
+
- Most important portfolio or KPI movement
|
| 24 |
+
- Highest-priority meeting topic
|
| 25 |
+
|
| 26 |
+
## 2. What Changed This Period
|
| 27 |
+
|
| 28 |
+
Use a compact table when possible:
|
| 29 |
+
|
| 30 |
+
List the GP-reported figures first, citing a source for each where available, then the net figures; label each as gross or net.
|
| 31 |
+
|
| 32 |
+
| Area | Current period | Prior period | Change | Source |
|
| 33 |
+
|---|---:|---:|---:|---|
|
| 34 |
+
| Gross MOIC / IRR | | | | |
|
| 35 |
+
| Cost | | | | |
|
| 36 |
+
| Realized value | | | | |
|
| 37 |
+
| Unrealized value (marks) | | | | |
|
| 38 |
+
| NAV | | | | |
|
| 39 |
+
| Unfunded | | | | |
|
| 40 |
+
| Contributions | | | | |
|
| 41 |
+
| Distributions | | | | |
|
| 42 |
+
| TVPI / DPI / RVPI / net IRR | | | | |
|
| 43 |
+
|
| 44 |
+
Where the source materials support it, decompose the NAV change into a simple bridge — beginning NAV, plus calls, less distributions, plus or minus value change — and note any portion the materials do not separate, such as fee or financing effects. Request a GP-provided NAV bridge for the precise decomposition.
|
| 45 |
+
|
| 46 |
+
Add short commentary only when supported by source material.
|
| 47 |
+
|
| 48 |
+
## 3. Portfolio Review
|
| 49 |
+
|
| 50 |
+
Cover the facts that matter for the meeting:
|
| 51 |
+
|
| 52 |
+
- Top holdings and concentration
|
| 53 |
+
- New investments and exits
|
| 54 |
+
- Write-ups and write-downs
|
| 55 |
+
- Portfolio company KPI movements
|
| 56 |
+
- Sector, geography, or single-name exposure changes
|
| 57 |
+
- Items with stale or missing support
|
| 58 |
+
|
| 59 |
+
## 4. Reporting Quality Notes
|
| 60 |
+
|
| 61 |
+
Flag items that affect confidence in the review:
|
| 62 |
+
|
| 63 |
+
- Missing explanations for material changes
|
| 64 |
+
- Inconsistent metric definitions
|
| 65 |
+
- Changed reporting format or valuation methodology
|
| 66 |
+
- Stale reported values
|
| 67 |
+
- Values that do not reconcile across materials
|
| 68 |
+
|
| 69 |
+
Phrase these as review observations, not accusations.
|
| 70 |
+
|
| 71 |
+
## 5. Recommended GP Questions
|
| 72 |
+
|
| 73 |
+
Group questions by priority:
|
| 74 |
+
|
| 75 |
+
### Priority 1
|
| 76 |
+
|
| 77 |
+
Questions that should be asked in the meeting because they affect valuation, liquidity, risk, re-up decisioning, or LP reporting.
|
| 78 |
+
|
| 79 |
+
### Priority 2
|
| 80 |
+
|
| 81 |
+
Questions that can be handled as follow-up if meeting time is limited.
|
| 82 |
+
|
| 83 |
+
### Optional
|
| 84 |
+
|
| 85 |
+
Lower-priority questions, housekeeping items, and clarifications.
|
| 86 |
+
|
| 87 |
+
## 6. Follow-Up Requests
|
| 88 |
+
|
| 89 |
+
List materials or data to request from the GP:
|
| 90 |
+
|
| 91 |
+
- Updated schedule of investments
|
| 92 |
+
- Support for valuation changes
|
| 93 |
+
- Portfolio company KPI detail
|
| 94 |
+
- Bridge from prior period to current period
|
| 95 |
+
- Explanation of cashflow activity
|
| 96 |
+
- Additional disclosure on watchlist companies
|
| 97 |
+
|
| 98 |
+
## 7. Source Notes and Assumptions
|
| 99 |
+
|
| 100 |
+
State:
|
| 101 |
+
|
| 102 |
+
- Source artifacts used
|
| 103 |
+
- Documents not available
|
| 104 |
+
- Chronograph data coverage limitations
|
| 105 |
+
- User-provided assumptions
|
| 106 |
+
- Any estimated, incomplete, or unreconciled values
|
data/.codex/.codex/.tmp/plugins/plugins/chronograph-lp/skills/chronograph-gp-meeting-prep/references/question-bank.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# GP Meeting Question Bank
|
| 2 |
+
|
| 3 |
+
Use this reference when a user asks for a fuller question list or when the reporting review surfaces issues across multiple areas. Select the questions that fit the facts; do not include a generic laundry list.
|
| 4 |
+
|
| 5 |
+
## Performance
|
| 6 |
+
|
| 7 |
+
- What were the main drivers of TVPI, DPI, RVPI, or IRR movement this period?
|
| 8 |
+
- How much of the performance movement came from realized activity versus unrealized marks?
|
| 9 |
+
- Which holdings contributed most to the change in value?
|
| 10 |
+
- Are any reported performance metrics preliminary or subject to revision?
|
| 11 |
+
- How should we interpret performance relative to the fund's age, strategy, and original underwriting?
|
| 12 |
+
|
| 13 |
+
## Cashflows and Liquidity
|
| 14 |
+
|
| 15 |
+
- What drove the period's capital calls?
|
| 16 |
+
- How much of the call activity related to new investments, follow-ons, fees, expenses, reserves, or recycling?
|
| 17 |
+
- What drove distributions this period?
|
| 18 |
+
- Were any distributions funded by realized exits, or by a NAV facility or subscription line rather than realized cash?
|
| 19 |
+
- How does the fund use fund-level leverage or subscription lines, and how is that usage capped?
|
| 20 |
+
- Are there expected near-term calls or distributions that LPs should plan around?
|
| 21 |
+
- Has the GP's view of reserve needs changed?
|
| 22 |
+
|
| 23 |
+
## Valuation
|
| 24 |
+
|
| 25 |
+
- What were the largest write-ups and write-downs this period?
|
| 26 |
+
- Were there any changes to valuation methodology, comparable sets, discount rates, or company forecasts?
|
| 27 |
+
- Has the basis for any marks shifted, for example from public-market comparables toward cost, and what prompted the change?
|
| 28 |
+
- Can the GP share its written valuation policy: committee composition, valuation frequency, third-party involvement, and write-down triggers?
|
| 29 |
+
- Which holdings have stale marks or limited recent operating support?
|
| 30 |
+
- Which marks are most sensitive to public market multiples, financing conditions, or company plan revisions?
|
| 31 |
+
- Are any valuations based on recent transactions, financing rounds, or third-party indications?
|
| 32 |
+
|
| 33 |
+
## Portfolio Companies and KPIs
|
| 34 |
+
|
| 35 |
+
- Which portfolio companies are most ahead of or behind plan?
|
| 36 |
+
- For companies with KPI deterioration, what actions is management taking?
|
| 37 |
+
- For companies with strong KPI improvement, how durable is the trend?
|
| 38 |
+
- Are margin, leverage, retention, bookings, or other operating metrics moving differently from revenue?
|
| 39 |
+
- Which companies may need additional capital?
|
| 40 |
+
|
| 41 |
+
## Concentration and Risk
|
| 42 |
+
|
| 43 |
+
- How concentrated is remaining value in the top holdings?
|
| 44 |
+
- Are any exposures materially affected by sector, geography, customer, supplier, or financing-market risk?
|
| 45 |
+
- Which companies are on the GP's internal watchlist?
|
| 46 |
+
- What are the main downside cases for the largest remaining holdings?
|
| 47 |
+
- Are there any covenant, liquidity, or refinancing risks?
|
| 48 |
+
|
| 49 |
+
## Exits and Realizations
|
| 50 |
+
|
| 51 |
+
- Which companies are expected to be exit candidates over the next 12-24 months?
|
| 52 |
+
- What exit paths are most likely: strategic sale, sponsor sale, IPO, dividend recap, or continuation vehicle?
|
| 53 |
+
- How has the GP's exit timing changed since the prior period?
|
| 54 |
+
- Are there market conditions delaying realizations?
|
| 55 |
+
- What portion of remaining value is expected to be realized in the near term?
|
| 56 |
+
- How is the GP pacing the conversion of unrealized value into realized distributions, and how does it weigh secondaries or continuation vehicles in that plan?
|
| 57 |
+
|
| 58 |
+
## Reporting and Follow-Up
|
| 59 |
+
|
| 60 |
+
- Can the GP provide a bridge from prior-period NAV to current-period NAV?
|
| 61 |
+
- Can the GP provide supporting detail for the largest valuation changes?
|
| 62 |
+
- Can the GP provide company-level KPI detail for top holdings or watchlist names?
|
| 63 |
+
- Are any metrics reported on a different basis than prior periods?
|
| 64 |
+
- Can the GP explain any values that do not reconcile across the reporting package?
|
| 65 |
+
|
| 66 |
+
## Re-Up Context
|
| 67 |
+
|
| 68 |
+
- How has the strategy changed from prior funds?
|
| 69 |
+
- How does the current portfolio support or challenge the case for re-up?
|
| 70 |
+
- What team, sourcing, underwriting, or portfolio construction changes should LPs understand?
|
| 71 |
+
- How much overlap should LPs expect between the existing portfolio and the next fund's strategy?
|
| 72 |
+
- What lessons from the current fund are being applied to the next fund?
|
| 73 |
+
- What is the firm's succession and key-person framework, and how concentrated is decision-making authority beneath the founders?
|
| 74 |
+
- How deep is the team below the senior partners, and what has changed in firm governance since the prior fund?
|
| 75 |
+
- How is carried interest crystallized, and does any carry pay out on unrealized gains before the performance picture is fully realized?
|
data/.codex/.codex/.tmp/plugins/plugins/chronograph-lp/skills/chronograph-gp-meeting-prep/references/report-review-checklist.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Report Review Checklist
|
| 2 |
+
|
| 3 |
+
Use this checklist when reviewing a GP reporting package or Chronograph report-derived context for LP meeting prep.
|
| 4 |
+
|
| 5 |
+
## Source Coverage
|
| 6 |
+
|
| 7 |
+
- Identify which materials are available, whether from Chronograph or provided by the LP.
|
| 8 |
+
- When Chronograph document search is available, use it to review the captured reporting package, including the narrative and commentary it contains, not just the summary tables.
|
| 9 |
+
- Ask the LP to provide any document the meeting needs that isn't in the connected context.
|
| 10 |
+
|
| 11 |
+
## Fund-Level Review
|
| 12 |
+
|
| 13 |
+
- Confirm reporting period, as-of date, currency, and units.
|
| 14 |
+
- Lead with the GP-reported figures and cite their source document where available: gross IRR and MOIC, cost, realized value, and unrealized value, plus their movement versus the prior period.
|
| 15 |
+
- Review NAV, unfunded, contributions, distributions, and total exposure versus the prior period, and check TVPI, DPI, RVPI, and net IRR movement as the LP's bottom-line return.
|
| 16 |
+
- Distinguish gross from net throughout, and look for changes in recallable amounts and other cost or value items.
|
| 17 |
+
- Flag values that do not reconcile or appear to use different dates or definitions.
|
| 18 |
+
|
| 19 |
+
## Cashflow Review
|
| 20 |
+
|
| 21 |
+
- Identify large calls, distributions, or recallable distributions.
|
| 22 |
+
- Ask whether calls were for new investments, follow-ons, fees, expenses, or reserves if not explained.
|
| 23 |
+
- Ask what drove distributions: exits, partial sales, dividends, recapitalizations, or other activity.
|
| 24 |
+
- Distinguish distributions funded by realized exits from those financed by a NAV facility or subscription line.
|
| 25 |
+
- Compare cashflow timing to the fund's age, strategy, and prior deployment pace.
|
| 26 |
+
|
| 27 |
+
## Valuation Review
|
| 28 |
+
|
| 29 |
+
- Identify material write-ups and write-downs.
|
| 30 |
+
- Look for stale marks, large unchanged values, and methodology changes.
|
| 31 |
+
- Flag any shift in valuation basis, such as a move from market comparables toward cost, and ask what prompted it.
|
| 32 |
+
- Where marks drive the discussion, ask whether a written valuation policy with defined write-down triggers supports them.
|
| 33 |
+
- Check whether valuation changes are concentrated in a few holdings.
|
| 34 |
+
- Ask for support where valuation movement lacks KPI or transaction context.
|
| 35 |
+
|
| 36 |
+
## Portfolio Review
|
| 37 |
+
|
| 38 |
+
- Identify top holdings and concentration by company, sector, geography, and fund exposure where available.
|
| 39 |
+
- Review new investments, exits, partial realizations, and follow-on investments.
|
| 40 |
+
- Review company KPI profile changes: revenue, EBITDA, leverage, customer metrics, or other reported operating KPIs.
|
| 41 |
+
- Flag portfolio companies with worsening KPIs but unchanged or increasing marks.
|
| 42 |
+
- Flag positive KPI movement that is not reflected in valuation or manager commentary.
|
| 43 |
+
|
| 44 |
+
## Reporting Quality Review
|
| 45 |
+
|
| 46 |
+
- Note missing explanations for material performance, valuation, or cashflow movement.
|
| 47 |
+
- Note inconsistent metric names, definitions, periods, currency, or scale.
|
| 48 |
+
- Note changed reporting format or missing tables compared with prior periods.
|
| 49 |
+
- Note where the GP report gives conclusions without supporting detail.
|
| 50 |
+
|
| 51 |
+
## Meeting Output
|
| 52 |
+
|
| 53 |
+
- Lead with the highest-priority issues, not a full data dump.
|
| 54 |
+
- Convert gaps into specific GP questions.
|
| 55 |
+
- Separate urgent meeting questions from follow-up document requests.
|
| 56 |
+
- Include source notes so the LP can trace every quantitative point.
|
data/.codex/.codex/.tmp/plugins/plugins/chronograph-lp/skills/chronograph-portfolio-company-one-pager/SKILL.md
ADDED
|
@@ -0,0 +1,487 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: chronograph-portfolio-company-one-pager
|
| 3 |
+
description: >
|
| 4 |
+
GP platform one-pager and investor report generator for private equity portfolio companies.
|
| 5 |
+
Use this skill whenever a user asks to generate a company tearsheet, one-pager, investor
|
| 6 |
+
report, portfolio overview, or company deep-dive — especially when they name a company or
|
| 7 |
+
ask to "build a report", "create a one-pager", or "show me a tearsheet". Also trigger when
|
| 8 |
+
the user asks to include commentary, quarterly updates, investment narratives, or any
|
| 9 |
+
Investment Overview in the report output. This skill handles live data fetching via a
|
| 10 |
+
connected MCP data source OR from an uploaded Excel model, metric formatting, AI-generated
|
| 11 |
+
or model-sourced commentary, and rendering a fully styled HTML one-pager. Also trigger for
|
| 12 |
+
LP quarterly updates, valuation summaries, and portco performance pages — any output that
|
| 13 |
+
combines financials, valuation, and return data for a single portfolio company.
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# GP Report Builder
|
| 17 |
+
|
| 18 |
+
Generates a fully styled, self-contained HTML investor report for a named portfolio company.
|
| 19 |
+
Supports two data source modes, two report types, and automatic brand detection from uploaded
|
| 20 |
+
templates. **Read this skill fully before writing a single line of HTML.**
|
| 21 |
+
|
| 22 |
+
**Requirements:** A connected Chronograph MCP server. These workflows are designed for permissioned Chronograph users to connect to their private investment data, or an uploaded Excel model for Model mode.
|
| 23 |
+
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
## Step 0 — Resolve Branding
|
| 27 |
+
|
| 28 |
+
Brand tokens are resolved automatically — the user never fills in a config file manually.
|
| 29 |
+
Execute the following decision tree before any other step.
|
| 30 |
+
|
| 31 |
+
### 0A — Check for an Uploaded Brand Template
|
| 32 |
+
|
| 33 |
+
Look for any of the following in the current conversation:
|
| 34 |
+
|
| 35 |
+
| File type | What to extract |
|
| 36 |
+
|---|---|
|
| 37 |
+
| **HTML / CSS file** | Parse all `color`, `background`, `font-family`, and `border` declarations. Identify the dominant background, primary accent, heading font, and body font. Extract any `--variable` tokens if a design system is present. |
|
| 38 |
+
| **PDF report or one-pager** | Visually analyse the document. Identify background color(s), the dominant accent/highlight color, heading and body typefaces, logo presence, and footer text. |
|
| 39 |
+
| **Image (PNG / JPG / SVG)** | Extract the 3–5 most visually prominent colors using the image content. Identify any visible text to infer font style (serif vs sans-serif, bold vs light). Note logo or wordmark if present. |
|
| 40 |
+
| **PowerPoint / PPTX** | Read slide backgrounds, title font, body font, accent colors from shapes and highlights. |
|
| 41 |
+
| **CSS / design token file** | Map token names to the brand token schema below directly. |
|
| 42 |
+
|
| 43 |
+
Once extracted, map findings to the Brand Token Schema in **0C**.
|
| 44 |
+
|
| 45 |
+
If the user has dropped **multiple** files, treat the most recent one as authoritative for
|
| 46 |
+
branding, unless the user specifies otherwise.
|
| 47 |
+
|
| 48 |
+
### 0B — No Template Provided → Apply Chronograph Defaults
|
| 49 |
+
|
| 50 |
+
If no brand template is present in the conversation, apply the following defaults silently —
|
| 51 |
+
do not ask the user to provide branding.
|
| 52 |
+
|
| 53 |
+
```
|
| 54 |
+
firm_name: Chronograph
|
| 55 |
+
website: www.chronograph.pe
|
| 56 |
+
confidentiality_label: CONFIDENTIAL
|
| 57 |
+
|
| 58 |
+
colors:
|
| 59 |
+
bg_primary: #101C1D ← Near Black 1 (page background)
|
| 60 |
+
bg_secondary: #1A2627 ← Near Black 2 (card / panel background)
|
| 61 |
+
bg_header: #1B4147 ← Deep Teal (header strip)
|
| 62 |
+
accent_primary: #57E5EE ← Bright Teal (headlines, KPI values, eyebrows)
|
| 63 |
+
accent_secondary: #11A8B2 ← Regular Teal (bars, borders, left-rule accents)
|
| 64 |
+
accent_negative: #F95532 ← Accent Red (EBITDA bars, negative deltas)
|
| 65 |
+
accent_positive: #4ecb8a ← Green (positive deltas)
|
| 66 |
+
text_primary: #FFFFFF ← White (body text)
|
| 67 |
+
text_muted: #D9E8E8 ← Light teal tint (footnotes, commentary)
|
| 68 |
+
table_header_bg: #1B4147 ← Deep Teal (table header row)
|
| 69 |
+
|
| 70 |
+
fonts:
|
| 71 |
+
heading: Ubuntu
|
| 72 |
+
heading_weight: 700
|
| 73 |
+
body: Open Sans
|
| 74 |
+
body_weight: 300
|
| 75 |
+
google_fonts_url: https://fonts.googleapis.com/css2?family=Ubuntu:wght@700&family=Open+Sans:wght@300;300i&display=swap
|
| 76 |
+
|
| 77 |
+
logo:
|
| 78 |
+
url: (none — render firm name as text)
|
| 79 |
+
position: top-left
|
| 80 |
+
|
| 81 |
+
theme: dark
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
### 0C — Brand Token Schema
|
| 85 |
+
|
| 86 |
+
Whether tokens are extracted from a template (0A) or defaults are applied (0B), resolve all
|
| 87 |
+
of the following before proceeding. Every downstream panel references these names.
|
| 88 |
+
|
| 89 |
+
| Token | Role | Fallback if undetectable |
|
| 90 |
+
|---|---|---|
|
| 91 |
+
| `firm_name` | Firm name in header and footer | Infer from logo text or filename; else `"Your Firm"` |
|
| 92 |
+
| `website` | Footer URL | `""` (omit from footer) |
|
| 93 |
+
| `confidentiality_label` | Footer suffix | `"CONFIDENTIAL"` |
|
| 94 |
+
| `bg_primary` | Page / root background | Chronograph default |
|
| 95 |
+
| `bg_secondary` | Card / panel background | Darken `bg_primary` by 5% |
|
| 96 |
+
| `bg_header` | Header strip background | Darken `bg_primary` by 15% |
|
| 97 |
+
| `accent_primary` | Headlines, KPI values, eyebrow labels | Dominant bright color from template |
|
| 98 |
+
| `accent_secondary` | Bars, borders, left-rule accents | Mute `accent_primary` by 30% |
|
| 99 |
+
| `accent_negative` | Negative values, downward deltas | `#F95532` |
|
| 100 |
+
| `accent_positive` | Positive deltas | `#4ecb8a` |
|
| 101 |
+
| `text_primary` | Main body text | `#FFFFFF` on dark; `#1A1A1A` on light |
|
| 102 |
+
| `text_muted` | Footnotes, commentary | Tint `text_primary` toward `bg_primary` by 20% |
|
| 103 |
+
| `table_header_bg` | Table header row | `bg_header` |
|
| 104 |
+
| `font_heading` | Heading / KPI / eyebrow font | Detected from template; else `Ubuntu` |
|
| 105 |
+
| `font_heading_weight` | Heading weight | `700` |
|
| 106 |
+
| `font_body` | Body / table / footnote font | Detected from template; else `Open Sans` |
|
| 107 |
+
| `font_body_weight` | Body weight | `300` |
|
| 108 |
+
| `google_fonts_url` | Font load URL | Build from detected font names |
|
| 109 |
+
| `logo_url` | Logo image src | `""` — fall back to firm name as text |
|
| 110 |
+
| `logo_position` | Header logo placement | `top-left` |
|
| 111 |
+
| `theme` | `dark` or `light` | `dark` if `bg_primary` luminance < 0.2; else `light` |
|
| 112 |
+
|
| 113 |
+
### 0D — Theme Handling
|
| 114 |
+
|
| 115 |
+
**Dark theme** (luminance of `bg_primary` < 0.2):
|
| 116 |
+
Use the token values as resolved. Default contrast pairings apply (white text on dark
|
| 117 |
+
backgrounds). Minimum contrast ratio: 4.5:1 for body text, 3:1 for large text (≥ 18px bold).
|
| 118 |
+
|
| 119 |
+
**Light theme** (luminance of `bg_primary` ≥ 0.2):
|
| 120 |
+
- Swap `text_primary` to a near-black (e.g. `#1A1A1A`) if not already dark
|
| 121 |
+
- Ensure `accent_primary` provides ≥ 3:1 contrast against `bg_primary`
|
| 122 |
+
- Table header: use the firm's dark brand color (e.g. deep navy / dark green) rather than
|
| 123 |
+
a light value
|
| 124 |
+
|
| 125 |
+
### 0E — Confirm with the User (optional, brief)
|
| 126 |
+
|
| 127 |
+
After resolving tokens, output a **single short line** — not a table, not a list — before
|
| 128 |
+
generating the report:
|
| 129 |
+
|
| 130 |
+
> *"Using [firm_name] branding — [accent_primary] accent on [bg_primary] background,
|
| 131 |
+
> [font_heading] / [font_body] fonts."*
|
| 132 |
+
|
| 133 |
+
If brand detection produced low-confidence results (e.g. only a logo image was provided with
|
| 134 |
+
no color context), ask one focused question:
|
| 135 |
+
|
| 136 |
+
> *"I've picked up [X] and [Y] from your file — is that the right color scheme,
|
| 137 |
+
> or would you like to adjust anything?"*
|
| 138 |
+
|
| 139 |
+
Do not ask if defaults were applied — just proceed.
|
| 140 |
+
|
| 141 |
+
---
|
| 142 |
+
|
| 143 |
+
## Step 1 — Determine Report Mode
|
| 144 |
+
|
| 145 |
+
**Data source mode:**
|
| 146 |
+
|
| 147 |
+
| Signal | Mode |
|
| 148 |
+
|---|---|
|
| 149 |
+
| User uploads an Excel model (.xlsx) or references an uploaded file | **Model mode** — read data from the file |
|
| 150 |
+
| No file uploaded; company exists in the connected data platform | **MCP mode** — fetch live from the platform |
|
| 151 |
+
| Both available | Prefer the model for financials and commentary; use MCP to supplement metadata and returns |
|
| 152 |
+
|
| 153 |
+
**Report type:**
|
| 154 |
+
|
| 155 |
+
| User asks for… | Report type |
|
| 156 |
+
|---|---|
|
| 157 |
+
| One-pager, tearsheet, company report, GP report | **GP One-Pager** |
|
| 158 |
+
| LP update, quarterly update, LP quarterly report | **LP Quarterly Update** |
|
| 159 |
+
|
| 160 |
+
If unclear, default to **GP One-Pager**.
|
| 161 |
+
|
| 162 |
+
---
|
| 163 |
+
|
| 164 |
+
## Step 2 — Resolve the Company & Fetch Data
|
| 165 |
+
|
| 166 |
+
### MCP Mode
|
| 167 |
+
|
| 168 |
+
All data is fetched from the user's connected **Chronograph MCP server**. The agent must have the Chronograph MCP connected before running the skill in MCP mode; if it isn't connected, prompt the user to connect it, or fall back to Model mode if a file is available.
|
| 169 |
+
|
| 170 |
+
Inspect the connected Chronograph MCP's tool list at runtime and pick the appropriate tool for each step below based on the tool descriptions the server provides. Do not hard-code tool names — read the live descriptions to stay current.
|
| 171 |
+
|
| 172 |
+
### Fetch sequence
|
| 173 |
+
|
| 174 |
+
Work through these steps in order. At each step, identify the right Chronograph tool from its description, call it to fetch what the report needs, and hold the result for the rendering steps that follow. The skill does not need a fixed schema — only the values listed below in plain language.
|
| 175 |
+
|
| 176 |
+
**1. Resolve the company.** Find the tool that searches for companies, funds, and other portfolio entities by name. Use it to turn the user's input into a canonical company. If multiple candidates come back, prefer the closest name match; ask the user only if genuinely ambiguous.
|
| 177 |
+
|
| 178 |
+
**2. Get the company's basic facts.** Use the tool that retrieves core portfolio entity records. Fetch what the **Header Strip** (Step 4) needs: company name, sector, industry, geography, HQ, and the company's reporting currency. Request only what the header renders — the tool's description will list what's available.
|
| 179 |
+
|
| 180 |
+
**3. Get the company's investments.** Using the same core-entity retrieval tool, fetch the list of investments associated with the company. The **Investment Returns Table** (Step 4) needs one row per investment: investment name, the fund it belongs to, entry date, exit date if applicable, and whether it has exited.
|
| 181 |
+
|
| 182 |
+
**4. Get the company's financial line items.** Find the tool for company-level financial metrics. Make a discovery / help call first, passing the company ID, to see what's available.
|
| 183 |
+
|
| 184 |
+
**Metric selection rule.** Always query by the platform's metric type when one is available for the line item — even if the company's display label differs. Use a company-specific mapped metric definition only when no metric type covers the line item or the request is inherently tenant-specific (bespoke KPIs, commentary fields, operating metrics, custom valuation inputs).
|
| 185 |
+
|
| 186 |
+
Priority:
|
| 187 |
+
|
| 188 |
+
1. Platform metric type
|
| 189 |
+
2. Company-specific mapped metric definition (only if no metric type exists)
|
| 190 |
+
3. Name-based metric search (only if neither of the above resolves)
|
| 191 |
+
|
| 192 |
+
Do not pick a company-specific metric because its label is a closer word match than an available metric type. Metric types drive querying; display labels drive presentation.
|
| 193 |
+
|
| 194 |
+
What the report needs (query via the metric type whenever available):
|
| 195 |
+
|
| 196 |
+
- **Financial Performance Table:** Revenue, Gross Profit, EBITDA, the company's adjusted EBITDA series, and Net Debt. Pull the last 4–5 trailing-twelve-month periods plus the most recent quarter.
|
| 197 |
+
- **Valuation Summary Table:** Enterprise Value, valuation multiple, Total Debt, Cash, Net Debt, Equity Value — current quarter and prior quarter.
|
| 198 |
+
- **KPI Strip:** the latest values for LTM Revenue, LTM Adj. EBITDA, Enterprise Value, and Net Debt.
|
| 199 |
+
|
| 200 |
+
Use LTM for income-statement items, As-of for balance items. The discovery response will tell you which period types are supported per metric.
|
| 201 |
+
|
| 202 |
+
**5. Get per-investment returns.** Find the tool for investment-level performance. It uses gross performance figures (not net — net lives elsewhere on the platform and is the wrong tool for the GP one-pager). The **Investment Returns Table** needs, per investment: invested capital, realized proceeds, unrealized value, MOIC, and IRR. Sum across investments to populate the MOIC card in the **KPI Strip**.
|
| 203 |
+
|
| 204 |
+
**6. Resolve any non-standard metrics by name.** If the user asks the report to include a tenant-specific KPI that isn't part of the platform's standard metric set — e.g. a custom operating metric — use the metric-name search tool to resolve it to an ID before querying the company-metrics tool.
|
| 205 |
+
|
| 206 |
+
### Currency
|
| 207 |
+
|
| 208 |
+
Use the company's reporting currency as returned in step 2. **Do not default to USD.** If the user explicitly asks for a different currency, pass that through to each tool call.
|
| 209 |
+
|
| 210 |
+
### If something is missing
|
| 211 |
+
|
| 212 |
+
- Company not found → ask the user to confirm spelling; try the legal name.
|
| 213 |
+
- A metric returns no value → display `—`. Never fabricate.
|
| 214 |
+
- A tool returns a schema or help error → comply with the introspection call it asks for and retry.
|
| 215 |
+
- Chronograph MCP not connected → prompt the user to connect it, or fall back to Model mode.
|
| 216 |
+
|
| 217 |
+
### Model Mode
|
| 218 |
+
|
| 219 |
+
Read the uploaded Excel file using pandas (`data_only=True`). Extract from:
|
| 220 |
+
|
| 221 |
+
| Tab | Data to extract |
|
| 222 |
+
|---|---|
|
| 223 |
+
| `Overview` | Company name, HQ, fiscal year end, fund name(s), investment names, entry dates, ownership % |
|
| 224 |
+
| `Performance` | Revenue, Gross Profit, EBITDA, Adj. EBITDA (Reported and Valuation basis), Net Debt — last 4–5 LTM periods |
|
| 225 |
+
| `Valuation` | EV, valuation multiple, equity value, net debt — current and prior quarter; commentary text (Business Update, Rationale for Conclusion, Rationale for Discount); per-investment cost, realized, unrealized, MOIC |
|
| 226 |
+
|
| 227 |
+
**Currency and scale:** Check the `Figures In` field on the Overview tab. If `1000`
|
| 228 |
+
(thousands), divide all financial values by 1,000 before displaying in millions. Note the
|
| 229 |
+
`Local Currency` field and include it in the report header.
|
| 230 |
+
|
| 231 |
+
**If commentary is present in the model**, use it verbatim (lightly edited for grammar only).
|
| 232 |
+
|
| 233 |
+
---
|
| 234 |
+
|
| 235 |
+
## Step 3 — Layout Structure
|
| 236 |
+
|
| 237 |
+
Both report types share the same structural template. The Financial Performance table must
|
| 238 |
+
always be **directly above** the Valuation Summary table in the same column.
|
| 239 |
+
|
| 240 |
+
```
|
| 241 |
+
┌─────────────────────────────────────────────────────────────────┐
|
| 242 |
+
│ HEADER — Logo · Company · Fund · Sector · HQ · Report date │
|
| 243 |
+
│ Tag pills: sector, geography, fund, status │
|
| 244 |
+
├─────────────────────────────────────────────────────────────────┤
|
| 245 |
+
│ KPI STRIP (5 cards, full width) │
|
| 246 |
+
│ LTM Revenue | LTM EBITDA | Enterprise Value | Net Debt | MOIC │
|
| 247 |
+
├───────────────────────────┬─────────────────────────────────────┤
|
| 248 |
+
│ LEFT COLUMN │ RIGHT COLUMN │
|
| 249 |
+
│ │ │
|
| 250 |
+
│ Financial Performance │ Revenue & EBITDA Bar Chart │
|
| 251 |
+
│ Table │ (last 4 LTM periods, SVG inline) │
|
| 252 |
+
│ │ │
|
| 253 |
+
│ Valuation Summary │ Investment Returns Table │
|
| 254 |
+
│ Table ← must stay here │ │
|
| 255 |
+
│ │ │
|
| 256 |
+
├───────────────────────────┴─────────────────────────────────────┤
|
| 257 |
+
│ COMMENTARY (full width, up to 3 columns) │
|
| 258 |
+
│ Business Update | Valuation Rationale | Discount Rationale │
|
| 259 |
+
├─────────────────────────────────────────────────────────────────┤
|
| 260 |
+
│ FOOTER — © {firm_name} | {website} | {confidentiality_label} │
|
| 261 |
+
└─────────────────────────────────────────────────────────────────┘
|
| 262 |
+
```
|
| 263 |
+
|
| 264 |
+
---
|
| 265 |
+
|
| 266 |
+
## Step 4 — Panel Specifications
|
| 267 |
+
|
| 268 |
+
### Header Strip
|
| 269 |
+
|
| 270 |
+
- Background: `bg_header` → `bg_primary` gradient, 135°
|
| 271 |
+
- **Logo:** if `logo_url` is set, render `<img src="{logo_url}">` at `logo_position`;
|
| 272 |
+
maintain clearspace equal to the cap-height of the firm name on all sides
|
| 273 |
+
- **Logo fallback:** if `logo_url` is blank, render firm name in `font_heading`,
|
| 274 |
+
`font_heading_weight`, 24px, `text_primary`
|
| 275 |
+
- Company name: `font_heading`, 28px, `accent_primary`
|
| 276 |
+
- Subtitle (fund · sector · HQ · date): `font_body`, 12px, `text_muted`
|
| 277 |
+
- Tag pills: `bg_secondary` fill, `accent_secondary` border, `font_body` 10px
|
| 278 |
+
|
| 279 |
+
### KPI Strip (5 cards)
|
| 280 |
+
|
| 281 |
+
| Card | Value |
|
| 282 |
+
|---|---|
|
| 283 |
+
| LTM Revenue | Current period revenue |
|
| 284 |
+
| LTM Adj. EBITDA | Valuation basis if available, else Reported |
|
| 285 |
+
| Enterprise Value | Current quarter EV |
|
| 286 |
+
| Net Debt | Current quarter net debt |
|
| 287 |
+
| Gross MOIC | Blended or primary investment MOIC |
|
| 288 |
+
|
| 289 |
+
- Card: `bg_secondary` background, 6px border-radius, `box-shadow: 0 2px 8px rgba(0,0,0,0.4)`
|
| 290 |
+
- Value: `font_heading`, 28px, `accent_primary`
|
| 291 |
+
- Label: `font_body`, 9px, uppercase, letter-spacing 0.05em, `text_primary`
|
| 292 |
+
- Delta: `▲ +X%` in `accent_positive` · `▼ -X%` in `accent_negative`
|
| 293 |
+
|
| 294 |
+
### Financial Performance Table (LEFT column, top)
|
| 295 |
+
|
| 296 |
+
Rows (LTM, 3 prior periods + current quarter, vs. PY column):
|
| 297 |
+
|
| 298 |
+
| Row | Notes |
|
| 299 |
+
|---|---|
|
| 300 |
+
| Revenue | |
|
| 301 |
+
| Gross Profit | |
|
| 302 |
+
| Gross Margin % | |
|
| 303 |
+
| EBITDA | |
|
| 304 |
+
| EBITDA Margin % | |
|
| 305 |
+
| **Adj. EBITDA (Valuation)** | Highlight row — `font_heading`, `accent_primary` value |
|
| 306 |
+
| **Adj. EBITDA Margin %** | Highlight row |
|
| 307 |
+
| Net Debt | |
|
| 308 |
+
|
| 309 |
+
- Header row: `table_header_bg`, `font_body` 9px uppercase, `text_primary`
|
| 310 |
+
- Alternating rows: `bg_secondary` / `bg_primary`
|
| 311 |
+
- Highlight rows: `rgba({accent_primary}, 0.06)` background
|
| 312 |
+
- Numeric columns right-aligned; label column left-aligned
|
| 313 |
+
|
| 314 |
+
### Valuation Summary Table (LEFT column, directly below Financial Performance)
|
| 315 |
+
|
| 316 |
+
| Row | Notes |
|
| 317 |
+
|---|---|
|
| 318 |
+
| Valuation Multiple | `X.Xx` |
|
| 319 |
+
| Adj. EBITDA (LTM) | currency |
|
| 320 |
+
| **Enterprise Value** | Highlight row |
|
| 321 |
+
| Total Debt | |
|
| 322 |
+
| Cash | |
|
| 323 |
+
| Net Debt | |
|
| 324 |
+
| **Total Equity Value** | Highlight row |
|
| 325 |
+
|
| 326 |
+
Prior Quarter vs Current Quarter, plus a delta column (`accent_positive` / `accent_negative`).
|
| 327 |
+
|
| 328 |
+
### Revenue & EBITDA Bar Chart (RIGHT column, top)
|
| 329 |
+
|
| 330 |
+
- **Inline SVG only** — no external JS or D3
|
| 331 |
+
- Side-by-side bars: Revenue in `accent_secondary`, Adj. EBITDA in `accent_negative`
|
| 332 |
+
- Current quarter Revenue bar: `accent_primary`
|
| 333 |
+
- 4 LTM periods on x-axis; `$Xm` labels above each bar
|
| 334 |
+
- Current quarter label: `font_heading`, `accent_primary`; prior: `font_body`, `text_muted`
|
| 335 |
+
- Y-axis gridlines: dashed, `rgba({accent_primary}, 0.08)`
|
| 336 |
+
- Legend: colour swatches + labels, `font_body` 9px
|
| 337 |
+
- Auto-scale: y-axis max = largest revenue × 1.2; bar heights proportional
|
| 338 |
+
|
| 339 |
+
### Investment Returns Table (RIGHT column, bottom)
|
| 340 |
+
|
| 341 |
+
| Column | Format |
|
| 342 |
+
|---|---|
|
| 343 |
+
| Investment name | Left-aligned |
|
| 344 |
+
| Entry date | `Mon YYYY` |
|
| 345 |
+
| Ownership % | `X.X%` |
|
| 346 |
+
| Cost (Gross) | `$Xm` |
|
| 347 |
+
| Realized | `$Xm` |
|
| 348 |
+
| Unrealized | `$Xm` |
|
| 349 |
+
| MOIC (Gross) | `X.XXx` — `font_heading`, `accent_primary` |
|
| 350 |
+
|
| 351 |
+
- Sort: largest cost first
|
| 352 |
+
- **Total / Blended** row at bottom in `font_heading`
|
| 353 |
+
- Add IRR column if available; omit column if all values null
|
| 354 |
+
- Unavailable values: `—`
|
| 355 |
+
- One-sentence QoQ note below table: `font_body` 9.5px, `text_muted`
|
| 356 |
+
|
| 357 |
+
### Commentary Section (full width, up to 3 columns)
|
| 358 |
+
|
| 359 |
+
1. **Business Update** — verbatim from model if present; AI-generated in MCP mode
|
| 360 |
+
2. **Rationale for Valuation Conclusion** — verbatim from model if present
|
| 361 |
+
3. **Rationale for Discount to Comps** — verbatim from model if present
|
| 362 |
+
|
| 363 |
+
- Eyebrow label: `accent_primary`, 9px, uppercase, letter-spacing 0.08em,
|
| 364 |
+
1px bottom border in `accent_primary`
|
| 365 |
+
- Body: `font_body`, 11px, `text_muted`, line-height 1.6
|
| 366 |
+
- Collapse empty columns — never show a blank block
|
| 367 |
+
|
| 368 |
+
---
|
| 369 |
+
|
| 370 |
+
## Step 5 — LP Quarterly Update Additions
|
| 371 |
+
|
| 372 |
+
When report type is **LP Quarterly Update**:
|
| 373 |
+
|
| 374 |
+
1. Header eyebrow → `LP QUARTERLY UPDATE · Q[N] YYYY`
|
| 375 |
+
2. Commentary must come from model verbatim — never AI-generate for LP reports
|
| 376 |
+
3. Add an optional **valuation bridge note** below the Valuation Summary table:
|
| 377 |
+
*"EV increase driven by multiple expansion from X.Xx to Y.Yx; EBITDA contribution +$Zm"*
|
| 378 |
+
|
| 379 |
+
---
|
| 380 |
+
|
| 381 |
+
## Step 6 — CSS Variables & Font Loading
|
| 382 |
+
|
| 383 |
+
Populate these from the resolved brand tokens (Step 0). Set once in `<style>`; all panels
|
| 384 |
+
inherit automatically.
|
| 385 |
+
|
| 386 |
+
```html
|
| 387 |
+
<!-- In <head> -->
|
| 388 |
+
<link href="{google_fonts_url}" rel="stylesheet">
|
| 389 |
+
|
| 390 |
+
<style>
|
| 391 |
+
:root {
|
| 392 |
+
--bg-primary: {bg_primary};
|
| 393 |
+
--bg-secondary: {bg_secondary};
|
| 394 |
+
--bg-header: {bg_header};
|
| 395 |
+
--accent-primary: {accent_primary};
|
| 396 |
+
--accent-secondary: {accent_secondary};
|
| 397 |
+
--accent-negative: {accent_negative};
|
| 398 |
+
--accent-positive: {accent_positive};
|
| 399 |
+
--text-primary: {text_primary};
|
| 400 |
+
--text-muted: {text_muted};
|
| 401 |
+
--table-header-bg: {table_header_bg};
|
| 402 |
+
}
|
| 403 |
+
|
| 404 |
+
body {
|
| 405 |
+
font-family: '{font_body}', sans-serif;
|
| 406 |
+
font-weight: {font_body_weight};
|
| 407 |
+
background: var(--bg-primary);
|
| 408 |
+
color: var(--text-primary);
|
| 409 |
+
margin: 0;
|
| 410 |
+
}
|
| 411 |
+
|
| 412 |
+
h1, h2, h3, h4, .eyebrow, .kpi-value, .moic-value {
|
| 413 |
+
font-family: '{font_heading}', sans-serif;
|
| 414 |
+
font-weight: {font_heading_weight};
|
| 415 |
+
}
|
| 416 |
+
</style>
|
| 417 |
+
```
|
| 418 |
+
|
| 419 |
+
---
|
| 420 |
+
|
| 421 |
+
## Step 7 — Formatting Rules
|
| 422 |
+
|
| 423 |
+
| Type | Format |
|
| 424 |
+
|---|---|
|
| 425 |
+
| Currency (millions) | `$43.5m` |
|
| 426 |
+
| Negative / net cash | `($3.4m)` in `var(--accent-negative)` |
|
| 427 |
+
| Multiples | `1.41x` |
|
| 428 |
+
| Percentages | `15.7%` |
|
| 429 |
+
| Basis point changes | `+70bps` |
|
| 430 |
+
| Dates | `Q4 2024` or `31 Dec 2024` |
|
| 431 |
+
| MOIC | `4.97x` — heading font, `var(--accent-primary)` |
|
| 432 |
+
| Positive delta | `▲ +X%` — `var(--accent-positive)` |
|
| 433 |
+
| Negative delta | `▼ -X%` — `var(--accent-negative)` |
|
| 434 |
+
| Unavailable | `—` (em dash) — never fabricate |
|
| 435 |
+
|
| 436 |
+
---
|
| 437 |
+
|
| 438 |
+
## Step 8 — Output
|
| 439 |
+
|
| 440 |
+
- **File name:** `[company_name_lowercase_underscored]_[report_type]_[quarter].html`
|
| 441 |
+
- Examples: `ashworth_health_gp_report.html` · `ashworth_health_lp_update_q4_2024.html`
|
| 442 |
+
- **Single self-contained HTML file** — all CSS in `<style>`, all data inline
|
| 443 |
+
- **No external JS** — bar chart is inline SVG
|
| 444 |
+
- **Footer:** `© {firm_name} | {website} | {confidentiality_label}` (omit blank fields)
|
| 445 |
+
- Save to the outputs directory and present the file to the user
|
| 446 |
+
|
| 447 |
+
---
|
| 448 |
+
|
| 449 |
+
## Error Handling
|
| 450 |
+
|
| 451 |
+
| Situation | Action |
|
| 452 |
+
|---|---|
|
| 453 |
+
| No brand template and no defaults configured | Apply Chronograph defaults silently |
|
| 454 |
+
| Brand template provided but colors are ambiguous | Apply best-guess tokens; surface the one-line confirmation (Step 0E) |
|
| 455 |
+
| Logo URL returns 404 or is empty | Fall back to firm name as heading-font text |
|
| 456 |
+
| Company not found via MCP | Ask user to confirm spelling; try alternate names |
|
| 457 |
+
| Metric unavailable | Display `—`; never fabricate |
|
| 458 |
+
| Commentary empty in model | AI-generate; label `(AI-generated)` in small `text_muted` |
|
| 459 |
+
| IRR null for all investments | Omit IRR column |
|
| 460 |
+
| Cost split unavailable for a tranche | Show combined row; note gap in footnote |
|
| 461 |
+
| Model and MCP figures conflict | Flag in footnote; prefer model figures |
|
| 462 |
+
| `Figures In` = 1000 | Divide all values by 1,000 before displaying in millions |
|
| 463 |
+
| Light-theme brand detected | Swap text tokens to dark; verify contrast ≥ 4.5:1 before rendering |
|
| 464 |
+
| Chronograph MCP not connected (MCP mode) | Prompt user to connect; fall back to Model mode if a file is available |
|
| 465 |
+
|
| 466 |
+
---
|
| 467 |
+
|
| 468 |
+
## Data & Brand Checklist (verify before rendering)
|
| 469 |
+
|
| 470 |
+
**Brand**
|
| 471 |
+
- [ ] Brand tokens resolved — from uploaded template or Chronograph defaults
|
| 472 |
+
- [ ] One-line brand confirmation output to user (or low-confidence question asked)
|
| 473 |
+
- [ ] CSS variables set; Google Fonts `<link>` in `<head>`
|
| 474 |
+
- [ ] Logo rendered or firm-name fallback applied
|
| 475 |
+
- [ ] Theme (dark/light) confirmed; contrast ratios verified
|
| 476 |
+
|
| 477 |
+
**Data**
|
| 478 |
+
- [ ] Data source mode determined (Model or MCP)
|
| 479 |
+
- [ ] Report type determined (GP One-Pager or LP Quarterly Update)
|
| 480 |
+
- [ ] Currency and scale confirmed (`Figures In` handling applied if needed)
|
| 481 |
+
- [ ] Financial Performance table: 4 periods + vs. PY column
|
| 482 |
+
- [ ] Valuation Summary: PQ vs CQ + delta — in same column as Financial Performance
|
| 483 |
+
- [ ] Bar chart: 4 periods, bars labelled, y-axis auto-scaled
|
| 484 |
+
- [ ] Investment Returns: per-investment rows + total row
|
| 485 |
+
- [ ] Commentary: model text verbatim if available; empty blocks collapsed
|
| 486 |
+
- [ ] Footer: firm name, website, confidentiality label (omit blanks)
|
| 487 |
+
- [ ] Single self-contained HTML file, no external JS
|
data/.codex/.codex/.tmp/plugins/plugins/chronograph-lp/skills/chronograph-portfolio-company-one-pager/agents/openai.yaml
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "Chronograph Portfolio Company One-Pager"
|
| 3 |
+
short_description: "Generate styled HTML GP one-pagers and LP quarterly updates for portfolio companies"
|
| 4 |
+
default_prompt: "Use $chronograph-portfolio-company-one-pager to generate a portfolio company tearsheet, GP one-pager, or LP quarterly update."
|
| 5 |
+
|
| 6 |
+
dependencies:
|
| 7 |
+
tools:
|
| 8 |
+
- type: "mcp"
|
| 9 |
+
value: "chronograph-lp"
|
| 10 |
+
description: "Optional Chronograph MCP server for live company metadata, investments, and metric retrieval. Not required when working from an uploaded Excel model."
|
data/.codex/.codex/.tmp/plugins/plugins/cloudinary/.codex-plugin/plugin.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "cloudinary",
|
| 3 |
+
"version": "1.0.2",
|
| 4 |
+
"description": "Manage, search, and transform your Cloudinary media library \u2014 directly from Codex.",
|
| 5 |
+
"author": {
|
| 6 |
+
"url": "https://cloudinary.com/",
|
| 7 |
+
"name": "Cloudinary"
|
| 8 |
+
},
|
| 9 |
+
"homepage": "https://cloudinary.com/",
|
| 10 |
+
"repository": "https://github.com/openai/plugins",
|
| 11 |
+
"license": "MIT",
|
| 12 |
+
"keywords": [],
|
| 13 |
+
"apps": "./.app.json",
|
| 14 |
+
"interface": {
|
| 15 |
+
"displayName": "Cloudinary",
|
| 16 |
+
"shortDescription": "Manage, search, and transform your Cloudinary media library \u2014 directly from Codex.",
|
| 17 |
+
"longDescription": "Manage, search, and transform your Cloudinary media library \u2014 directly from Codex.\n\nThe Cloudinary app connects your Cloudinary account to Codex, giving you full control over your visual assets through natural language. Upload, organize, tag, transform, and analyze images or videos without leaving the chat. \n\nWhat You Can Do\n- Upload assets from URLs, local files, or base64 data \u2014 automatically analyze, tag, or moderate them.\n- Browse and search your entire media library using smart filters or text queries (tags, format, date, size, etc.).\n- Organize your library \u2014 create folders, rename files, manage metadata, and clean up obsolete assets.\n- Transform images or videos with Cloudinary\u2019s powerful syntax \u2014 resize, crop, watermark, apply filters, or optimize for delivery.\n- Generate archives and backups, or restore previous versions when needed.\n- Analyze assets with AI \u2014 detect faces, extract text, get color palettes, and accessibility scores.\n- Monitor usage \u2014 track storage, bandwidth, and transformation credits in real time.\n- Visual search \u2014 find visually similar images by uploading an example or describing it.\n\nPerfect For\n- Developers who want to experiment with Cloudinary API commands in natural language.\n- Marketers & designers managing campaign visuals and brand assets.\n- Teams automating content workflows with Codex or building multi-agent setups.\n\nTurn Codex into a powerful media management assistant with the Cloudinary app.",
|
| 18 |
+
"category": "Developer Tools",
|
| 19 |
+
"capabilities": [],
|
| 20 |
+
"websiteURL": "https://cloudinary.com/",
|
| 21 |
+
"privacyPolicyURL": "https://cloudinary.com/privacy",
|
| 22 |
+
"termsOfServiceURL": "https://cloudinary.com/tou",
|
| 23 |
+
"defaultPrompt": [
|
| 24 |
+
"Upload this image and enable auto-tagging"
|
| 25 |
+
],
|
| 26 |
+
"screenshots": [],
|
| 27 |
+
"composerIcon": "./assets/app-icon.png",
|
| 28 |
+
"logo": "./assets/app-icon.png",
|
| 29 |
+
"developerName": "Cloudinary"
|
| 30 |
+
}
|
| 31 |
+
}
|
data/.codex/.codex/.tmp/plugins/plugins/dnb-finance-analytics/.codex-plugin/plugin.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "dnb-finance-analytics",
|
| 3 |
+
"version": "1.0.2",
|
| 4 |
+
"description": "Commercial credit origination and risk workflows",
|
| 5 |
+
"author": {
|
| 6 |
+
"name": "Dun & Bradstreet",
|
| 7 |
+
"url": "https://www.dnb.com/"
|
| 8 |
+
},
|
| 9 |
+
"homepage": "https://www.dnb.com/",
|
| 10 |
+
"repository": "https://github.com/openai/plugins",
|
| 11 |
+
"license": "MIT",
|
| 12 |
+
"keywords": [
|
| 13 |
+
"dnb",
|
| 14 |
+
"dun-bradstreet",
|
| 15 |
+
"finance-analytics",
|
| 16 |
+
"business-identity",
|
| 17 |
+
"company-data",
|
| 18 |
+
"firmographics",
|
| 19 |
+
"credit-risk",
|
| 20 |
+
"corporate-linkage",
|
| 21 |
+
"portfolio-management",
|
| 22 |
+
"credit-origination"
|
| 23 |
+
],
|
| 24 |
+
"apps": "./.app.json",
|
| 25 |
+
"skills": "./skills/",
|
| 26 |
+
"interface": {
|
| 27 |
+
"displayName": "D&B Finance Analytics",
|
| 28 |
+
"shortDescription": "Commercial credit origination and risk workflows",
|
| 29 |
+
"longDescription": "Power commercial credit origination and portfolio management workflows with D&B Finance Analytics embedded AI decisioning layer.\n\nDun & Bradstreet connects the D&B Commercial Graph with proprietary customer data and credit policies to help evaluate applications, set credit limits, and uncover portfolio risk and opportunity.",
|
| 30 |
+
"developerName": "Dun & Bradstreet",
|
| 31 |
+
"category": "Finance",
|
| 32 |
+
"capabilities": [
|
| 33 |
+
"Portfolio search, filtering, aggregation, and sorting",
|
| 34 |
+
"Company search by name or D-U-N-S number",
|
| 35 |
+
"Detailed company credit-risk reports",
|
| 36 |
+
"Company ownership and linkage trees",
|
| 37 |
+
"Credit application decisioning",
|
| 38 |
+
"Portfolio folder creation, movement, and organization",
|
| 39 |
+
"Server-provided Finance Analytics skill discovery"
|
| 40 |
+
],
|
| 41 |
+
"websiteURL": "https://www.dnb.com/",
|
| 42 |
+
"privacyPolicyURL": "https://www.dnb.com/about-us/data-transparency.html",
|
| 43 |
+
"termsOfServiceURL": "https://view.highspot.com/viewer/1c5acd1db08e2cc64faff50703335a1d",
|
| 44 |
+
"brandColor": "#004B8D",
|
| 45 |
+
"defaultPrompt": [
|
| 46 |
+
"Show me all companies in my portfolio with a failure score above 80, sorted by outstanding balance.",
|
| 47 |
+
"Give me a full credit risk report for Acme Corp, including their payment history and risk scores.",
|
| 48 |
+
"Who are the parent and subsidiary companies of Global Logistics Inc? Show me the full ownership tree."
|
| 49 |
+
],
|
| 50 |
+
"screenshots": [],
|
| 51 |
+
"composerIcon": "./assets/app-icon.png",
|
| 52 |
+
"logo": "./assets/app-icon.png"
|
| 53 |
+
}
|
| 54 |
+
}
|
data/.codex/.codex/.tmp/plugins/plugins/dnb-finance-analytics/skills/fa-jobs-to-be-done/SKILL.md
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: fa-jobs-to-be-done
|
| 3 |
+
description: Use when the user asks for D&B Finance Analytics workflows such as customer onboarding, credit decisioning, credit limit validation, portfolio risk management, company reports, ownership trees, folder management, or alerts. Use only the D&B Finance Analytics MCP tools for these workflows.
|
| 4 |
+
metadata:
|
| 5 |
+
mcp_server: finance_analytics_mcp_server
|
| 6 |
+
codex_plugin: dnb-finance-analytics
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
# Finance Analytics Jobs To Be Done
|
| 10 |
+
|
| 11 |
+
This skill routes D&B Finance Analytics requests to the partner-supplied workflow
|
| 12 |
+
references in `fa-skills/references/`.
|
| 13 |
+
|
| 14 |
+
## Tool Source
|
| 15 |
+
|
| 16 |
+
Use the D&B Finance Analytics MCP server only. Do not substitute Morningstar,
|
| 17 |
+
Moody's, generic web search, local files, or another MCP server for Finance
|
| 18 |
+
Analytics data.
|
| 19 |
+
|
| 20 |
+
Before making a tool call, confirm the Finance Analytics MCP tools are available.
|
| 21 |
+
If they are not visible, tell the user the D&B Finance Analytics connection is not
|
| 22 |
+
available and stop rather than fabricating data.
|
| 23 |
+
|
| 24 |
+
Expected Finance Analytics tools include:
|
| 25 |
+
|
| 26 |
+
- `fa_search_tool`
|
| 27 |
+
- `query_portfolio`
|
| 28 |
+
- `get_company_report`
|
| 29 |
+
- `get_live_report`
|
| 30 |
+
- `account_decisioning_tool`
|
| 31 |
+
- `application_decisioning_tool`
|
| 32 |
+
- `manage_folder`
|
| 33 |
+
- `get_company_ownership_tree`
|
| 34 |
+
- `query_alerts`
|
| 35 |
+
- `get_portfolio_status`
|
| 36 |
+
- `get_portfolio_public_records`
|
| 37 |
+
- `get_companies_and_accounts_count`
|
| 38 |
+
- `get_dashboard_overview`
|
| 39 |
+
- `get_risk_distribution`
|
| 40 |
+
- `get_dashboard_status`
|
| 41 |
+
|
| 42 |
+
Tool names may be exposed with a Codex namespace such as
|
| 43 |
+
`mcp__finance_analytics_mcp_server__query_portfolio`; use the namespaced form when
|
| 44 |
+
available.
|
| 45 |
+
|
| 46 |
+
## Route The Request
|
| 47 |
+
|
| 48 |
+
Load exactly one workflow reference based on the user's intent:
|
| 49 |
+
|
| 50 |
+
| Intent signals | Load this reference |
|
| 51 |
+
| --- | --- |
|
| 52 |
+
| onboard, new customer, new account, add to portfolio, can I do business with | `fa-skills/references/fa-onboarding-workflow.md` |
|
| 53 |
+
| credit decisioning, company overview for credit, financial profile, company report | `fa-skills/references/fa-credit-decisioning.md` |
|
| 54 |
+
| approve credit, credit limit, increase credit, validate credit, extend credit | `fa-skills/references/fa-credit-validation.md` |
|
| 55 |
+
| portfolio risk, top risky companies, portfolio overview, risk distribution, risky accounts | `fa-skills/references/fa-portfolio-management.md` |
|
| 56 |
+
| alerts, unread alerts, new alerts, alert severity, alerts for a company | `fa-skills/references/fa-alerts-monitoring.md` |
|
| 57 |
+
|
| 58 |
+
If the user's intent is ambiguous, ask one clarifying question before calling tools.
|
| 59 |
+
|
| 60 |
+
The partner bundle did not include dedicated persona files or an aging-forecast
|
| 61 |
+
workflow file. For persona-specific language, load `fa-skills/references/fa-plain-language.md`.
|
| 62 |
+
For aging forecast requests, explain that no aging-forecast workflow was supplied in
|
| 63 |
+
this skill bundle and ask whether the user wants to proceed with available portfolio
|
| 64 |
+
or report workflows instead.
|
| 65 |
+
|
| 66 |
+
## Output Layer
|
| 67 |
+
|
| 68 |
+
Before producing user-facing output, load:
|
| 69 |
+
|
| 70 |
+
- `fa-skills/references/fa-plain-language.md`
|
| 71 |
+
|
| 72 |
+
Use it for tone, numeric presentation, status summaries, and suppression of internal
|
| 73 |
+
tool or entity identifiers.
|
| 74 |
+
|
| 75 |
+
## Required Behavior
|
| 76 |
+
|
| 77 |
+
- Never fabricate or fill gaps with assumed D&B data.
|
| 78 |
+
- Retry a failed or unexpectedly empty Finance Analytics tool call once with the
|
| 79 |
+
same parameters.
|
| 80 |
+
- If a tool still fails, document what was attempted, what was missing, and how the
|
| 81 |
+
gap affects the result.
|
| 82 |
+
- Favor precision over recall when resolving companies or making risk assessments.
|
| 83 |
+
- Never make a binding credit approval or decline; frame credit outputs as suggested
|
| 84 |
+
decisions based on available data.
|
| 85 |
+
- Include an audit trail when the selected workflow requires one.
|
| 86 |
+
- Do not pause mid-pipeline unless a blocking ambiguity must be resolved before a
|
| 87 |
+
critical decision.
|
| 88 |
+
|
| 89 |
+
## Workflow
|
| 90 |
+
|
| 91 |
+
1. Identify the user intent.
|
| 92 |
+
2. Load `fa-plain-language.md`.
|
| 93 |
+
3. Load the matching workflow reference.
|
| 94 |
+
4. Follow that reference's tool order and output structure.
|
| 95 |
+
5. Cite the D&B Finance Analytics app as the data source when returning substantive
|
| 96 |
+
credit, portfolio, report, ownership, or alert results.
|
data/.codex/.codex/.tmp/plugins/plugins/dnb-finance-analytics/skills/fa-jobs-to-be-done/agents/openai.yaml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "D&B Finance Analytics"
|
| 3 |
+
short_description: "Credit origination and portfolio management with D&B Finance Analytics."
|
| 4 |
+
icon_small: "./assets/icon-small.png"
|
| 5 |
+
icon_large: "./assets/icon-large.png"
|
| 6 |
+
brand_color: "#3B82F6"
|
| 7 |
+
default_prompt: "Use $fa-jobs-to-be-done to review a company's credit profile with D&B Finance Analytics."
|
| 8 |
+
policy:
|
| 9 |
+
allow_implicit_invocation: true
|
data/.codex/.codex/.tmp/plugins/plugins/dnb-finance-analytics/skills/fa-jobs-to-be-done/fa-skills/references/fa-alerts-monitoring.md
ADDED
|
@@ -0,0 +1,203 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# FA Alerts Monitoring - Sub-flow Reference
|
| 2 |
+
|
| 3 |
+
**Tools used:** `query_alerts`
|
| 4 |
+
|
| 5 |
+
This file defines the Alerts Monitoring workflow. It is loaded by the master `SKILL.md`
|
| 6 |
+
when user intent resolves to viewing, filtering, or triaging FA system alerts.
|
| 7 |
+
|
| 8 |
+
**Core question answered by this workflow:**
|
| 9 |
+
|
| 10 |
+
> "What alerts do I have - and which ones need my attention right now?"
|
| 11 |
+
|
| 12 |
+
FA system alerts notify credit teams of changes, risk events, and required actions related
|
| 13 |
+
to portfolio companies. This workflow helps users find, filter, and act on alerts quickly.
|
| 14 |
+
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
## Pipeline Overview
|
| 18 |
+
|
| 19 |
+
```
|
| 20 |
+
Stage 1: Retrieve and Filter Alerts
|
| 21 |
+
- Stage 2: Triage and Prioritise
|
| 22 |
+
- Stage 3: Summarise and Recommend Actions
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
---
|
| 26 |
+
|
| 27 |
+
## Trigger Examples
|
| 28 |
+
|
| 29 |
+
- "Show me my alerts."
|
| 30 |
+
- "What unread alerts do I have?"
|
| 31 |
+
- "Show me all high-severity alerts."
|
| 32 |
+
- "Are there any alerts for Company X?"
|
| 33 |
+
- "What new alerts came in today?"
|
| 34 |
+
- "Show me all open alerts."
|
| 35 |
+
- "Which alerts need my immediate attention?"
|
| 36 |
+
|
| 37 |
+
---
|
| 38 |
+
|
| 39 |
+
## Stage 1 - Retrieve and Filter Alerts
|
| 40 |
+
|
| 41 |
+
**Purpose:** Call `query_alerts` with the appropriate filters to retrieve the relevant
|
| 42 |
+
alert set for the user's query.
|
| 43 |
+
|
| 44 |
+
**Tool call sequence:**
|
| 45 |
+
|
| 46 |
+
1. Determine the appropriate filter parameters based on the user's request:
|
| 47 |
+
|
| 48 |
+
| User request | Filter to apply |
|
| 49 |
+
|---|---|
|
| 50 |
+
| "My alerts" / "All alerts" | No filter - retrieve all alerts |
|
| 51 |
+
| "Unread alerts" | `read_status = unread` |
|
| 52 |
+
| "New alerts" | `read_status = unread`, optionally filter by recent date |
|
| 53 |
+
| "Alerts for Company X" | `company_name = X` or `duns = <DUNS>` |
|
| 54 |
+
| "High severity alerts" | `severity = high` |
|
| 55 |
+
| "High and medium severity" | `severity IN (high, medium)` |
|
| 56 |
+
| "Alerts by type" | `alert_type = <type>` |
|
| 57 |
+
| Count only | Include count aggregation parameter |
|
| 58 |
+
|
| 59 |
+
2. Call `query_alerts` with the resolved filter parameters.
|
| 60 |
+
- If the user specified a company name but not a DUNS: resolve the DUNS first via
|
| 61 |
+
`fa_search_tool` or `query_portfolio` before filtering alerts by company.
|
| 62 |
+
- Request the following fields per alert: company name, DUNS, alert type, severity,
|
| 63 |
+
alert date, read/unread status, alert description / message, any associated account
|
| 64 |
+
or entity reference.
|
| 65 |
+
- Apply sort: `severity` descending, then `alert_date` descending (most recent first).
|
| 66 |
+
|
| 67 |
+
3. If the result set is large (e.g. > 50 alerts): summarise by severity and type first,
|
| 68 |
+
then present the top N highest-severity or most recent unread alerts in detail. Ask
|
| 69 |
+
the user if they want to see more.
|
| 70 |
+
|
| 71 |
+
**Required outputs:**
|
| 72 |
+
|
| 73 |
+
- Total alert count matching the filter
|
| 74 |
+
- Count breakdown by severity (High / Medium / Low)
|
| 75 |
+
- Count breakdown by read status (Unread / Read)
|
| 76 |
+
- Alert list with: company name, alert type, severity, date, read status, brief description
|
| 77 |
+
|
| 78 |
+
**Failure condition:** If `query_alerts` returns an error or empty result:
|
| 79 |
+
1. Retry once with the same parameters.
|
| 80 |
+
2. If still failing: document the failure and advise the user that alerts could not be
|
| 81 |
+
retrieved. Do not simulate alert data.
|
| 82 |
+
|
| 83 |
+
---
|
| 84 |
+
|
| 85 |
+
## Stage 2 - Triage and Prioritise
|
| 86 |
+
|
| 87 |
+
**Purpose:** Organise the returned alerts into a prioritised view so the user can act
|
| 88 |
+
on the most important items first.
|
| 89 |
+
|
| 90 |
+
**Triage logic:**
|
| 91 |
+
|
| 92 |
+
| Priority tier | Criteria | Action signal |
|
| 93 |
+
|---|---|---|
|
| 94 |
+
| Immediate action | High severity + Unread + Recent (within 24 hours) | Flag as "Requires immediate attention" |
|
| 95 |
+
| Review today | High severity + Unread (any date) OR Medium severity + Unread + Recent | Flag as "Review today" |
|
| 96 |
+
| Monitor | Medium severity + Read OR any Low severity | Flag as "Monitor - no immediate action" |
|
| 97 |
+
| Informational | Low severity + Read | Summarise only; do not surface in detail unless asked |
|
| 98 |
+
|
| 99 |
+
**Apply triage to the retrieved alert set:**
|
| 100 |
+
|
| 101 |
+
1. Group alerts by priority tier.
|
| 102 |
+
2. Within each tier, sort by alert date descending.
|
| 103 |
+
3. For "Immediate action" and "Review today" alerts: show full detail (company name,
|
| 104 |
+
alert type, severity, date, description).
|
| 105 |
+
4. For "Monitor" and "Informational" alerts: show a summary count and brief description
|
| 106 |
+
only, unless the user requests detail.
|
| 107 |
+
|
| 108 |
+
**Required outputs:**
|
| 109 |
+
|
| 110 |
+
- Tiered alert list with priority tier labels
|
| 111 |
+
- Immediate action alerts presented in full detail
|
| 112 |
+
- Review today alerts presented in full detail
|
| 113 |
+
- Monitor / Informational alerts presented as a count summary
|
| 114 |
+
|
| 115 |
+
**Narrative:** State how many alerts require immediate attention, how many are for review
|
| 116 |
+
today, and how many are informational. Be specific about which companies and alert types
|
| 117 |
+
are at the top of the list.
|
| 118 |
+
|
| 119 |
+
---
|
| 120 |
+
|
| 121 |
+
## Stage 3 - Summarise and Recommend Actions
|
| 122 |
+
|
| 123 |
+
**Purpose:** Translate the alert triage into a clear action plan for the credit team.
|
| 124 |
+
|
| 125 |
+
**Output format:**
|
| 126 |
+
|
| 127 |
+
1. **Alert summary header:**
|
| 128 |
+
- Total alerts retrieved
|
| 129 |
+
- Unread count
|
| 130 |
+
- Breakdown by severity
|
| 131 |
+
|
| 132 |
+
2. **Immediate action items:**
|
| 133 |
+
For each "Immediate action" alert:
|
| 134 |
+
- Company name, DUNS
|
| 135 |
+
- Alert type and brief description
|
| 136 |
+
- Why it requires immediate attention
|
| 137 |
+
- Recommended action
|
| 138 |
+
|
| 139 |
+
3. **Review today items:**
|
| 140 |
+
For each "Review today" alert:
|
| 141 |
+
- Company name, DUNS
|
| 142 |
+
- Alert type and brief description
|
| 143 |
+
- Recommended action
|
| 144 |
+
|
| 145 |
+
4. **Monitor items:**
|
| 146 |
+
- Summary count only (e.g. "12 low-severity alerts are being monitored - no action
|
| 147 |
+
required at this time.")
|
| 148 |
+
|
| 149 |
+
5. **Recommended actions by alert type:**
|
| 150 |
+
|
| 151 |
+
| Alert type | Recommended action |
|
| 152 |
+
|---|---|
|
| 153 |
+
| Bankruptcy / insolvency | Escalate immediately to credit committee; freeze further credit exposure |
|
| 154 |
+
| Payment delinquency | Initiate collections contact; review credit limit |
|
| 155 |
+
| Credit limit breach | Review credit terms; reduce limit or require immediate payment |
|
| 156 |
+
| Risk score deterioration | Pull updated company report; consider credit review |
|
| 157 |
+
| Legal filing (suit, lien, judgment) | Notify credit manager; assess impact on collectability |
|
| 158 |
+
| Ownership change | Review implications for credit policy; verify new ownership |
|
| 159 |
+
| Business closure / dissolution | Escalate immediately; assess exposure and collection options |
|
| 160 |
+
|
| 161 |
+
**Required outputs:**
|
| 162 |
+
|
| 163 |
+
- Alert summary (total, unread, by severity)
|
| 164 |
+
- Immediate action items with recommended actions
|
| 165 |
+
- Review today items with recommended actions
|
| 166 |
+
- Monitor summary count
|
| 167 |
+
- Full audit trail
|
| 168 |
+
|
| 169 |
+
**Narrative:** Lead with the most urgent items. Be direct about what needs attention and
|
| 170 |
+
what action to take. Close with a clear summary of what is being monitored.
|
| 171 |
+
|
| 172 |
+
---
|
| 173 |
+
|
| 174 |
+
## Handoff Contracts
|
| 175 |
+
|
| 176 |
+
| Handoff | Payload |
|
| 177 |
+
|---|---|
|
| 178 |
+
| Stage 1 - Stage 2 | Full alert list with fields: company, DUNS, alert type, severity, date, read status, description |
|
| 179 |
+
| Stage 2 - Stage 3 | Tiered alert list (Immediate / Review today / Monitor / Informational) with priority labels |
|
| 180 |
+
| Stage 3 - Output | Alert summary, action items by tier, recommended actions by type, audit trail |
|
| 181 |
+
|
| 182 |
+
---
|
| 183 |
+
|
| 184 |
+
## Known Tool Integration Notes
|
| 185 |
+
|
| 186 |
+
| Tool | Issue | Handling |
|
| 187 |
+
|---|---|---|
|
| 188 |
+
| `query_alerts` | Supports filtering by company, alert type, severity, and read status | Always specify filters based on user intent to avoid over-fetching large alert sets |
|
| 189 |
+
| `query_alerts` | May return a large result set for broad queries | Summarise by severity and type first; present detail for high-priority alerts only |
|
| 190 |
+
| `query_alerts` | Company name filter may require DUNS for precision | Resolve DUNS via `fa_search_tool` or `query_portfolio` when the user specifies a company by name |
|
| 191 |
+
|
| 192 |
+
---
|
| 193 |
+
|
| 194 |
+
## Behavioural Requirements (Alerts - specific)
|
| 195 |
+
|
| 196 |
+
- Always lead with the highest-severity, unread, most recent alerts.
|
| 197 |
+
- Never mark alerts as read without the user's explicit instruction to do so.
|
| 198 |
+
- If the user asks for alerts for a specific company: resolve the company to a DUNS first
|
| 199 |
+
before filtering - company name matching in `query_alerts` may be imprecise.
|
| 200 |
+
- For very large alert sets (> 100 alerts): do not dump the full list. Summarise and ask
|
| 201 |
+
the user which tier or type they want to explore.
|
| 202 |
+
- Always include the complete audit trail at the bottom of the output.
|
| 203 |
+
|
data/.codex/.codex/.tmp/plugins/plugins/dnb-finance-analytics/skills/fa-jobs-to-be-done/fa-skills/references/fa-credit-decisioning.md
ADDED
|
@@ -0,0 +1,305 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# FA Credit Decisioning - Sub-flow Reference
|
| 2 |
+
|
| 3 |
+
**Tools used:** `fa_search_tool`, `query_portfolio`, `get_company_report`
|
| 4 |
+
|
| 5 |
+
This file defines the Credit Decisioning workflow. It is loaded by the master
|
| 6 |
+
`SKILL.md` when user intent resolves to a credit decisioning request or a
|
| 7 |
+
company overview to support a credit decision.
|
| 8 |
+
|
| 9 |
+
**Core question answered by this workflow:**
|
| 10 |
+
|
| 11 |
+
> "Give me a full picture of [Company X] so I can make an informed credit decision."
|
| 12 |
+
|
| 13 |
+
Use this workflow for broad, report-driven credit decisioning. Do not use it for
|
| 14 |
+
focused point questions (those call only the relevant tool directly) or for credit limit
|
| 15 |
+
validation requests (use `fa-credit-validation.md` instead).
|
| 16 |
+
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
## Pipeline Overview
|
| 20 |
+
|
| 21 |
+
```
|
| 22 |
+
Stage 1: Resolve Company
|
| 23 |
+
-> Stage 2: Retrieve Report Data
|
| 24 |
+
-> Stage 3: Produce Credit Decisioning Report
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
---
|
| 28 |
+
|
| 29 |
+
## Trigger Examples
|
| 30 |
+
|
| 31 |
+
- "Provide an overview of Company Z to help me make a credit decision."
|
| 32 |
+
- "Provide an overview of Company Z, focusing on recent financials, negative legal events,
|
| 33 |
+
and credit profile."
|
| 34 |
+
- "Run a credit decisioning for Company Z."
|
| 35 |
+
- "Generate the credit decisioning report for company X."
|
| 36 |
+
- Any question asking for a general company assessment that is NOT a portfolio question,
|
| 37 |
+
NOT a focused credit limit validation, and NOT a narrow single-metric query.
|
| 38 |
+
|
| 39 |
+
---
|
| 40 |
+
|
| 41 |
+
## Stage 1 - Resolve Company
|
| 42 |
+
|
| 43 |
+
**Purpose:** Identify the correct company and obtain its DUNS number.
|
| 44 |
+
|
| 45 |
+
**Tool call sequence:**
|
| 46 |
+
|
| 47 |
+
1. If the user provided a DUNS directly: use it. Skip `fa_search_tool`.
|
| 48 |
+
2. If the user provided only a company name: call `fa_search_tool` with name and country.
|
| 49 |
+
- If exactly one high-confidence match: proceed with that DUNS.
|
| 50 |
+
- If multiple matches: show a short table (name, country, DUNS) and ask the user to
|
| 51 |
+
select the correct company or provide the DUNS directly.
|
| 52 |
+
- If no match: report that no record was found and ask the user to verify the name.
|
| 53 |
+
|
| 54 |
+
**Required outputs:** Confirmed company name, DUNS, country.
|
| 55 |
+
|
| 56 |
+
**Failure condition:** Do not proceed without a resolved DUNS.
|
| 57 |
+
|
| 58 |
+
---
|
| 59 |
+
|
| 60 |
+
## Stage 2 - Retrieve Report Data
|
| 61 |
+
|
| 62 |
+
**Purpose:** Pull the full D&B company report to populate the Credit Decisioning Report
|
| 63 |
+
template. Use portfolio data to supplement where available.
|
| 64 |
+
|
| 65 |
+
**Tool call sequence:**
|
| 66 |
+
|
| 67 |
+
1. Call `get_company_report` with the resolved DUNS.
|
| 68 |
+
- Set `continue_report_pull` to `false` unless the user explicitly answered "yes" to
|
| 69 |
+
a previous prompt about report retrieval. Do NOT carry this parameter over from
|
| 70 |
+
earlier tool calls - each request requires a fresh evaluation.
|
| 71 |
+
- Extract all fields listed in the Data Extraction Guide below.
|
| 72 |
+
2. Call `query_portfolio` with the resolved DUNS to retrieve any current portfolio
|
| 73 |
+
account data (outstanding, past due, credit limit utilisation, account type).
|
| 74 |
+
- Portfolio data supplements the report but does not override it for risk scores.
|
| 75 |
+
- If the company is not in the portfolio, note this in the report.
|
| 76 |
+
|
| 77 |
+
**Data Extraction Guide - fields to extract from `get_company_report`:**
|
| 78 |
+
|
| 79 |
+
| Section | Field path |
|
| 80 |
+
|---|---|
|
| 81 |
+
| Company Name | `header.companyName` |
|
| 82 |
+
| DUNS | `header.duns` |
|
| 83 |
+
| Tradestyles | `header.tradestyles` |
|
| 84 |
+
| Business Status | `header.businessStatus` |
|
| 85 |
+
| Address | `header.address` (address1, city, stateCode, postalCode, country) |
|
| 86 |
+
| Phone | `header.phone` |
|
| 87 |
+
| Report Date | `header.reportDate` |
|
| 88 |
+
| PAYDEX Score | `scoring.paydex.score`, `.paymentBehavior`, `.days` |
|
| 89 |
+
| PAYDEX History | `scoring.paydex.history` |
|
| 90 |
+
| Delinquency Score | `scoring.delinquencyScore.score`, `.probability`, `.scoreCommentaryText` |
|
| 91 |
+
| Failure Score | `scoring.failureScore.score`, `.probability`, `.scoreCommentaryText` |
|
| 92 |
+
| D&B Rating | `scoring.currentDnbRating.score`, `.assignedRiskIndicatorMessageKey` |
|
| 93 |
+
| Viability Score | `scoring.viabilityScore.score`, `.viabRiskLevel`, `.portfolioRiskLevel` |
|
| 94 |
+
| Max Credit Recommendation | `scoring.maxCredit.amount`, `.currency`, `.riskLevel` |
|
| 95 |
+
| Overall Business Risk | `scoring.riskAssessment.overallAssessmentTextKey`, `.summaryRiskLevel` |
|
| 96 |
+
| Active/Bankruptcy Status | `scoring.activeStatus` |
|
| 97 |
+
| Annual Sales | `financialSummary.profitLoss.data.sales.current.value` |
|
| 98 |
+
| Net Worth | `financialSummary.balanceSheet.data.netWorth.current.value` |
|
| 99 |
+
| Total Assets | `financialSummary.balanceSheet.data.totalAsset.current.value` |
|
| 100 |
+
| Total Liabilities | `financialSummary.balanceSheet.data.totalLiabilities.current.value` |
|
| 101 |
+
| Current Assets | `financialSummary.balanceSheet.data.currentAsset.current.value` |
|
| 102 |
+
| Current Liabilities | `financialSummary.balanceSheet.data.currentLiabilities.current.value` |
|
| 103 |
+
| Pre-Tax Profit | `financialSummary.profitLoss.data.ebit.current.value` |
|
| 104 |
+
| Net Income | `financialSummary.profitLoss.data.netIncome.current.value` |
|
| 105 |
+
| Financial Source/Date | `financialSummary.source`, `.dateMonthYear` |
|
| 106 |
+
| Suits | `legalEvents.suitCount`, `.suitDate` |
|
| 107 |
+
| UCC Filings | `legalEvents.financingStatementFilingCount`, `.financingStatementFilingDate` |
|
| 108 |
+
| Judgments | `legalEvents.judgementCount`, `.judgementDate` |
|
| 109 |
+
| Liens | `legalEvents.lienCount`, `.lienDate` |
|
| 110 |
+
| Trade Payments | `tradePayments` object - avg high credit, now owing, past due, total experiences, trade within terms |
|
| 111 |
+
| Location Type | `ownership.locationType` |
|
| 112 |
+
| Member/Sub/Branch Count | `ownership.memberCount`, `.subsidiaryCount`, `.branchCount` |
|
| 113 |
+
| Named Principal | `companyProfile.namedPrincipal` |
|
| 114 |
+
| Control Ownership Date | `companyProfile.controlOwnershipDate` |
|
| 115 |
+
| Domestic/Global Ultimate | `ownership.ancestorInfos` |
|
| 116 |
+
| Employee Count | `keyDataElements.employees.minimumQuantity` |
|
| 117 |
+
| Business Start Year | `keyDataElements.businessStartYear`, `.ageofBusiness` |
|
| 118 |
+
| SIC/NAICS | `companyProfile.sicCode`, `.naicsCode` |
|
| 119 |
+
| Industry Description | `companyProfile.primaryIndustryCodeDescription` |
|
| 120 |
+
|
| 121 |
+
For any field not available in the tool output: use `Not available via tools`.
|
| 122 |
+
For news and funding events: `get_company_report` does not provide these natively - mark as
|
| 123 |
+
`Not available via tools` unless a separate tool call is made.
|
| 124 |
+
|
| 125 |
+
**Failure condition:** If `get_company_report` fails after one retry, document the gap and
|
| 126 |
+
produce a constrained report using any portfolio data available from `query_portfolio`.
|
| 127 |
+
Clearly label the report as constrained due to data unavailability.
|
| 128 |
+
|
| 129 |
+
---
|
| 130 |
+
|
| 131 |
+
## Stage 3 - Produce Credit Decisioning Report
|
| 132 |
+
|
| 133 |
+
**Purpose:** Populate and output the Credit Decisioning Report template using all data
|
| 134 |
+
retrieved in Stage 2. The template structure must be respected exactly.
|
| 135 |
+
|
| 136 |
+
**Formatting rules:**
|
| 137 |
+
|
| 138 |
+
- Use ATX headings only (`#`, `##`, `###`). No bolded pseudo-headings.
|
| 139 |
+
- Put a blank line after each heading and before/after every list or table.
|
| 140 |
+
- Do not start a list on the same line as a colon; move lists to the next line.
|
| 141 |
+
- Keep lists single level unless hierarchy requires nesting.
|
| 142 |
+
- Output `$` as `\$` to avoid encoding issues.
|
| 143 |
+
|
| 144 |
+
---
|
| 145 |
+
|
| 146 |
+
## Credit Decisioning Report Template
|
| 147 |
+
|
| 148 |
+
### Subject
|
| 149 |
+
|
| 150 |
+
`<Company Name> (DUNS: <#########>)`
|
| 151 |
+
|
| 152 |
+
### Executive Summary
|
| 153 |
+
|
| 154 |
+
Directly provide conclusions and answer to the initial question. State the overall risk
|
| 155 |
+
level, maximum credit recommendation, and any significant flags in 2-3 sentences.
|
| 156 |
+
|
| 157 |
+
### Risk Snapshot
|
| 158 |
+
|
| 159 |
+
- Overall Business Risk: `<overall_risk_level from scoring.riskAssessment>`
|
| 160 |
+
- Probability of Severe Delinquency (12 months): `<probability from scoring.delinquencyScore>`%
|
| 161 |
+
- Industry Comparison: `<Not available via tools or use relevant benchmark if available>`
|
| 162 |
+
|
| 163 |
+
**Source:** `get_company_report`
|
| 164 |
+
|
| 165 |
+
### Key Drivers of Credit Assessment
|
| 166 |
+
|
| 167 |
+
- Risk Drivers: `<items from risk model, if available>`
|
| 168 |
+
- Payment Drivers: `<items from payment behavior, if available>`
|
| 169 |
+
|
| 170 |
+
**Sources:** `get_company_report`
|
| 171 |
+
|
| 172 |
+
### Company Profile
|
| 173 |
+
|
| 174 |
+
- In Business Since: `<YYYY or duration>`
|
| 175 |
+
- Foreign Exposure: `<Yes/No/Unknown or Not available via tools>`
|
| 176 |
+
- Financials (Latest Summary):
|
| 177 |
+
- Tangible Net Worth
|
| 178 |
+
- Current Assets
|
| 179 |
+
- Total Fixed Assets
|
| 180 |
+
- Total Current Liabilities
|
| 181 |
+
- Long Term Liabilities
|
| 182 |
+
- Net Current Assets (Liabilities)
|
| 183 |
+
- Sales/Revenue
|
| 184 |
+
- Pre-Tax Profit
|
| 185 |
+
- Net Profit
|
| 186 |
+
|
| 187 |
+
**Source:** `get_company_report`
|
| 188 |
+
|
| 189 |
+
### Corporate Structure
|
| 190 |
+
|
| 191 |
+
- Domestic Ultimate: `<Name - Country - DUNS or Not available via tools>`
|
| 192 |
+
- Global Ultimate: `<Name - Country - DUNS from ownership.ancestorInfos if available, else Not available>`
|
| 193 |
+
- Notes on Structure: `<concise summary or Not available via tools>`
|
| 194 |
+
|
| 195 |
+
**Source:** `get_company_report` (limited information may be available)
|
| 196 |
+
|
| 197 |
+
### Funding and Material Events
|
| 198 |
+
|
| 199 |
+
- Funding Events: `<Not available via tools unless fetched separately>`
|
| 200 |
+
- Derogatory Legal Events: `<Summary of suits, liens, judgments from legalEvents>`
|
| 201 |
+
- Ownership or Other Material Changes (Last Month): `<items or Not available via tools>`
|
| 202 |
+
- Significant Events: `<items indicating negative developments; otherwise Not available via tools>`
|
| 203 |
+
|
| 204 |
+
**Source:** `get_company_report`
|
| 205 |
+
|
| 206 |
+
### News with Potentially Negative Impact
|
| 207 |
+
|
| 208 |
+
From collected articles, identify only those that may indicate a negative credit impact.
|
| 209 |
+
Relevant signals include:
|
| 210 |
+
|
| 211 |
+
- Weak financial results, margin deterioration, or negative guidance
|
| 212 |
+
- Rising leverage, liquidity constraints, refinancing pressure, or debt-related issues
|
| 213 |
+
- Governance concerns (leadership exits, investigations, accounting issues)
|
| 214 |
+
- Regulatory, legal, or credit decisioning risks
|
| 215 |
+
- Operational disruptions (supply chain issues, cyber incidents, accidents)
|
| 216 |
+
- Sector or macro headwinds that materially affect the company
|
| 217 |
+
|
| 218 |
+
Exclude all articles that are neutral, irrelevant, or positive unless they contain embedded
|
| 219 |
+
credit-negative implications.
|
| 220 |
+
|
| 221 |
+
**Output format - Summary:**
|
| 222 |
+
|
| 223 |
+
Output the label `Summary:` exactly.
|
| 224 |
+
|
| 225 |
+
- If one or more negatively relevant items are found: provide exactly one concise sentence
|
| 226 |
+
summarising key credit-negative themes. Group related topics into meaningful categories
|
| 227 |
+
(e.g., liquidity pressure, governance instability, regulatory risk). Do not include article
|
| 228 |
+
numbers or references in the summary.
|
| 229 |
+
- If no negatively relevant items are found: output exactly `Summary: No negatively impacting
|
| 230 |
+
news found.` Do not generate the article list in this case.
|
| 231 |
+
|
| 232 |
+
**Output format - Relevant Articles** (only if negatively relevant items exist):
|
| 233 |
+
|
| 234 |
+
Output the label `Relevant Articles:` exactly. Number items sequentially starting from 1
|
| 235 |
+
(restart numbering in this section). For each article: provide a short title or one-sentence
|
| 236 |
+
overview, one sentence on the credit-relevant negative implication, and the article link.
|
| 237 |
+
|
| 238 |
+
**Source:** `get_company_report`
|
| 239 |
+
|
| 240 |
+
### Payment Behavior
|
| 241 |
+
|
| 242 |
+
- Average Days Beyond Terms (DBT): `<value from scoring.paydex.days>`
|
| 243 |
+
- Trend: `<Derived from scoring.paydex.history>`
|
| 244 |
+
- Comparison to Industry: `<Not available via tools or use relevant benchmark>`
|
| 245 |
+
|
| 246 |
+
**Source:** `get_company_report` (using `paydex`, `trade_payment_indicators`)
|
| 247 |
+
|
| 248 |
+
### Detailed Risk Metrics
|
| 249 |
+
|
| 250 |
+
For Failure Score, Delinquency Score, and PAYDEX:
|
| 251 |
+
|
| 252 |
+
- State the score as a percentile without `%` and without the word `percentile`
|
| 253 |
+
- Always include the probability value
|
| 254 |
+
- Always include the risk class and risk band
|
| 255 |
+
|
| 256 |
+
**Sources:** `get_company_report`
|
| 257 |
+
|
| 258 |
+
### Detailed Financials
|
| 259 |
+
|
| 260 |
+
Present the same financial fields as in Company Profile. By default, present the latest
|
| 261 |
+
available financial snapshot. If historical data is available from `get_company_report`,
|
| 262 |
+
present it as a table with one metric per row and each available year as a column. Note
|
| 263 |
+
that more historical data may be available on explicit request.
|
| 264 |
+
|
| 265 |
+
**Source:** `get_company_report`
|
| 266 |
+
|
| 267 |
+
### Notes and Exceptions
|
| 268 |
+
|
| 269 |
+
`<Data caveats, entitlement limits, missing fields, calculation notes>`
|
| 270 |
+
|
| 271 |
+
---
|
| 272 |
+
|
| 273 |
+
## Handoff Contracts
|
| 274 |
+
|
| 275 |
+
| Handoff | Payload |
|
| 276 |
+
|---|---|
|
| 277 |
+
| Stage 1 -> Stage 2 | Confirmed company name, DUNS, country |
|
| 278 |
+
| Stage 2 -> Stage 3 | Full `get_company_report` output, supplementary `query_portfolio` data, identified data gaps |
|
| 279 |
+
| Stage 3 -> Output | Completed Credit Decisioning Report, audit trail |
|
| 280 |
+
|
| 281 |
+
---
|
| 282 |
+
|
| 283 |
+
## Known Tool Integration Notes
|
| 284 |
+
|
| 285 |
+
| Tool | Issue | Handling |
|
| 286 |
+
|---|---|---|
|
| 287 |
+
| `get_company_report` | `continue_report_pull` must be `false` unless user has explicitly approved the report pull for this request | Never carry `continue_report_pull=true` over from prior conversation turns |
|
| 288 |
+
| `get_company_report` | Does not natively provide news or funding events | Mark as `Not available via tools`; do not fabricate |
|
| 289 |
+
| `query_portfolio` | A company may have multiple accounts per DUNS | Retrieve all accounts; summarise outstanding and past due at DUNS level |
|
| 290 |
+
| `fa_search_tool` | May return multiple candidates | Present a selection table; do not auto-select when ambiguous |
|
| 291 |
+
|
| 292 |
+
---
|
| 293 |
+
|
| 294 |
+
## Behavioural Requirements (Credit Decisioning - specific)
|
| 295 |
+
|
| 296 |
+
- Never make a binding credit approval or decline. The report is an informational credit
|
| 297 |
+
assessment - final credit decisions must go through `fa-credit-validation.md` or the
|
| 298 |
+
decisioning tools.
|
| 299 |
+
- Do not skip any template section. Use `Not available via tools` or `Not applicable` for
|
| 300 |
+
missing data - never leave a section empty.
|
| 301 |
+
- Prefer `get_company_report` data over `query_portfolio` data for risk scores and financial
|
| 302 |
+
data. Portfolio data supplements the report; it does not replace it.
|
| 303 |
+
- Always include the complete audit trail at the bottom of the output.
|
| 304 |
+
|
| 305 |
+
|
data/.codex/.codex/.tmp/plugins/plugins/dnb-finance-analytics/skills/fa-jobs-to-be-done/fa-skills/references/fa-credit-validation.md
ADDED
|
@@ -0,0 +1,286 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# FA Credit Limit Validation - Sub-flow Reference
|
| 2 |
+
|
| 3 |
+
**Tools used:** `fa_search_tool`, `query_portfolio`, `get_company_report`
|
| 4 |
+
|
| 5 |
+
This file defines the Credit Limit Validation workflow. It is loaded by the master
|
| 6 |
+
`SKILL.md` when user intent resolves to credit limit approval, increase, validation,
|
| 7 |
+
or a concise credit decision recommendation for a specific company.
|
| 8 |
+
|
| 9 |
+
**Core question answered by this workflow:**
|
| 10 |
+
|
| 11 |
+
> "Can I approve $X for [Company Y]?" or "Should I increase the credit limit for this customer?"
|
| 12 |
+
|
| 13 |
+
Use this workflow for concise, decision-focused credit limit assessments. Do not use it
|
| 14 |
+
for broad credit decisioning (use `fa-credit-decisioning.md`) or for creating new credit
|
| 15 |
+
applications (use the decisioning tools via `fa-onboarding-workflow.md`).
|
| 16 |
+
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
## Pipeline Overview
|
| 20 |
+
|
| 21 |
+
```
|
| 22 |
+
Stage 1: Resolve Company
|
| 23 |
+
-> Stage 2: Retrieve Portfolio and Report Data
|
| 24 |
+
-> Stage 3: Produce Credit Validation Response
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
---
|
| 28 |
+
|
| 29 |
+
## Trigger Examples
|
| 30 |
+
|
| 31 |
+
- "Can I approve a 50,000 credit limit for Company X?"
|
| 32 |
+
- "I am owed 100,000 by Company Y. Can I increase the credit limit to 200,000?"
|
| 33 |
+
- "Validate this customer for a credit increase."
|
| 34 |
+
- "Give me a concise credit decision view for Company Z."
|
| 35 |
+
- "Can X's credit limit be raised to 50K?"
|
| 36 |
+
- "Should I extend more credit to this account?"
|
| 37 |
+
|
| 38 |
+
---
|
| 39 |
+
|
| 40 |
+
## Stage 1 - Resolve Company
|
| 41 |
+
|
| 42 |
+
**Purpose:** Identify the correct company and obtain its DUNS number.
|
| 43 |
+
|
| 44 |
+
**Tool call sequence:**
|
| 45 |
+
|
| 46 |
+
1. If the user provided a DUNS directly: use it. Skip `fa_search_tool`.
|
| 47 |
+
2. If the user provided only a company name: call `fa_search_tool` with name and country.
|
| 48 |
+
- Identity resolution must use `fa_search_tool`, not `query_portfolio`.
|
| 49 |
+
- If exactly one high-confidence match: proceed.
|
| 50 |
+
- If multiple matches: show a short table (name, country, DUNS) and ask the user to
|
| 51 |
+
confirm the correct company or provide the DUNS directly.
|
| 52 |
+
- If no match: report that no record was found and ask the user to verify the name.
|
| 53 |
+
|
| 54 |
+
**Required outputs:** Confirmed company name, DUNS, country.
|
| 55 |
+
|
| 56 |
+
**Failure condition:** Do not proceed without a resolved DUNS.
|
| 57 |
+
|
| 58 |
+
---
|
| 59 |
+
|
| 60 |
+
## Stage 2 - Retrieve Portfolio and Report Data
|
| 61 |
+
|
| 62 |
+
**Purpose:** Gather the risk and financial data needed to perform the credit validation.
|
| 63 |
+
Portfolio data is the primary source; report data supplements missing fields only.
|
| 64 |
+
|
| 65 |
+
**Tool call sequence:**
|
| 66 |
+
|
| 67 |
+
1. Call `query_portfolio` with the resolved DUNS.
|
| 68 |
+
- Restrict lookup to `credit_file_type` = `ACCOUNT` or `DUNSRIGHT` unless the user
|
| 69 |
+
explicitly asks for another entity type.
|
| 70 |
+
- A single DUNS may have **multiple accounts** in the portfolio. Retrieve ALL accounts
|
| 71 |
+
associated with the DUNS. Never rely on a single account record for calculations.
|
| 72 |
+
- Extract: `overall_business_risk`, `max_credit_recommendation`, `paydex_current`,
|
| 73 |
+
`failure_score`, `delinquency_score`, `total_outstanding_dollars`,
|
| 74 |
+
`total_past_due_dollars`, `credit_limit_utilization`, `db_bankruptcy_present`,
|
| 75 |
+
trade payment indicators, legal event indicators, financial stress indicators.
|
| 76 |
+
- Calculate the **Aggregated Existing Outstanding Amount** by summing
|
| 77 |
+
`total_outstanding_dollars` across ALL accounts for the DUNS. Retain the
|
| 78 |
+
account-level split for inclusion in Supporting Factors.
|
| 79 |
+
- Calculate the **Aggregated Past Due Amount** by summing `total_past_due_dollars`
|
| 80 |
+
across ALL accounts. Retain the account-level split.
|
| 81 |
+
|
| 82 |
+
2. Compare the returned fields against the required validation fields listed above.
|
| 83 |
+
- If all required fields are present in the portfolio record: proceed to Stage 3
|
| 84 |
+
without calling `get_company_report`.
|
| 85 |
+
- If one or more required fields are missing from the portfolio record: call
|
| 86 |
+
`get_company_report` with the resolved DUNS and extract only the missing fields.
|
| 87 |
+
- **Portfolio values take precedence.** Never override a populated portfolio value
|
| 88 |
+
with `get_company_report` data.
|
| 89 |
+
|
| 90 |
+
3. If the company is not in the portfolio at all: call `get_company_report` with the
|
| 91 |
+
resolved DUNS for all validation data. Note in the output that the company is not
|
| 92 |
+
in the portfolio.
|
| 93 |
+
|
| 94 |
+
**Required outputs:**
|
| 95 |
+
|
| 96 |
+
- Overall Business Risk (OBR) label
|
| 97 |
+
- Maximum Credit Recommendation (MCR) amount and currency
|
| 98 |
+
- PAYDEX / payment reliability score
|
| 99 |
+
- Failure Score and delinquency score
|
| 100 |
+
- Aggregated Existing Outstanding Amount (with account-level split if multiple accounts)
|
| 101 |
+
- Aggregated Past Due Amount
|
| 102 |
+
- Credit limit utilisation
|
| 103 |
+
- Bankruptcy and legal event flags
|
| 104 |
+
- Data source for each field (portfolio or report)
|
| 105 |
+
|
| 106 |
+
**Failure condition:** If neither portfolio nor report data is available, say that the
|
| 107 |
+
company could not be resolved or that validation data is unavailable. Do not invent values.
|
| 108 |
+
|
| 109 |
+
---
|
| 110 |
+
|
| 111 |
+
## Stage 3 - Produce Credit Validation Response
|
| 112 |
+
|
| 113 |
+
**Purpose:** Produce a concise, decision-supporting credit validation output. The response
|
| 114 |
+
must be 10-15 lines total and follow the output template exactly.
|
| 115 |
+
|
| 116 |
+
**Analysis rules:**
|
| 117 |
+
|
| 118 |
+
- Use `overall_business_risk` (OBR) and `max_credit_recommendation` (MCR) as the primary
|
| 119 |
+
decision anchors.
|
| 120 |
+
- All validation calculations must be done at the DUNS level across ALL accounts.
|
| 121 |
+
- For credit extensions:
|
| 122 |
+
- `Total Exposure = Aggregated Existing Outstanding Amount + Requested Credit Amount`
|
| 123 |
+
- Validate Total Exposure against MCR, not only the requested credit amount.
|
| 124 |
+
- If Existing Outstanding Amount alone exceeds MCR: state this first before commenting
|
| 125 |
+
on the requested credit amount.
|
| 126 |
+
- If Existing Outstanding Amount is not available and the DUNS is in the portfolio:
|
| 127 |
+
compare only the requested credit amount and explicitly state that Total Exposure could not
|
| 128 |
+
be calculated.
|
| 129 |
+
- If DUNS is not in the portfolio (using only `get_company_report`): compare only the
|
| 130 |
+
requested credit amount against MCR. Do not mention Total Exposure.
|
| 131 |
+
- Never make a binding approval or decline. Frame the result as a suggested decision
|
| 132 |
+
based on current data.
|
| 133 |
+
- Do not create, run, suggest, or check an application workflow or automated decisioning
|
| 134 |
+
workflow unless the user explicitly asks for it.
|
| 135 |
+
|
| 136 |
+
**Response contract (strict):**
|
| 137 |
+
|
| 138 |
+
- Total length: 10-15 lines.
|
| 139 |
+
- Use exactly the sections in the Output Template below.
|
| 140 |
+
- Keep wording factual, short, and tool-grounded.
|
| 141 |
+
- Do not add background narrative, methodology sections, or full-report headings.
|
| 142 |
+
- All factual statements must be supported by explicit numbers (amounts, percentages,
|
| 143 |
+
dates, classes, bands).
|
| 144 |
+
- Do not reference internal data labels such as `DUNSRIGHT record`, `ACCOUNT record`,
|
| 145 |
+
`portfolio record`, or `report record` in user-facing output.
|
| 146 |
+
|
| 147 |
+
---
|
| 148 |
+
|
| 149 |
+
## Output Template
|
| 150 |
+
|
| 151 |
+
### Subject
|
| 152 |
+
|
| 153 |
+
#### `<Company Name> (DUNS: <#########>)`
|
| 154 |
+
|
| 155 |
+
### Executive Summary
|
| 156 |
+
|
| 157 |
+
Populate according to the applicable scenario below:
|
| 158 |
+
|
| 159 |
+
- **When credit limit available and Total Exposure can be calculated:**
|
| 160 |
+
`<Company Name>` is assessed with an Overall Business Risk (OBR) of `<OBR Label - always
|
| 161 |
+
append "risk" if not already present, e.g. Low risk, Low-Moderate risk, Moderate risk,
|
| 162 |
+
Moderate-High risk, High risk>` and a Maximum Credit Recommendation (MCR) of
|
| 163 |
+
`<MCR Amount Currency>`. Total Potential Exposure of `<Total Exposure Amount Currency>`
|
| 164 |
+
(Existing Outstanding Amount `<Existing Outstanding Amount Currency>` + Requested Credit
|
| 165 |
+
Amount `<Requested Amount Currency>`) is `<within/above>` the maximum recommended credit
|
| 166 |
+
limit of `<MCR Amount Currency>` by `<Delta Amount Currency>`. `<Summarise significant
|
| 167 |
+
legal events only if present - omit this sentence otherwise.>`
|
| 168 |
+
|
| 169 |
+
- **When Existing Outstanding Amount alone exceeds MCR:**
|
| 170 |
+
`<Company Name>` is assessed with an OBR of `<OBR Label>` and an MCR of `<MCR Amount
|
| 171 |
+
Currency>`. Existing Outstanding Amount of `<Amount Currency>` exceeds the MCR of
|
| 172 |
+
`<MCR Amount Currency>` by `<Delta Amount Currency>`; an additional Requested Credit
|
| 173 |
+
Amount of `<Requested Amount Currency>` is not recommended.
|
| 174 |
+
|
| 175 |
+
- **When Total Exposure cannot be calculated and DUNS is in portfolio:**
|
| 176 |
+
`<Company Name>` is assessed with an OBR of `<OBR Label>` and an MCR of `<MCR Amount
|
| 177 |
+
Currency>`. The requested credit limit `<Requested Amount Currency>` is `<within/above>`
|
| 178 |
+
the MCR of `<MCR Amount Currency>` by `<Delta Amount Currency>`. Total Potential Exposure
|
| 179 |
+
could not be calculated because Existing Outstanding Amount is not available.
|
| 180 |
+
|
| 181 |
+
- **When DUNS is not in portfolio (using only report data):**
|
| 182 |
+
`<Company Name>` is assessed with an OBR of `<OBR Label>` and an MCR of `<MCR Amount
|
| 183 |
+
Currency>`. The requested credit limit `<Requested Amount Currency>` is `<within/above>`
|
| 184 |
+
the MCR of `<MCR Amount Currency>` by `<Delta Amount Currency>`.
|
| 185 |
+
|
| 186 |
+
- **When MCR is not available:**
|
| 187 |
+
`<Company Name>` is assessed with an OBR of `<OBR Label>`. Maximum Credit Recommendation
|
| 188 |
+
(MCR) is not available and hence a comparison cannot be made.
|
| 189 |
+
|
| 190 |
+
### Credit Assessment
|
| 191 |
+
|
| 192 |
+
- **Overall Business Risk (OBR):** `<Label>`
|
| 193 |
+
- Overall assessment over the next 12 months: `<Label>`
|
| 194 |
+
- Based on predicted risk of business discontinuation: `<Label>` (omit if not available)
|
| 195 |
+
- Based on predicted risk of severely delinquent payments: `<Label>` (omit if not available)
|
| 196 |
+
- **Maximum Credit Recommendation (MCR):** `<Amount Currency>`
|
| 197 |
+
- `<Tool-provided commentary, if available; omit when MCR is not available>`
|
| 198 |
+
- **Legal Events and News**
|
| 199 |
+
- Legal Events: `<Detailed suits/liens/judgments if available>`
|
| 200 |
+
- Latest News: `<Derogatory news specific to the company if available>`
|
| 201 |
+
|
| 202 |
+
### Response
|
| 203 |
+
|
| 204 |
+
Populate as per the Decision Logic below.
|
| 205 |
+
|
| 206 |
+
### Supporting Factors
|
| 207 |
+
|
| 208 |
+
3-5 short factual statements, directly supporting the decision. If multiple accounts were
|
| 209 |
+
retrieved for the DUNS, include the account-level split of outstanding and past due amounts
|
| 210 |
+
as a table. Example: "Delinquency Score risk class: 3 (Moderate) with 4.3% probability of
|
| 211 |
+
delinquency (effective YYYY-MM-DD)."
|
| 212 |
+
|
| 213 |
+
---
|
| 214 |
+
|
| 215 |
+
## Decision Logic
|
| 216 |
+
|
| 217 |
+
**If MCR is not numeric, is 0, or is not available:**
|
| 218 |
+
State exactly: `Maximum Credit Recommendation (MCR) is not available and hence a comparison
|
| 219 |
+
cannot be made.`
|
| 220 |
+
|
| 221 |
+
**If both `requested_limit` and MCR are numeric and greater than 0:**
|
| 222 |
+
|
| 223 |
+
| Condition | What to state |
|
| 224 |
+
|---|---|
|
| 225 |
+
| Existing Outstanding Amount available and exceeds MCR | "Existing Outstanding Amount `<amount>` exceeds MCR `<MCR>` by `<delta>`; an additional Requested Credit Amount `<requested>` is not recommended because Total Potential Exposure `<total>` would be above MCR." |
|
| 226 |
+
| Total Exposure available and within MCR | "Total Potential Exposure `<amount>` is within MCR `<MCR>` by `<delta>`." |
|
| 227 |
+
| Total Exposure available and above MCR | "Total Potential Exposure `<amount>` is above MCR `<MCR>` by `<delta>` and the request is not aligned with MCR." |
|
| 228 |
+
| Total Exposure not calculable, DUNS in portfolio, requested <= MCR | "Requested limit `<amount>` is within MCR `<MCR>` by `<delta>`. Total Potential Exposure could not be calculated because Existing Outstanding Amount is not available." |
|
| 229 |
+
| Total Exposure not calculable, DUNS in portfolio, requested > MCR | "Requested limit `<amount>` is above MCR `<MCR>` by `<delta>`. Total Potential Exposure could not be calculated because Existing Outstanding Amount is not available." |
|
| 230 |
+
| Total Exposure not calculable, DUNS not in portfolio, requested <= MCR | "Requested limit `<amount>` is within MCR `<MCR>` by `<delta>`." |
|
| 231 |
+
| Total Exposure not calculable, DUNS not in portfolio, requested > MCR | "Requested limit `<amount>` is above MCR `<MCR>` by `<delta>`." |
|
| 232 |
+
|
| 233 |
+
Do not use the words "approve" or "decline" in the Response section.
|
| 234 |
+
|
| 235 |
+
**Always include:**
|
| 236 |
+
|
| 237 |
+
- OBR label exactly as returned by tool output
|
| 238 |
+
- MCR amount and currency
|
| 239 |
+
- Total Exposure vs MCR numeric comparison when Existing Outstanding Amount is available
|
| 240 |
+
- Requested amount vs MCR comparison only when Total Exposure cannot be calculated
|
| 241 |
+
|
| 242 |
+
---
|
| 243 |
+
|
| 244 |
+
## Missing Data Rules
|
| 245 |
+
|
| 246 |
+
- If OBR is available and MCR is missing: state MCR as `Not available`.
|
| 247 |
+
- If both OBR and MCR are missing: state `Not available via tools`.
|
| 248 |
+
- Do not infer missing values.
|
| 249 |
+
- If a required field is missing from portfolio data: try `get_company_report` before
|
| 250 |
+
marking it unavailable.
|
| 251 |
+
- Continue with a constrained answer using only available data.
|
| 252 |
+
|
| 253 |
+
---
|
| 254 |
+
|
| 255 |
+
## Handoff Contracts
|
| 256 |
+
|
| 257 |
+
| Handoff | Payload |
|
| 258 |
+
|---|---|
|
| 259 |
+
| Stage 1 -> Stage 2 | Confirmed company name, DUNS, country |
|
| 260 |
+
| Stage 2 -> Stage 3 | OBR, MCR, PAYDEX, failure score, delinquency score, aggregated outstanding amounts (with account-level split), legal flags, data source for each field |
|
| 261 |
+
| Stage 3 -> Output | Completed credit validation response (10-15 lines), audit trail |
|
| 262 |
+
|
| 263 |
+
---
|
| 264 |
+
|
| 265 |
+
## Known Tool Integration Notes
|
| 266 |
+
|
| 267 |
+
| Tool | Issue | Handling |
|
| 268 |
+
|---|---|---|
|
| 269 |
+
| `query_portfolio` | A single DUNS may have multiple accounts | Always retrieve all accounts. Aggregate outstanding and past due at DUNS level. Retain account-level split for output. |
|
| 270 |
+
| `query_portfolio` | Use for portfolio lookup only - not for name-based company search | Always resolve company name via `fa_search_tool` first, then look up by DUNS in portfolio |
|
| 271 |
+
| `get_company_report` | Use only to fill gaps missing from portfolio - never override portfolio values | Call only when `query_portfolio` does not return all required fields |
|
| 272 |
+
| `get_company_report` | `continue_report_pull` must be `false` unless user has explicitly approved | Never carry `continue_report_pull=true` from a prior conversation turn |
|
| 273 |
+
|
| 274 |
+
---
|
| 275 |
+
|
| 276 |
+
## Behavioural Requirements (Credit Validation - specific)
|
| 277 |
+
|
| 278 |
+
- Never make a binding approval or decline. The output is a suggested decision for the
|
| 279 |
+
credit manager's consideration - they retain final authority.
|
| 280 |
+
- The response must be 10-15 lines. Do not expand into a full credit decisioning report.
|
| 281 |
+
- Do not trigger an application or account decisioning workflow from this sub-flow unless
|
| 282 |
+
the user explicitly requests it. If they do, route to `fa-onboarding-workflow.md` Stage 3.
|
| 283 |
+
- Portfolio values always take precedence over report values for the same field.
|
| 284 |
+
- Always include the complete audit trail at the bottom of the output.
|
| 285 |
+
|
| 286 |
+
|
data/.codex/.codex/.tmp/plugins/plugins/dnb-finance-analytics/skills/fa-jobs-to-be-done/fa-skills/references/fa-onboarding-workflow.md
ADDED
|
@@ -0,0 +1,406 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# FA Customer Onboarding - Sub-flow Reference
|
| 2 |
+
|
| 3 |
+
**Tools used:** `fa_search_tool`, `query_portfolio`, `get_company_report`, `get_live_report`,
|
| 4 |
+
`application_decisioning_tool`, `get_company_ownership_tree`, `manage_folder`
|
| 5 |
+
|
| 6 |
+
This file defines the full FA customer onboarding pipeline. It is loaded by the master
|
| 7 |
+
`SKILL.md` when user intent resolves to customer onboarding or new account creation.
|
| 8 |
+
|
| 9 |
+
**Core question answered by this pipeline:**
|
| 10 |
+
|
| 11 |
+
> "I want to onboard [Company X] - what credit limit should I give them, and where should
|
| 12 |
+
> I file them in my portfolio?"
|
| 13 |
+
|
| 14 |
+
The pipeline moves a customer from an unverified name or DUNS through identity resolution,
|
| 15 |
+
credit assessment, automated credit decisioning, and portfolio organisation in a single run.
|
| 16 |
+
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
## Pipeline Overview
|
| 20 |
+
|
| 21 |
+
```
|
| 22 |
+
Stage 1: Find and Verify Company
|
| 23 |
+
-> Stage 2: Company Overview
|
| 24 |
+
-> Stage 3: Credit Decisioning
|
| 25 |
+
-> Stage 4: Approve and Onboard
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
Each stage is gated. A stage must complete successfully and produce its required outputs
|
| 29 |
+
before the next stage begins. The pipeline runs autonomously - do not pause between stages
|
| 30 |
+
to ask the user whether to proceed, unless a blocking ambiguity (e.g. multiple unresolvable
|
| 31 |
+
company candidates) prevents the next stage from starting.
|
| 32 |
+
|
| 33 |
+
---
|
| 34 |
+
|
| 35 |
+
## Visual Pipeline Tracker (Mandatory)
|
| 36 |
+
|
| 37 |
+
At the start of every pipeline run and at the start of every stage, render the visual
|
| 38 |
+
pipeline tracker below. The tracker must:
|
| 39 |
+
|
| 40 |
+
- Show all 4 stages as named boxes in order:
|
| 41 |
+
**Find & Verify -> Co. Overview -> Decisioning -> Approve & Onboard**
|
| 42 |
+
- Clearly indicate which stage is **active** (blue), which are **completed** (green -),
|
| 43 |
+
and which are **pending** (grey)
|
| 44 |
+
- Be rendered inline before the narrative for that stage
|
| 45 |
+
- Update at every stage transition
|
| 46 |
+
|
| 47 |
+
**State colour rules:**
|
| 48 |
+
|
| 49 |
+
| State | Fill | Stroke | Text colour |
|
| 50 |
+
|---|---|---|---|
|
| 51 |
+
| Pending | `var(--color-background-secondary)` | `var(--color-border-tertiary)` | `var(--color-text-secondary)` |
|
| 52 |
+
| Active | `#E6F1FB` | `#185FA5` stroke-width 1.5 | title `#0C447C`, sub `#185FA5` |
|
| 53 |
+
| Complete | `#EAF3DE` | `#3B6D11` stroke-width 1.5 | title `#27500A`, sub `#3B6D11` |
|
| 54 |
+
|
| 55 |
+
### Arrow fix - mandatory SVG pattern
|
| 56 |
+
|
| 57 |
+
Use `<polyline>` connectors with `marker-end` referencing the shared `<defs>` arrow block.
|
| 58 |
+
The `<defs>` block **must** be the first child of `<svg>`. Do **not** use `<line>` elements.
|
| 59 |
+
|
| 60 |
+
**Required `<defs>` block (copy verbatim into every tracker SVG):**
|
| 61 |
+
```xml
|
| 62 |
+
<defs>
|
| 63 |
+
<marker id="arr" viewBox="0 0 10 10" refX="9" refY="5"
|
| 64 |
+
markerWidth="6" markerHeight="6" orient="auto-start-reverse">
|
| 65 |
+
<path d="M1 1 L9 5 L1 9" fill="none" stroke="context-stroke"
|
| 66 |
+
stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
| 67 |
+
</marker>
|
| 68 |
+
</defs>
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
### Full 4-stage tracker template
|
| 72 |
+
|
| 73 |
+
Copy this template at the start of every stage, replacing only the `[STATE_*]` and
|
| 74 |
+
`[*_COLOUR]` placeholders per the colour rules above. Do not alter box positions,
|
| 75 |
+
connector coordinates, or the `<defs>` block.
|
| 76 |
+
|
| 77 |
+
```xml
|
| 78 |
+
<svg width="100%" viewBox="0 0 680 120" role="img">
|
| 79 |
+
<title>FA Onboarding Pipeline Tracker</title>
|
| 80 |
+
<desc>Four-stage FA onboarding pipeline tracker showing stage states.</desc>
|
| 81 |
+
<defs>
|
| 82 |
+
<marker id="arr" viewBox="0 0 10 10" refX="9" refY="5"
|
| 83 |
+
markerWidth="6" markerHeight="6" orient="auto-start-reverse">
|
| 84 |
+
<path d="M1 1 L9 5 L1 9" fill="none" stroke="context-stroke"
|
| 85 |
+
stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
| 86 |
+
</marker>
|
| 87 |
+
</defs>
|
| 88 |
+
|
| 89 |
+
<!-- Connectors -->
|
| 90 |
+
<polyline points="190,44 210,44" fill="none" stroke="var(--color-border-secondary)" stroke-width="1.5" marker-end="url(#arr)"/>
|
| 91 |
+
<polyline points="330,44 350,44" fill="none" stroke="var(--color-border-secondary)" stroke-width="1.5" marker-end="url(#arr)"/>
|
| 92 |
+
<polyline points="470,44 490,44" fill="none" stroke="var(--color-border-secondary)" stroke-width="1.5" marker-end="url(#arr)"/>
|
| 93 |
+
|
| 94 |
+
<!-- Stage 1: Find and Verify Company -->
|
| 95 |
+
<rect x="70" y="20" width="120" height="48" rx="8" fill="[STATE_FILL]" stroke="[STATE_STROKE]" stroke-width="[STATE_SW]"/>
|
| 96 |
+
<text x="130" y="38" text-anchor="middle" dominant-baseline="central" font-size="11" font-family="var(--font-sans)" font-weight="500" fill="[TITLE_COLOUR]">Stage 1</text>
|
| 97 |
+
<text x="130" y="54" text-anchor="middle" dominant-baseline="central" font-size="10" font-family="var(--font-sans)" fill="[SUB_COLOUR]">Find & Verify</text>
|
| 98 |
+
|
| 99 |
+
<!-- Stage 2: Company Overview -->
|
| 100 |
+
<rect x="210" y="20" width="120" height="48" rx="8" fill="[STATE_FILL]" stroke="[STATE_STROKE]" stroke-width="[STATE_SW]"/>
|
| 101 |
+
<text x="270" y="38" text-anchor="middle" dominant-baseline="central" font-size="11" font-family="var(--font-sans)" font-weight="500" fill="[TITLE_COLOUR]">Stage 2</text>
|
| 102 |
+
<text x="270" y="54" text-anchor="middle" dominant-baseline="central" font-size="10" font-family="var(--font-sans)" fill="[SUB_COLOUR]">Co. Overview</text>
|
| 103 |
+
|
| 104 |
+
<!-- Stage 3: Credit Decisioning -->
|
| 105 |
+
<rect x="350" y="20" width="120" height="48" rx="8" fill="[STATE_FILL]" stroke="[STATE_STROKE]" stroke-width="[STATE_SW]"/>
|
| 106 |
+
<text x="410" y="38" text-anchor="middle" dominant-baseline="central" font-size="11" font-family="var(--font-sans)" font-weight="500" fill="[TITLE_COLOUR]">Stage 3</text>
|
| 107 |
+
<text x="410" y="54" text-anchor="middle" dominant-baseline="central" font-size="10" font-family="var(--font-sans)" fill="[SUB_COLOUR]">Decisioning</text>
|
| 108 |
+
|
| 109 |
+
<!-- Stage 4: Approve and Onboard -->
|
| 110 |
+
<rect x="490" y="20" width="120" height="48" rx="8" fill="[STATE_FILL]" stroke="[STATE_STROKE]" stroke-width="[STATE_SW]"/>
|
| 111 |
+
<text x="550" y="38" text-anchor="middle" dominant-baseline="central" font-size="11" font-family="var(--font-sans)" font-weight="500" fill="[TITLE_COLOUR]">Stage 4</text>
|
| 112 |
+
<text x="550" y="54" text-anchor="middle" dominant-baseline="central" font-size="10" font-family="var(--font-sans)" fill="[SUB_COLOUR]">Approve & Onboard</text>
|
| 113 |
+
|
| 114 |
+
<!-- Legend -->
|
| 115 |
+
<rect x="70" y="84" width="10" height="10" rx="2" fill="#EAF3DE" stroke="#3B6D11" stroke-width="1"/>
|
| 116 |
+
<text x="84" y="93" font-size="10" font-family="var(--font-sans)" fill="var(--color-text-secondary)">Complete</text>
|
| 117 |
+
<rect x="152" y="84" width="10" height="10" rx="2" fill="#E6F1FB" stroke="#185FA5" stroke-width="1"/>
|
| 118 |
+
<text x="166" y="93" font-size="10" font-family="var(--font-sans)" fill="var(--color-text-secondary)">Active</text>
|
| 119 |
+
<rect x="218" y="84" width="10" height="10" rx="2" fill="var(--color-background-secondary)" stroke="var(--color-border-tertiary)" stroke-width="1"/>
|
| 120 |
+
<text x="232" y="93" font-size="10" font-family="var(--font-sans)" fill="var(--color-text-secondary)">Pending</text>
|
| 121 |
+
</svg>
|
| 122 |
+
```
|
| 123 |
+
|
| 124 |
+
---
|
| 125 |
+
|
| 126 |
+
## Stage 1 - Find and Verify Company
|
| 127 |
+
|
| 128 |
+
**Purpose:** Resolve the user's input to a canonical, verified company record with a DUNS.
|
| 129 |
+
Check whether the company already exists in the portfolio.
|
| 130 |
+
|
| 131 |
+
**Inputs:** Company name, country, or DUNS (if provided directly)
|
| 132 |
+
|
| 133 |
+
**Tool call sequence:**
|
| 134 |
+
|
| 135 |
+
1. If user provides a DUNS directly: skip `fa_search_tool`, proceed to tool call 3.
|
| 136 |
+
2. If user provides only a company name: call `fa_search_tool` with name and country.
|
| 137 |
+
Then apply the match-resolution rules below before proceeding.
|
| 138 |
+
3. Call `query_portfolio` with the resolved DUNS to check whether the company already
|
| 139 |
+
exists in the portfolio and retrieve any current account data.
|
| 140 |
+
|
| 141 |
+
**Match-resolution rules (applied after `fa_search_tool` returns):**
|
| 142 |
+
|
| 143 |
+
- **Exactly one high-confidence match:** proceed automatically with that DUNS. No pause.
|
| 144 |
+
- **No matches:** report that no record was found. Ask the user to verify the company
|
| 145 |
+
name spelling, provide a country, or supply the DUNS directly. Do not proceed to Stage 2.
|
| 146 |
+
- **Multiple matches or any match with lower confidence:** present the full candidate list
|
| 147 |
+
as a numbered table. **This is the only permitted pause point in Stage 1.**
|
| 148 |
+
|
| 149 |
+
**Multiple-match table - format:**
|
| 150 |
+
|
| 151 |
+
| # | Company Name | DUNS | Country | City | Status | Confidence |
|
| 152 |
+
|---|---|---|---|---|---|---|
|
| 153 |
+
| 1 | [name] | [duns] | [country] | [city] | [active/inactive] | [High/Medium/Low] |
|
| 154 |
+
| 2 | ... | ... | ... | ... | ... | ... |
|
| 155 |
+
|
| 156 |
+
Include all candidates returned by `fa_search_tool`. Do not pre-filter or auto-select.
|
| 157 |
+
|
| 158 |
+
**Selection prompt (use this exact wording):**
|
| 159 |
+
|
| 160 |
+
> "I found several companies that match your search. To make sure we're working with
|
| 161 |
+
> the right one, could you help me confirm the correct entity?
|
| 162 |
+
>
|
| 163 |
+
> You can do so by:
|
| 164 |
+
> - Entering the **row number** from the table above (e.g. `2`), or
|
| 165 |
+
> - Providing the **DUNS number** directly if you have it to hand (e.g. `123456789`).
|
| 166 |
+
>
|
| 167 |
+
> Once confirmed, I'll continue with the onboarding."
|
| 168 |
+
|
| 169 |
+
**Hard stop - do not proceed to tool call 3 until the user has made a selection.**
|
| 170 |
+
Once the user responds, resolve their input:
|
| 171 |
+
- If they entered a row number: use the DUNS from that row.
|
| 172 |
+
- If they entered a DUNS: confirm it matches one of the candidates, then use it.
|
| 173 |
+
- If the input is ambiguous or does not match any row/DUNS: ask once more. If still
|
| 174 |
+
unresolved after one re-prompt, stop and advise the user to provide the DUNS directly.
|
| 175 |
+
|
| 176 |
+
**Required outputs:**
|
| 177 |
+
|
| 178 |
+
- Resolved company name (as returned by D&B)
|
| 179 |
+
- DUNS number
|
| 180 |
+
- Country of registration
|
| 181 |
+
- Portfolio status: **existing** (company is already in portfolio) or **new** (not yet present)
|
| 182 |
+
- If existing: brief summary of current portfolio record (account type, risk level, outstanding)
|
| 183 |
+
|
| 184 |
+
**Narrative:** Confirm the company was identified. State name, DUNS, and country. Note
|
| 185 |
+
whether this is an existing portfolio customer or a new onboarding. If multiple candidates
|
| 186 |
+
were returned, state which row or DUNS the user selected and confirm the chosen entity.
|
| 187 |
+
|
| 188 |
+
**Failure condition:** If the company cannot be resolved to a single confirmed record, stop
|
| 189 |
+
and request clarification. Do not proceed to Stage 2 with an unresolved entity.
|
| 190 |
+
|
| 191 |
+
---
|
| 192 |
+
|
| 193 |
+
## Stage 2 - Company Overview
|
| 194 |
+
|
| 195 |
+
**Purpose:** Retrieve and present an executive-level snapshot of the resolved company using
|
| 196 |
+
the D&B company report combined with portfolio data. This summary feeds Stage 3 decisioning
|
| 197 |
+
and forms the basis of the final decision document.
|
| 198 |
+
|
| 199 |
+
**Inputs:** Resolved DUNS and portfolio status from Stage 1.
|
| 200 |
+
|
| 201 |
+
**Tool call sequence:**
|
| 202 |
+
|
| 203 |
+
1. Call `get_company_report` with the resolved DUNS to pull the full D&B report.
|
| 204 |
+
|
| 205 |
+
2. Render the Executive Summary table below using data from the `get_company_report` response.
|
| 206 |
+
|
| 207 |
+
3. If ownership structure is relevant (large exposure, complex corporate structure, or
|
| 208 |
+
user request): call `get_company_ownership_tree` with the DUNS and include a brief
|
| 209 |
+
ownership note in the Executive Summary.
|
| 210 |
+
|
| 211 |
+
**Executive Summary - render this as the Stage 2 output:**
|
| 212 |
+
|
| 213 |
+
| Field | Value |
|
| 214 |
+
|---|---|
|
| 215 |
+
| Company Name | [from report] |
|
| 216 |
+
| DUNS | [resolved DUNS] |
|
| 217 |
+
| Country | [country of registration] |
|
| 218 |
+
| Industry | [industry / SIC code] |
|
| 219 |
+
| Business Vintage | [years in business] |
|
| 220 |
+
| Registration Status | [active / inactive / other] |
|
| 221 |
+
| Overall Business Risk | [rating + class - plain-language descriptor] |
|
| 222 |
+
| Max Credit Recommendation | [amount + currency] |
|
| 223 |
+
| PAYDEX / Payment Score | [score + descriptor] |
|
| 224 |
+
| Failure Score | [score + class] |
|
| 225 |
+
| Delinquency Score | [score + class] |
|
| 226 |
+
| Bankruptcy Present | [Yes / No] |
|
| 227 |
+
| Key Legal Flags | [suits / liens / judgments - or "None"] |
|
| 228 |
+
| Total Outstanding (portfolio) | [from query_portfolio - or "N/A - not in portfolio"] |
|
| 229 |
+
| Total Past Due (portfolio) | [from query_portfolio - or "N/A - not in portfolio"] |
|
| 230 |
+
| Credit Limit Utilisation | [% - from query_portfolio - or "N/A - not in portfolio"] |
|
| 231 |
+
|
| 232 |
+
Render each field using the active language layer loaded at Step 2.5 of the master skill.
|
| 233 |
+
Translate score codes to plain-language descriptors before surfacing them to the user.
|
| 234 |
+
Mark any unavailable field as "N/A - not available" with a brief reason.
|
| 235 |
+
|
| 236 |
+
**Required outputs:**
|
| 237 |
+
|
| 238 |
+
- Formatted Executive Summary table (all fields above)
|
| 239 |
+
- Entity ID from `query_portfolio` (internal - pass to Stage 3; do not surface to user)
|
| 240 |
+
- Data gaps clearly identified
|
| 241 |
+
- Ownership note (if `get_company_ownership_tree` was called)
|
| 242 |
+
|
| 243 |
+
**Narrative:** Present the Executive Summary. Highlight the two or three most significant
|
| 244 |
+
risk signals. Note any data gaps and their impact on decisioning confidence.
|
| 245 |
+
|
| 246 |
+
**Failure condition:** If `get_company_report` / `get_live_report` fails after one retry,
|
| 247 |
+
fall back to `query_portfolio` data only and annotate the gap. Do not fabricate report data.
|
| 248 |
+
|
| 249 |
+
---
|
| 250 |
+
|
| 251 |
+
## Stage 3 - Credit Decisioning
|
| 252 |
+
|
| 253 |
+
**Purpose:** Run the configured credit decisioning model against the resolved company and
|
| 254 |
+
requested exposure to produce a formal credit decision: Approved, Declined, or Review.
|
| 255 |
+
|
| 256 |
+
**Inputs:** Resolved DUNS, Entity ID from Stage 2, enrichment data from Stage 2, requested
|
| 257 |
+
credit amount (if provided by user), and currency.
|
| 258 |
+
|
| 259 |
+
**Tool:** `application_decisioning_tool` - used for all onboarding decisioning,
|
| 260 |
+
whether the company is new or existing in the portfolio.
|
| 261 |
+
|
| 262 |
+
**Tool call sequence:**
|
| 263 |
+
|
| 264 |
+
1. Call `application_decisioning_tool` with:
|
| 265 |
+
- DUNS (required)
|
| 266 |
+
- `credit_limit` (if provided by user; omit if not specified)
|
| 267 |
+
- `currency` (if provided; default to portfolio currency if not specified)
|
| 268 |
+
2. Parse the response for:
|
| 269 |
+
- Decision status: `Approved`, `Declined`, or `Review`
|
| 270 |
+
- Approved credit limit (if applicable)
|
| 271 |
+
- Decision narrative and rule conditions triggered
|
| 272 |
+
- Any flags or conditions attached to the decision
|
| 273 |
+
|
| 274 |
+
**Fallback - if decisioning tool fails:**
|
| 275 |
+
|
| 276 |
+
If `application_decisioning_tool` fails after one retry:
|
| 277 |
+
|
| 278 |
+
1. Document the failure.
|
| 279 |
+
2. Fall back to `query_portfolio` risk data (OBR, MCR, failure score, delinquency score)
|
| 280 |
+
from Stage 2.
|
| 281 |
+
3. Produce a manual decision guidance output based on the available risk signals.
|
| 282 |
+
4. Clearly label the output as "Manual Guidance - automated decisioning unavailable."
|
| 283 |
+
5. Do not present manual guidance as an equivalent to a formal decisioning tool output.
|
| 284 |
+
|
| 285 |
+
**Decision outcomes:**
|
| 286 |
+
|
| 287 |
+
| Outcome | Meaning | Next action |
|
| 288 |
+
|---|---|---|
|
| 289 |
+
| Approved | Company meets credit criteria - credit limit granted | Proceed to Stage 4; save to Approved folder |
|
| 290 |
+
| Declined | Company does not meet credit criteria | Proceed to Stage 4; save to Declined or High Risk folder |
|
| 291 |
+
| Review | Insufficient certainty for auto-decision - human review required | Proceed to Stage 4; save to Under Review folder; generate escalation brief |
|
| 292 |
+
|
| 293 |
+
**Required outputs:**
|
| 294 |
+
|
| 295 |
+
- Decision status (Approved / Declined / Review)
|
| 296 |
+
- Approved credit limit and currency (if Approved)
|
| 297 |
+
- Decision narrative from the decisioning tool
|
| 298 |
+
- Rule conditions that triggered the decision
|
| 299 |
+
- If Review: escalation brief with the specific question(s) a human reviewer must answer
|
| 300 |
+
|
| 301 |
+
**Narrative:** State the decision clearly. Explain what rules or risk signals drove the
|
| 302 |
+
outcome. If Approved, confirm the credit limit. If Declined, name the primary reason. If
|
| 303 |
+
Review, state what is unresolved and what the reviewer needs to decide.
|
| 304 |
+
|
| 305 |
+
**Failure condition:** If decisioning fails and manual guidance cannot be produced from
|
| 306 |
+
available risk data, stop and advise the user that decisioning is unavailable and manual
|
| 307 |
+
review is required.
|
| 308 |
+
|
| 309 |
+
---
|
| 310 |
+
|
| 311 |
+
## Stage 4 - Approve and Onboard
|
| 312 |
+
|
| 313 |
+
**Purpose:** Approve the onboarding decision and place the entity into the correct portfolio
|
| 314 |
+
folder so that it can be monitored, tracked, and actioned by the credit team.
|
| 315 |
+
|
| 316 |
+
**Inputs:** Decision outcome from Stage 3, resolved DUNS, entity identity from Stage 1.
|
| 317 |
+
|
| 318 |
+
**Tool call sequence:**
|
| 319 |
+
|
| 320 |
+
1. Call `manage_folder` with action `LIST` to retrieve the current list of portfolio folders.
|
| 321 |
+
2. Based on the Stage 3 decision outcome, identify the appropriate target folder:
|
| 322 |
+
|
| 323 |
+
| Decision | Suggested folder |
|
| 324 |
+
|---|---|
|
| 325 |
+
| Approved | "Approved Customers" (or equivalent active customer folder) |
|
| 326 |
+
| Declined | "Declined" or "High Risk" |
|
| 327 |
+
| Review | "Under Review" or "Pending Review" |
|
| 328 |
+
|
| 329 |
+
3. If an appropriate folder exists: call `manage_folder` with action `COPY` or `MOVE` to
|
| 330 |
+
place the entity in that folder.
|
| 331 |
+
4. If no appropriate folder exists: call `manage_folder` with action `CREATE` to create
|
| 332 |
+
the folder, then call `COPY` or `MOVE` to place the entity.
|
| 333 |
+
5. Confirm placement with a `LIST_ENTITY` call if needed to verify the entity appears in
|
| 334 |
+
the target folder.
|
| 335 |
+
|
| 336 |
+
**Required outputs:**
|
| 337 |
+
|
| 338 |
+
- Target folder name
|
| 339 |
+
- Confirmation that the entity was successfully placed in the folder
|
| 340 |
+
- Folder action taken (created new / moved to existing)
|
| 341 |
+
|
| 342 |
+
**Narrative:** Confirm where the entity has been filed. State the folder name and the
|
| 343 |
+
reason for that classification. If a new folder was created, note it.
|
| 344 |
+
|
| 345 |
+
**Failure condition:** If folder operations fail, document the failure and advise the user
|
| 346 |
+
that the entity was not placed in a folder. Do not retry indefinitely - one retry per action.
|
| 347 |
+
|
| 348 |
+
---
|
| 349 |
+
|
| 350 |
+
## Handoff Contracts
|
| 351 |
+
|
| 352 |
+
| Handoff | Payload |
|
| 353 |
+
|---|---|
|
| 354 |
+
| Stage 1 -> Stage 2 | Resolved company name, DUNS, country, portfolio status (existing/new), portfolio summary if existing |
|
| 355 |
+
| Stage 2 -> Stage 3 | Executive Summary table, Entity ID (internal), OBR, MCR, PAYDEX, failure score, delinquency score, outstanding amounts, legal flags, ownership summary, data gaps |
|
| 356 |
+
| Stage 3 -> Stage 4 | Decision status (Approved/Declined/Review), credit limit (if Approved), decision narrative, rule conditions, escalation brief (if Review) |
|
| 357 |
+
| Stage 4 -> Output | Final decision document, folder placement confirmation, complete audit trail |
|
| 358 |
+
|
| 359 |
+
---
|
| 360 |
+
|
| 361 |
+
## Final Output - Decision Document
|
| 362 |
+
|
| 363 |
+
The onboarding output must include all of the following:
|
| 364 |
+
|
| 365 |
+
1. **Company snapshot:** Name, DUNS, country, industry, business vintage, registration status.
|
| 366 |
+
2. **Risk summary:** OBR, MCR, PAYDEX, failure score, delinquency score - with plain-language
|
| 367 |
+
context for each. Note any legal flags (bankruptcy, suits, liens, judgments).
|
| 368 |
+
3. **Ownership summary:** If ownership tree was pulled, summarise the corporate structure and
|
| 369 |
+
note any significant parent entities.
|
| 370 |
+
4. **Credit decision:** Approved / Declined / Review - with the credit limit (if Approved)
|
| 371 |
+
and the primary reasons for the decision.
|
| 372 |
+
5. **Portfolio placement:** Folder the entity was saved to and why.
|
| 373 |
+
6. **Escalation brief (if Review):** The specific question(s) requiring human judgment, the
|
| 374 |
+
two possible paths forward, and who should own the decision.
|
| 375 |
+
7. **Audit trail:** Complete log of every stage, tool called, data retrieved, gaps noted,
|
| 376 |
+
and decisions made.
|
| 377 |
+
|
| 378 |
+
---
|
| 379 |
+
|
| 380 |
+
## Known Tool Integration Notes
|
| 381 |
+
|
| 382 |
+
| Tool | Issue | Handling |
|
| 383 |
+
|---|---|---|
|
| 384 |
+
| `fa_search_tool` | May return multiple candidates for common company names | Present a selection table; ask user to confirm. Do not auto-select when confidence is ambiguous. |
|
| 385 |
+
| `query_portfolio` | Returns multiple accounts per DUNS when a company has more than one credit file | Aggregate outstanding and past due across all accounts. Retain account-level split for the final output. |
|
| 386 |
+
| `get_live_report` | Used only for companies not yet in the portfolio - pulls current D&B data without requiring a prior portfolio entry | Call in place of `get_company_report` for new onboardings where no portfolio record exists |
|
| 387 |
+
| `get_company_report` | Use for companies already in portfolio where a D&B report was purchased | Do not call if the portfolio already contains all required fields - avoid unnecessary report pulls |
|
| 388 |
+
| `application_decisioning_tool` | Requires DUNS; `credit_limit` and `currency` improve decision quality but are not always mandatory | Always pass requested credit amount if the user provided one |
|
| 389 |
+
| `manage_folder` | `LIST` must be called before `COPY` or `MOVE` to identify valid target folders | Never assume folder names - always LIST first |
|
| 390 |
+
| `get_company_ownership_tree` | Optional at Stage 2; recommended for large exposures or complex structures | Call when: exposure exceeds MCR, corporate structure appears complex, or user requests it |
|
| 391 |
+
|
| 392 |
+
---
|
| 393 |
+
|
| 394 |
+
## Behavioural Requirements (Onboarding-specific)
|
| 395 |
+
|
| 396 |
+
- Never make a binding credit approval or decline. The decisioning tool output is a
|
| 397 |
+
recommendation - the credit manager retains final authority.
|
| 398 |
+
- Missing data from Stage 2 must be annotated and carried forward into the final
|
| 399 |
+
decision document and audit trail.
|
| 400 |
+
- Do not call `aging_forecast` in this pipeline - aging forecast is a separate workflow.
|
| 401 |
+
- Do not call `query_alerts` in this pipeline - alerts are a separate workflow.
|
| 402 |
+
- The pipeline runs autonomously. The only permitted pause points are:
|
| 403 |
+
1. Stage 1: multiple unresolvable company candidates
|
| 404 |
+
2. Stage 3: Review outcome requiring human escalation brief
|
| 405 |
+
|
| 406 |
+
|
data/.codex/.codex/.tmp/plugins/plugins/dnb-finance-analytics/skills/fa-jobs-to-be-done/fa-skills/references/fa-plain-language.md
ADDED
|
@@ -0,0 +1,303 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# FA Plain-Language Output Layer
|
| 2 |
+
|
| 3 |
+
**Loaded by:** `SKILL.md` (master skill) - applies to every FA workflow when no
|
| 4 |
+
specific persona is detected.
|
| 5 |
+
|
| 6 |
+
**Purpose:** Translate FA tool outputs and analyst terminology into clear, plain business
|
| 7 |
+
language that any stakeholder can read and act on - no credit, financial, or technical
|
| 8 |
+
background required.
|
| 9 |
+
|
| 10 |
+
This file does not change what the pipeline does or what data is collected. It governs
|
| 11 |
+
only how results are communicated to the user.
|
| 12 |
+
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
## Core Principle
|
| 16 |
+
|
| 17 |
+
Every output has two audiences: the person reading it right now, and an analyst who may
|
| 18 |
+
review it later. Write for the person reading it right now.
|
| 19 |
+
|
| 20 |
+
**Rule:** If a phrase requires domain knowledge to interpret, replace it. If a number
|
| 21 |
+
requires context to be meaningful, add that context. If a status code or internal label
|
| 22 |
+
is surfaced raw, translate it.
|
| 23 |
+
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
## Tone and Voice
|
| 27 |
+
|
| 28 |
+
| Instead of... | Say... |
|
| 29 |
+
|---|---|
|
| 30 |
+
| Formal, passive, process-heavy | Direct, active, outcome-focused |
|
| 31 |
+
| "The entity has been added to the portfolio." | "We've added this company to your monitored accounts." |
|
| 32 |
+
| "Initiating decisioning workflow." | "We're now running the credit decision for this company." |
|
| 33 |
+
| "No adverse signals detected." | "No issues or concerns were found for this company." |
|
| 34 |
+
| "Tool call failed; annotating gap." | "We couldn't retrieve [specific data] at this step - we've noted it and continued." |
|
| 35 |
+
| "Proceeding to Stage N." | "Next, we'll [describe what happens next in plain terms]." |
|
| 36 |
+
| "OBR = Moderate risk." | "Overall business risk is moderate - there are some factors worth monitoring." |
|
| 37 |
+
|
| 38 |
+
**Voice attributes:** Confident, clear, non-jargon. Never condescending. Never
|
| 39 |
+
over-explain - one sentence of context is usually enough.
|
| 40 |
+
|
| 41 |
+
---
|
| 42 |
+
|
| 43 |
+
## Term Translations
|
| 44 |
+
|
| 45 |
+
Apply these translations consistently in all narrative output.
|
| 46 |
+
|
| 47 |
+
### Entity and Status Terms
|
| 48 |
+
|
| 49 |
+
| FA / system term | Plain-language replacement |
|
| 50 |
+
|---|---|
|
| 51 |
+
| Entity | Company |
|
| 52 |
+
| DUNS / D-U-N-S | [Company name] - use the name; surface the number only if asked |
|
| 53 |
+
| Portfolio | Your monitored accounts / customer list |
|
| 54 |
+
| Account | Customer account |
|
| 55 |
+
| `ACCOUNT` credit file type | Customer Account |
|
| 56 |
+
| `APPLICATION` credit file type | Credit Application |
|
| 57 |
+
| `DUNSRIGHT` credit file type | Live Company Data |
|
| 58 |
+
| `SNAPSHOT` credit file type | Historical Snapshot |
|
| 59 |
+
| Onboard / onboarded | Added to your accounts / brought into your system |
|
| 60 |
+
| Entity ID / Account ID | [Do not surface - use internally only] |
|
| 61 |
+
| Named principal | Director, officer, or key owner |
|
| 62 |
+
|
| 63 |
+
### Risk Scores and Ratings
|
| 64 |
+
|
| 65 |
+
| FA / system term | Plain-language replacement |
|
| 66 |
+
|---|---|
|
| 67 |
+
| Overall Business Risk (OBR) | Overall Business Risk - a summary of how risky this company is |
|
| 68 |
+
| OBR = Low risk | [OK] Low risk - no significant concerns identified |
|
| 69 |
+
| OBR = Low-Moderate risk | Low-Moderate risk - a few minor factors to be aware of |
|
| 70 |
+
| OBR = Moderate risk | [Monitor] Moderate risk - some factors to monitor before extending credit |
|
| 71 |
+
| OBR = Moderate-High risk | Moderate-High risk - notable concerns that should influence the credit decision |
|
| 72 |
+
| OBR = High risk | [High] High risk - significant concerns require attention before extending credit |
|
| 73 |
+
| OBR = Severe risk | [High] Severe risk - do not extend credit without thorough review |
|
| 74 |
+
| MCR / Maximum Credit Recommendation | Maximum Credit Recommendation - the highest credit limit D&B recommends for this company |
|
| 75 |
+
| PAYDEX | Payment Reliability Score - how consistently this company pays its bills |
|
| 76 |
+
| Failure Score | Risk of this company going out of business in the next 12 months |
|
| 77 |
+
| Delinquency Score | Risk of this company falling seriously behind on payments |
|
| 78 |
+
| Viability Score | Overall business health and survival likelihood |
|
| 79 |
+
| D&B Rating | D&B's overall rating combining financial size and creditworthiness |
|
| 80 |
+
| SSI (Supplier Stability Index) | Stability score - how likely this company is to remain in business |
|
| 81 |
+
| SER (Supplier Evaluation Risk) | Supplier risk rating |
|
| 82 |
+
|
| 83 |
+
### Credit and Financial Terms
|
| 84 |
+
|
| 85 |
+
| FA / system term | Plain-language replacement |
|
| 86 |
+
|---|---|
|
| 87 |
+
| Credit limit | The maximum credit amount to extend to this company |
|
| 88 |
+
| Total outstanding | Total amount currently owed by this company |
|
| 89 |
+
| Total past due | Amount overdue - not yet paid past the due date |
|
| 90 |
+
| Credit limit utilisation | How much of the allowed credit limit is currently in use |
|
| 91 |
+
| MCR | Maximum Credit Recommendation |
|
| 92 |
+
| Total Exposure | Total amount at risk if this company were to stop paying |
|
| 93 |
+
| Net worth | What the company owns minus what it owes |
|
| 94 |
+
| Current assets | Assets the company can turn into cash quickly |
|
| 95 |
+
| Current liabilities | Short-term debts due within the next year |
|
| 96 |
+
| PAYDEX < 50 | This company tends to pay significantly late |
|
| 97 |
+
| PAYDEX 50-79 | This company generally pays within or slightly beyond terms |
|
| 98 |
+
| PAYDEX 80+ | This company is a reliable, on-time payer |
|
| 99 |
+
| Days Beyond Terms (DBT) | Average number of days late on payments |
|
| 100 |
+
| Quick Ratio | Whether the company can pay its immediate debts without selling assets |
|
| 101 |
+
|
| 102 |
+
### Legal and Public Record Terms
|
| 103 |
+
|
| 104 |
+
| FA / system term | Plain-language replacement |
|
| 105 |
+
|---|---|
|
| 106 |
+
| Suit / suit filed | Court case filed against the company |
|
| 107 |
+
| Lien | A legal claim on the company's assets, often for unpaid debt |
|
| 108 |
+
| UCC filing | A lender has formally registered a claim on company assets |
|
| 109 |
+
| Judgment | A court ruling that the company owes money it has not paid |
|
| 110 |
+
| Bankruptcy present | The company has filed for bankruptcy - a serious financial warning sign |
|
| 111 |
+
| `db_bankruptcy_present = true` | This company has an active or recent bankruptcy filing |
|
| 112 |
+
| Public records | Official legal and court filings on record for this company |
|
| 113 |
+
|
| 114 |
+
### Decisioning Terms
|
| 115 |
+
|
| 116 |
+
| FA / system term | Plain-language replacement |
|
| 117 |
+
|---|---|
|
| 118 |
+
| Approved | [OK] Approved - credit can be extended based on current data |
|
| 119 |
+
| Declined | [High] Declined - credit is not recommended based on current data |
|
| 120 |
+
| Review | [Review] Human review needed - some factors require a decision before proceeding |
|
| 121 |
+
| Decisioning | Credit Decision process |
|
| 122 |
+
| Account decisioning | Running a credit decision for a customer account |
|
| 123 |
+
| Application decisioning | Running a credit decision for a credit application |
|
| 124 |
+
| CLM model | Credit decision model |
|
| 125 |
+
|
| 126 |
+
### Aging Forecast Terms
|
| 127 |
+
|
| 128 |
+
| FA / system term | Plain-language replacement |
|
| 129 |
+
|---|---|
|
| 130 |
+
| Aging forecast | Predicted Payment Timeline - when payments are expected based on ML modelling |
|
| 131 |
+
| Aging bucket | Payment timing category (e.g. current, 1-30 days overdue) |
|
| 132 |
+
| 91-120 days | Significantly overdue - high risk of non-payment |
|
| 133 |
+
| 120+ days | Severely overdue - collections action likely required |
|
| 134 |
+
| Entity ID (UUID) | [Do not surface - use internally only] |
|
| 135 |
+
| Account ID | [Do not surface - use internally only] |
|
| 136 |
+
|
| 137 |
+
### Alerts Terms
|
| 138 |
+
|
| 139 |
+
| FA / system term | Plain-language replacement |
|
| 140 |
+
|---|---|
|
| 141 |
+
| Alert severity = High | Urgent - requires immediate attention |
|
| 142 |
+
| Alert severity = Medium | Review this soon - action may be needed |
|
| 143 |
+
| Alert severity = Low | Informational - monitor but no immediate action required |
|
| 144 |
+
| Unread alert | New alert - not yet reviewed |
|
| 145 |
+
| Read alert | Previously reviewed alert |
|
| 146 |
+
|
| 147 |
+
### Portfolio and Folder Terms
|
| 148 |
+
|
| 149 |
+
| FA / system term | Plain-language replacement |
|
| 150 |
+
|---|---|
|
| 151 |
+
| Folder | Portfolio group or category |
|
| 152 |
+
| manage_folder: MOVE | Moving this company to [folder name] |
|
| 153 |
+
| manage_folder: COPY | Adding this company to [folder name] |
|
| 154 |
+
| manage_folder: CREATE | Creating a new group called [folder name] |
|
| 155 |
+
| manage_folder: LIST | Checking existing portfolio groups |
|
| 156 |
+
|
| 157 |
+
### Technical / Process Terms
|
| 158 |
+
|
| 159 |
+
| FA / system term | Plain-language replacement |
|
| 160 |
+
|---|---|
|
| 161 |
+
| Tool call / API call | [Do not surface - describe what was done, not how] |
|
| 162 |
+
| MCP tool | [Do not surface - describe the underlying action] |
|
| 163 |
+
| Stage N | [Use the stage name, not the number] |
|
| 164 |
+
| Pipeline | The steps we follow to assess a company |
|
| 165 |
+
| FA MCP server | [Do not surface - describe the capability] |
|
| 166 |
+
|
| 167 |
+
---
|
| 168 |
+
|
| 169 |
+
## Numeric Context Rules
|
| 170 |
+
|
| 171 |
+
Raw numbers without context are meaningless to a non-analyst. Always add one sentence
|
| 172 |
+
of context when surfacing scores, counts, or financial figures.
|
| 173 |
+
|
| 174 |
+
| Data point | Contextualise it like this |
|
| 175 |
+
|---|---|
|
| 176 |
+
| PAYDEX = 80 | "Payment Reliability Score: 80 out of 100 - this is a good score, suggesting the company generally pays on time." |
|
| 177 |
+
| PAYDEX = 45 | "Payment Reliability Score: 45 out of 100 - this is below average, suggesting the company tends to pay late." |
|
| 178 |
+
| Failure probability = 2.3% | "There is roughly a 2 in 100 chance of this company going out of business in the next year - this is a low level." |
|
| 179 |
+
| Failure probability = 18% | "There is an 18 in 100 chance of this company going out of business in the next year - this is an elevated level." |
|
| 180 |
+
| MCR = \$250,000 | "Based on D&B's assessment, the maximum recommended credit for this company is \$250,000." |
|
| 181 |
+
| Total outstanding = \$120,000 | "This company currently owes \$120,000 in your accounts." |
|
| 182 |
+
| Past due = \$35,000 | "\$35,000 of that is overdue - not yet paid past the due date." |
|
| 183 |
+
| Credit utilisation = 92% | "This company is using 92% of their allowed credit limit - leaving very little headroom." |
|
| 184 |
+
| Aging forecast: 31-60 days bucket increasing | "The model predicts that more of what is owed will fall into the 31-60 day overdue category next month - a sign of slowing payments." |
|
| 185 |
+
|
| 186 |
+
---
|
| 187 |
+
|
| 188 |
+
## Status Summaries - Required Format
|
| 189 |
+
|
| 190 |
+
At the top of every stage output, render a plain-language status block before any
|
| 191 |
+
detail. Format:
|
| 192 |
+
|
| 193 |
+
> **What we did:** [One sentence describing the action taken]
|
| 194 |
+
> **What we found:** [One sentence stating the key result]
|
| 195 |
+
> **What it means:** [One sentence of plain-English interpretation]
|
| 196 |
+
> **What happens next:** [One sentence describing the next step]
|
| 197 |
+
|
| 198 |
+
**Example - Credit Validation:**
|
| 199 |
+
> **What we did:** We looked up this company's credit file and risk data.
|
| 200 |
+
> **What we found:** The company has a Moderate risk rating and a maximum recommended credit of \$500,000.
|
| 201 |
+
> **What it means:** The requested \$200,000 is well within the recommended limit, with no outstanding past-due amounts.
|
| 202 |
+
> **What happens next:** We'll show you the full credit validation summary.
|
| 203 |
+
|
| 204 |
+
**Example - Aging Forecast:**
|
| 205 |
+
> **What we did:** We ran a payment timing forecast for this account using the ML model.
|
| 206 |
+
> **What we found:** Payments are predicted to remain stable, with the majority expected to stay in the current or 1-30 day buckets.
|
| 207 |
+
> **What it means:** No major payment deterioration is expected over the next month.
|
| 208 |
+
> **What happens next:** Here is the detailed breakdown by payment timing category.
|
| 209 |
+
|
| 210 |
+
---
|
| 211 |
+
|
| 212 |
+
## No-Result and Error Handling - Plain Language
|
| 213 |
+
|
| 214 |
+
Never surface raw system errors or empty-state codes. Translate them.
|
| 215 |
+
|
| 216 |
+
| System state | What to say |
|
| 217 |
+
|---|---|
|
| 218 |
+
| Tool returned empty / null | "We weren't able to retrieve [data type] for this company at this step. We've noted this and continued with the information we have." |
|
| 219 |
+
| Tool call failed | "We ran into a technical issue retrieving [data type]. We tried again and [succeeded / it still wasn't available - we've flagged this]." |
|
| 220 |
+
| No match found (company search) | "We couldn't find a confirmed record for a company matching that name. You may want to check the spelling or try providing the DUNS directly." |
|
| 221 |
+
| Company not in portfolio | "This company is not currently in your monitored accounts." |
|
| 222 |
+
| No alerts found | "There are no alerts matching your search right now." |
|
| 223 |
+
| No past-due amounts | "There are no overdue balances on record for this company." |
|
| 224 |
+
| Bankruptcy present | "This company has an active or recent bankruptcy filing - a significant warning sign for credit." |
|
| 225 |
+
| Entity ID not found | "We couldn't find the account identifier needed to run this forecast. Please check the account reference." |
|
| 226 |
+
| Aging forecast data unavailable | "The payment forecast model doesn't have enough data for this account to produce a reliable forecast." |
|
| 227 |
+
|
| 228 |
+
---
|
| 229 |
+
|
| 230 |
+
## What Never Gets Surfaced to the User
|
| 231 |
+
|
| 232 |
+
These are internal system details. They serve the pipeline; they do not belong in
|
| 233 |
+
user-facing output. Translate or omit entirely.
|
| 234 |
+
|
| 235 |
+
- Entity IDs (UUIDs), Account IDs, Account Numbers used as system identifiers
|
| 236 |
+
- Raw MCP tool names (`aging_forecast`, `query_portfolio`, `manage_folder`, etc.)
|
| 237 |
+
- Credit file types (`ACCOUNT`, `APPLICATION`, `DUNSRIGHT`, `SNAPSHOT`) - use plain equivalents
|
| 238 |
+
- `continue_report_pull` parameter details
|
| 239 |
+
- Stage numbers used in isolation (`Stage 2`, `Stage 3`) - always pair with the stage name
|
| 240 |
+
- FA MCP server connection details
|
| 241 |
+
- Internal confidence thresholds - express as "high confidence", "limited data", etc.
|
| 242 |
+
- JSON field paths (`scoring.paydex.score`, `header.duns`, etc.)
|
| 243 |
+
|
| 244 |
+
---
|
| 245 |
+
|
| 246 |
+
## Decision Outputs - Narrative Template
|
| 247 |
+
|
| 248 |
+
Every final decision output must follow this structure:
|
| 249 |
+
|
| 250 |
+
### 1. Company snapshot (2-3 sentences)
|
| 251 |
+
|
| 252 |
+
Who they are, where they are based, what they do, how long they have been in business.
|
| 253 |
+
|
| 254 |
+
### 2. What we checked
|
| 255 |
+
|
| 256 |
+
A plain list of what was assessed - risk level, payment history, financial position,
|
| 257 |
+
legal records, outstanding balances.
|
| 258 |
+
|
| 259 |
+
### 3. What we found - concerns
|
| 260 |
+
|
| 261 |
+
Each concern, stated plainly with its significance.
|
| 262 |
+
|
| 263 |
+
### 4. What we found - positive signals
|
| 264 |
+
|
| 265 |
+
What checked out fine - reassures the reader that the assessment was thorough.
|
| 266 |
+
|
| 267 |
+
### 5. Our recommendation
|
| 268 |
+
|
| 269 |
+
The suggested credit decision - stated in one sentence, with the primary reason.
|
| 270 |
+
|
| 271 |
+
### 6. If human review is needed: what needs a decision
|
| 272 |
+
|
| 273 |
+
State the specific question, the two options, and what each path means.
|
| 274 |
+
|
| 275 |
+
### 7. Suggested next step
|
| 276 |
+
|
| 277 |
+
One concrete action the reader can take.
|
| 278 |
+
|
| 279 |
+
---
|
| 280 |
+
|
| 281 |
+
## Credit Validation - Narrative Template
|
| 282 |
+
|
| 283 |
+
Credit validation outputs use the compact format defined in `fa-credit-validation.md`:
|
| 284 |
+
10-15 lines total, following the Subject / Executive Summary / Credit Assessment / Response /
|
| 285 |
+
Supporting Factors structure.
|
| 286 |
+
|
| 287 |
+
---
|
| 288 |
+
|
| 289 |
+
## Applying This Layer
|
| 290 |
+
|
| 291 |
+
This file is loaded once at the start of every FA workflow run. Once loaded, every piece
|
| 292 |
+
of output produced during that run - stage narratives, status summaries, error messages,
|
| 293 |
+
decision documents, and audit trail entries - must comply with these rules.
|
| 294 |
+
|
| 295 |
+
**Precedence:** Where a sub-flow file specifies a required output format (e.g. the Credit
|
| 296 |
+
Validation Output Template), that structure is preserved. These plain-language rules govern
|
| 297 |
+
the *language* used inside that structure, not the structure itself.
|
| 298 |
+
|
| 299 |
+
**Analyst detail on request:** If the user asks for more technical detail, system-level
|
| 300 |
+
terminology, or raw scores, provide them. This layer sets the default; it does not
|
| 301 |
+
prohibit depth when explicitly requested.
|
| 302 |
+
|
| 303 |
+
|
data/.codex/.codex/.tmp/plugins/plugins/dnb-finance-analytics/skills/fa-jobs-to-be-done/fa-skills/references/fa-portfolio-management.md
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# FA Portfolio Risk Management - Sub-flow Reference
|
| 2 |
+
|
| 3 |
+
**Tools used:** `query_portfolio`, `get_risk_distribution`, `get_dashboard_overview`,
|
| 4 |
+
`get_companies_and_accounts_count`, `get_dashboard_status`, `manage_folder`
|
| 5 |
+
|
| 6 |
+
This file defines the Portfolio Risk Management workflow. It is loaded by the master
|
| 7 |
+
`SKILL.md` when user intent resolves to portfolio-wide risk assessment, risk
|
| 8 |
+
distribution analysis, top risky companies, or portfolio organisation actions.
|
| 9 |
+
|
| 10 |
+
**Core question answered by this workflow:**
|
| 11 |
+
|
| 12 |
+
> "How risky is my portfolio right now - and what do I need to act on?"
|
| 13 |
+
|
| 14 |
+
This workflow gives a Credit Manager or Financial Analyst a clear view of the portfolio's
|
| 15 |
+
risk posture: where the risk is concentrated, which accounts require immediate attention,
|
| 16 |
+
and what actions are recommended.
|
| 17 |
+
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
## Pipeline Overview
|
| 21 |
+
|
| 22 |
+
```
|
| 23 |
+
Stage 1: Portfolio Health Check
|
| 24 |
+
-> Stage 2: Risk Distribution and Top Risky Accounts
|
| 25 |
+
-> Stage 3: Recommended Actions and Portfolio Organisation
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
---
|
| 29 |
+
|
| 30 |
+
## Trigger Examples
|
| 31 |
+
|
| 32 |
+
- "Give me a portfolio risk overview."
|
| 33 |
+
- "What are my top 10 riskiest customers?"
|
| 34 |
+
- "Show me the risk distribution across the portfolio."
|
| 35 |
+
- "Which accounts have high outstanding balances past due?"
|
| 36 |
+
- "Portfolio overview."
|
| 37 |
+
- "Who are my high-risk companies?"
|
| 38 |
+
- "Move all high-risk accounts to the Review folder."
|
| 39 |
+
- "What is the overall health of my portfolio?"
|
| 40 |
+
|
| 41 |
+
---
|
| 42 |
+
|
| 43 |
+
## Stage 1 - Portfolio Health Check
|
| 44 |
+
|
| 45 |
+
**Purpose:** Establish the current size, shape, and status of the portfolio before
|
| 46 |
+
drilling into risk detail.
|
| 47 |
+
|
| 48 |
+
**Tool call sequence:**
|
| 49 |
+
|
| 50 |
+
1. Call `get_dashboard_status` to check that the portfolio dashboard is operational.
|
| 51 |
+
2. Call `get_companies_and_accounts_count` to retrieve the total number of companies
|
| 52 |
+
and accounts in the portfolio.
|
| 53 |
+
3. Call `get_dashboard_overview` to retrieve the portfolio-level summary - active
|
| 54 |
+
accounts, total outstanding exposure, summary risk flags.
|
| 55 |
+
|
| 56 |
+
**Required outputs:**
|
| 57 |
+
|
| 58 |
+
- Portfolio status (operational / degraded)
|
| 59 |
+
- Total company count
|
| 60 |
+
- Total account count
|
| 61 |
+
- Total outstanding exposure (aggregate)
|
| 62 |
+
- Portfolio-level summary flags (e.g. number of bankruptcies, number of high-risk accounts)
|
| 63 |
+
|
| 64 |
+
**Narrative:** Summarise the portfolio at a glance. State how many companies and accounts
|
| 65 |
+
are being monitored, total exposure, and any headline risk flags from the dashboard.
|
| 66 |
+
|
| 67 |
+
**Failure condition:** If `get_dashboard_status` returns a degraded or unavailable state,
|
| 68 |
+
annotate and proceed with the tools that remain available. Do not halt the workflow for a
|
| 69 |
+
dashboard status issue - continue to Stage 2 using `query_portfolio` and
|
| 70 |
+
`get_risk_distribution` directly.
|
| 71 |
+
|
| 72 |
+
---
|
| 73 |
+
|
| 74 |
+
## Stage 2 - Risk Distribution and Top Risky Accounts
|
| 75 |
+
|
| 76 |
+
**Purpose:** Map the risk distribution across the portfolio and surface the accounts
|
| 77 |
+
requiring the most immediate attention.
|
| 78 |
+
|
| 79 |
+
**Tool call sequence:**
|
| 80 |
+
|
| 81 |
+
1. Call `get_risk_distribution` to retrieve the distribution of risk levels across the
|
| 82 |
+
portfolio (e.g. counts and percentages at Low / Moderate / High / Severe risk bands).
|
| 83 |
+
2. Call `query_portfolio` to retrieve the list of companies sorted by risk severity. Use
|
| 84 |
+
the following filter and sort logic:
|
| 85 |
+
- Primary sort: `overall_business_risk` descending (highest risk first)
|
| 86 |
+
- Secondary sort: `total_past_due_dollars` descending
|
| 87 |
+
- Include fields: company name, DUNS, `overall_business_risk`, `max_credit_recommendation`,
|
| 88 |
+
`paydex_current`, `failure_score`, `delinquency_score`, `total_outstanding_dollars`,
|
| 89 |
+
`total_past_due_dollars`, `credit_limit_utilization`, `db_bankruptcy_present`
|
| 90 |
+
- Return top 10-20 accounts by default unless the user specifies a different count
|
| 91 |
+
3. If the user asked specifically about accounts with high past-due balances: apply an
|
| 92 |
+
additional filter on `total_past_due_dollars` > 0 or above a stated threshold.
|
| 93 |
+
|
| 94 |
+
**Required outputs:**
|
| 95 |
+
|
| 96 |
+
- Risk distribution table: count and percentage of portfolio at each risk band
|
| 97 |
+
- Top risky accounts table: ranked list with risk level, outstanding, past due, PAYDEX
|
| 98 |
+
- Accounts with bankruptcy present: flagged separately
|
| 99 |
+
- Accounts with credit limit utilisation > 90%: flagged separately (high concentration risk)
|
| 100 |
+
|
| 101 |
+
**Narrative:** Describe the risk distribution - what percentage of the portfolio is in
|
| 102 |
+
each risk band. Identify the top risky accounts by name and summarise why they are flagged
|
| 103 |
+
(high outstanding, high past due, poor payment score, bankruptcy). Highlight any accounts
|
| 104 |
+
requiring immediate action.
|
| 105 |
+
|
| 106 |
+
**Failure condition:** If `get_risk_distribution` fails: derive a risk distribution
|
| 107 |
+
approximation from `query_portfolio` results by grouping on `overall_business_risk`.
|
| 108 |
+
Annotate that the distribution is approximated from portfolio data.
|
| 109 |
+
|
| 110 |
+
---
|
| 111 |
+
|
| 112 |
+
## Stage 3 - Recommended Actions and Portfolio Organisation
|
| 113 |
+
|
| 114 |
+
**Purpose:** Translate the risk picture into concrete actions. Optionally organise
|
| 115 |
+
high-risk accounts into designated portfolio folders.
|
| 116 |
+
|
| 117 |
+
**Tool call sequence (for portfolio organisation requests):**
|
| 118 |
+
|
| 119 |
+
1. Call `manage_folder` with action `LIST` to retrieve the current folder structure.
|
| 120 |
+
2. For each account requiring movement:
|
| 121 |
+
- Identify the appropriate target folder based on risk level:
|
| 122 |
+
- High / Severe risk -> "High Risk" or "Review" folder
|
| 123 |
+
- Accounts with bankruptcy -> "Bankruptcy / Workout" folder
|
| 124 |
+
- Accounts with high utilisation -> "Credit Review" folder
|
| 125 |
+
- Call `manage_folder` with action `MOVE` or `COPY` to place the account in the
|
| 126 |
+
target folder.
|
| 127 |
+
- If the target folder does not exist: call `manage_folder` with action `CREATE`
|
| 128 |
+
first, then `MOVE` or `COPY`.
|
| 129 |
+
3. Confirm all folder movements by summarising what was moved and where.
|
| 130 |
+
|
| 131 |
+
**Recommended actions (always include in output, even when no folder actions are taken):**
|
| 132 |
+
|
| 133 |
+
| Risk signal | Recommended action |
|
| 134 |
+
|---|---|
|
| 135 |
+
| OBR = High or Severe | Place on watch list; reduce or suspend credit extension; request updated financial information |
|
| 136 |
+
| Bankruptcy present | Escalate to credit committee immediately; freeze further credit exposure |
|
| 137 |
+
| Past due > 90 days | Initiate collections contact; review credit limit |
|
| 138 |
+
| Credit utilisation > 90% | Review credit limit against MCR before extending further credit |
|
| 139 |
+
| PAYDEX < 50 | Flag for payment behaviour review; consider requiring prepayment or reduced terms |
|
| 140 |
+
| Failure score class >= 4 | Elevate monitoring frequency; consider insurance or collateral requirements |
|
| 141 |
+
|
| 142 |
+
**Required outputs:**
|
| 143 |
+
|
| 144 |
+
- List of recommended actions per high-risk account (name, risk signal, recommended action)
|
| 145 |
+
- Folder organisation confirmation (if folder actions were taken)
|
| 146 |
+
- Summary of what changed vs what remains for human review
|
| 147 |
+
|
| 148 |
+
**Narrative:** Summarise the recommended actions clearly. For each flagged account, state
|
| 149 |
+
the specific risk signal and what the credit team should do about it. If folder organisation
|
| 150 |
+
was performed, confirm what was moved and where.
|
| 151 |
+
|
| 152 |
+
**Failure condition:** If folder management tools fail, document the failure, output the
|
| 153 |
+
recommended actions list, and advise the user to perform folder organisation manually.
|
| 154 |
+
|
| 155 |
+
---
|
| 156 |
+
|
| 157 |
+
## Persona Handling
|
| 158 |
+
|
| 159 |
+
This workflow is used by both Credit Managers and Financial Analysts with different
|
| 160 |
+
information needs. The persona layer (loaded at Step 2.5 of the master skill) governs
|
| 161 |
+
how the output is framed:
|
| 162 |
+
|
| 163 |
+
| Persona | Focus |
|
| 164 |
+
|---|---|
|
| 165 |
+
| Credit Manager | Decision-focused: which accounts need action, what is the credit exposure, what should I approve or restrict |
|
| 166 |
+
| Financial Analyst | Trend-focused: how is the portfolio evolving, what are the concentration patterns, what do the distributions tell us |
|
| 167 |
+
| Plain language | Accessible summary: what the portfolio looks like, what needs attention, what to do next |
|
| 168 |
+
|
| 169 |
+
---
|
| 170 |
+
|
| 171 |
+
## Handoff Contracts
|
| 172 |
+
|
| 173 |
+
| Handoff | Payload |
|
| 174 |
+
|---|---|
|
| 175 |
+
| Stage 1 -> Stage 2 | Portfolio status, company/account counts, total exposure, dashboard summary flags |
|
| 176 |
+
| Stage 2 -> Stage 3 | Risk distribution, top risky accounts list, bankruptcy flags, high-utilisation flags |
|
| 177 |
+
| Stage 3 -> Output | Recommended actions per account, folder organisation confirmation, full audit trail |
|
| 178 |
+
|
| 179 |
+
---
|
| 180 |
+
|
| 181 |
+
## Known Tool Integration Notes
|
| 182 |
+
|
| 183 |
+
| Tool | Issue | Handling |
|
| 184 |
+
|---|---|---|
|
| 185 |
+
| `query_portfolio` | Supports rich filtering and sorting - use field-level filters for targeted queries | Always specify sort fields and required output fields explicitly to avoid over-fetching |
|
| 186 |
+
| `get_risk_distribution` | Returns aggregated risk bands - does not return individual company data | Always pair with `query_portfolio` for account-level detail |
|
| 187 |
+
| `manage_folder` | `LIST` must be called before `MOVE` or `COPY` - never assume folder names | Always LIST first; create new folders if required target does not exist |
|
| 188 |
+
| `get_dashboard_overview` | May return stale data if dashboard has not been refreshed | Note data freshness in the output; advise user if dashboard status shows degraded |
|
| 189 |
+
| `get_companies_and_accounts_count` | Returns portfolio-level totals only | Use alongside `query_portfolio` for account-level breakdown |
|
| 190 |
+
|
| 191 |
+
---
|
| 192 |
+
|
| 193 |
+
## Behavioural Requirements (Portfolio Management - specific)
|
| 194 |
+
|
| 195 |
+
- Never make binding credit decisions or modifications from this workflow. The output
|
| 196 |
+
is an informational risk view and a set of recommendations - the credit manager retains
|
| 197 |
+
authority over all credit actions.
|
| 198 |
+
- Always show the risk distribution before showing individual accounts - context before
|
| 199 |
+
detail.
|
| 200 |
+
- If the user asks to move accounts to folders: confirm what will be moved, then execute.
|
| 201 |
+
Do not move accounts without confirmation if the scope is broad (e.g. "move all high-risk
|
| 202 |
+
accounts") - ask for confirmation before executing bulk folder operations.
|
| 203 |
+
- Always include the complete audit trail at the bottom of the output.
|
| 204 |
+
|
| 205 |
+
|
data/.codex/.codex/.tmp/plugins/plugins/github/.codex-plugin/plugin.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "github",
|
| 3 |
+
"version": "0.1.6",
|
| 4 |
+
"description": "Inspect repositories, triage pull requests and issues, debug CI, and publish changes through a hybrid GitHub connector and CLI workflow.",
|
| 5 |
+
"author": {
|
| 6 |
+
"name": "OpenAI",
|
| 7 |
+
"email": "support@openai.com",
|
| 8 |
+
"url": "https://openai.com/"
|
| 9 |
+
},
|
| 10 |
+
"homepage": "https://github.com/",
|
| 11 |
+
"repository": "https://github.com/openai/plugins",
|
| 12 |
+
"license": "MIT",
|
| 13 |
+
"keywords": [
|
| 14 |
+
"github",
|
| 15 |
+
"pull-request",
|
| 16 |
+
"code-review",
|
| 17 |
+
"issues",
|
| 18 |
+
"ci",
|
| 19 |
+
"actions"
|
| 20 |
+
],
|
| 21 |
+
"skills": "./skills/",
|
| 22 |
+
"apps": "./.app.json",
|
| 23 |
+
"mcpServers": "./.mcp.json",
|
| 24 |
+
"interface": {
|
| 25 |
+
"displayName": "GitHub",
|
| 26 |
+
"shortDescription": "Triage PRs, issues, CI, and publish flows",
|
| 27 |
+
"longDescription": "Use GitHub to inspect repositories, review pull requests, address feedback, debug failing Actions checks, and prepare code changes for review through a connector-first workflow with targeted CLI fallbacks.",
|
| 28 |
+
"developerName": "OpenAI",
|
| 29 |
+
"category": "Developer Tools",
|
| 30 |
+
"capabilities": [
|
| 31 |
+
"Interactive",
|
| 32 |
+
"Write"
|
| 33 |
+
],
|
| 34 |
+
"websiteURL": "https://github.com/",
|
| 35 |
+
"privacyPolicyURL": "https://docs.github.com/site-policy/privacy-policies/github-general-privacy-statement",
|
| 36 |
+
"termsOfServiceURL": "https://docs.github.com/en/site-policy/github-terms/github-terms-of-service",
|
| 37 |
+
"defaultPrompt": [
|
| 38 |
+
"Inspect PRs, triage issues, debug failing checks, and prepare code changes for review"
|
| 39 |
+
],
|
| 40 |
+
"composerIcon": "./assets/github-small.svg",
|
| 41 |
+
"logo": "./assets/logo.png",
|
| 42 |
+
"screenshots": [],
|
| 43 |
+
"brandColor": "#24292F"
|
| 44 |
+
}
|
| 45 |
+
}
|
data/.codex/.codex/.tmp/plugins/plugins/github/assets/github-small.svg
ADDED
|
|
data/.codex/.codex/.tmp/plugins/plugins/github/skills/gh-address-comments/LICENSE.txt
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
Apache License
|
| 3 |
+
Version 2.0, January 2004
|
| 4 |
+
http://www.apache.org/licenses/
|
| 5 |
+
|
| 6 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 7 |
+
|
| 8 |
+
1. Definitions.
|
| 9 |
+
|
| 10 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 11 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 12 |
+
|
| 13 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 14 |
+
the copyright owner that is granting the License.
|
| 15 |
+
|
| 16 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 17 |
+
other entities that control, are controlled by, or are under common
|
| 18 |
+
control with that entity. For the purposes of this definition,
|
| 19 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 20 |
+
direction or management of such entity, whether by contract or
|
| 21 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 22 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 23 |
+
|
| 24 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 25 |
+
exercising permissions granted by this License.
|
| 26 |
+
|
| 27 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 28 |
+
including but not limited to software source code, documentation
|
| 29 |
+
source, and configuration files.
|
| 30 |
+
|
| 31 |
+
"Object" form shall mean any form resulting from mechanical
|
| 32 |
+
transformation or translation of a Source form, including but
|
| 33 |
+
not limited to compiled object code, generated documentation,
|
| 34 |
+
and conversions to other media types.
|
| 35 |
+
|
| 36 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 37 |
+
Object form, made available under the License, as indicated by a
|
| 38 |
+
copyright notice that is included in or attached to the work
|
| 39 |
+
(an example is provided in the Appendix below).
|
| 40 |
+
|
| 41 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 42 |
+
form, that is based on (or derived from) the Work and for which the
|
| 43 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 44 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 45 |
+
of this License, Derivative Works shall not include works that remain
|
| 46 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 47 |
+
the Work and Derivative Works thereof.
|
| 48 |
+
|
| 49 |
+
"Contribution" shall mean any work of authorship, including
|
| 50 |
+
the original version of the Work and any modifications or additions
|
| 51 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 52 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 53 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 54 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 55 |
+
means any form of electronic, verbal, or written communication sent
|
| 56 |
+
to the Licensor or its representatives, including but not limited to
|
| 57 |
+
communication on electronic mailing lists, source code control systems,
|
| 58 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 59 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 60 |
+
excluding communication that is conspicuously marked or otherwise
|
| 61 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 62 |
+
|
| 63 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 64 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 65 |
+
subsequently incorporated within the Work.
|
| 66 |
+
|
| 67 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 68 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 69 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 70 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 71 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 72 |
+
Work and such Derivative Works in Source or Object form.
|
| 73 |
+
|
| 74 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 75 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 76 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 77 |
+
(except as stated in this section) patent license to make, have made,
|
| 78 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 79 |
+
where such license applies only to those patent claims licensable
|
| 80 |
+
by such Contributor that are necessarily infringed by their
|
| 81 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 82 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 83 |
+
institute patent litigation against any entity (including a
|
| 84 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 85 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 86 |
+
or contributory patent infringement, then any patent licenses
|
| 87 |
+
granted to You under this License for that Work shall terminate
|
| 88 |
+
as of the date such litigation is filed.
|
| 89 |
+
|
| 90 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 91 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 92 |
+
modifications, and in Source or Object form, provided that You
|
| 93 |
+
meet the following conditions:
|
| 94 |
+
|
| 95 |
+
(a) You must give any other recipients of the Work or
|
| 96 |
+
Derivative Works a copy of this License; and
|
| 97 |
+
|
| 98 |
+
(b) You must cause any modified files to carry prominent notices
|
| 99 |
+
stating that You changed the files; and
|
| 100 |
+
|
| 101 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 102 |
+
that You distribute, all copyright, patent, trademark, and
|
| 103 |
+
attribution notices from the Source form of the Work,
|
| 104 |
+
excluding those notices that do not pertain to any part of
|
| 105 |
+
the Derivative Works; and
|
| 106 |
+
|
| 107 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 108 |
+
distribution, then any Derivative Works that You distribute must
|
| 109 |
+
include a readable copy of the attribution notices contained
|
| 110 |
+
within such NOTICE file, excluding those notices that do not
|
| 111 |
+
pertain to any part of the Derivative Works, in at least one
|
| 112 |
+
of the following places: within a NOTICE text file distributed
|
| 113 |
+
as part of the Derivative Works; within the Source form or
|
| 114 |
+
documentation, if provided along with the Derivative Works; or,
|
| 115 |
+
within a display generated by the Derivative Works, if and
|
| 116 |
+
wherever such third-party notices normally appear. The contents
|
| 117 |
+
of the NOTICE file are for informational purposes only and
|
| 118 |
+
do not modify the License. You may add Your own attribution
|
| 119 |
+
notices within Derivative Works that You distribute, alongside
|
| 120 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 121 |
+
that such additional attribution notices cannot be construed
|
| 122 |
+
as modifying the License.
|
| 123 |
+
|
| 124 |
+
You may add Your own copyright statement to Your modifications and
|
| 125 |
+
may provide additional or different license terms and conditions
|
| 126 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 127 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 128 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 129 |
+
the conditions stated in this License.
|
| 130 |
+
|
| 131 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 132 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 133 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 134 |
+
this License, without any additional terms or conditions.
|
| 135 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 136 |
+
the terms of any separate license agreement you may have executed
|
| 137 |
+
with Licensor regarding such Contributions.
|
| 138 |
+
|
| 139 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 140 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 141 |
+
except as required for reasonable and customary use in describing the
|
| 142 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 143 |
+
|
| 144 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 145 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 146 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 147 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 148 |
+
implied, including, without limitation, any warranties or conditions
|
| 149 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 150 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 151 |
+
appropriateness of using or redistributing the Work and assume any
|
| 152 |
+
risks associated with Your exercise of permissions under this License.
|
| 153 |
+
|
| 154 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 155 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 156 |
+
unless required by applicable law (such as deliberate and grossly
|
| 157 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 158 |
+
liable to You for damages, including any direct, indirect, special,
|
| 159 |
+
incidental, or consequential damages of any character arising as a
|
| 160 |
+
result of this License or out of the use or inability to use the
|
| 161 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 162 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 163 |
+
other commercial damages or losses), even if such Contributor
|
| 164 |
+
has been advised of the possibility of such damages.
|
| 165 |
+
|
| 166 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 167 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 168 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 169 |
+
or other liability obligations and/or rights consistent with this
|
| 170 |
+
License. However, in accepting such obligations, You may act only
|
| 171 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 172 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 173 |
+
defend, and hold each Contributor harmless for any liability
|
| 174 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 175 |
+
of your accepting any such warranty or additional liability.
|
| 176 |
+
|
| 177 |
+
END OF TERMS AND CONDITIONS
|
| 178 |
+
|
| 179 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 180 |
+
|
| 181 |
+
To apply the Apache License to your work, attach the following
|
| 182 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 183 |
+
replaced with your own identifying information. (Don't include
|
| 184 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 185 |
+
comment syntax for the file format. We also recommend that a
|
| 186 |
+
file or class name and description of purpose be included on the
|
| 187 |
+
same "printed page" as the copyright notice for easier
|
| 188 |
+
identification within third-party archives.
|
| 189 |
+
|
| 190 |
+
Copyright [yyyy] [name of copyright owner]
|
| 191 |
+
|
| 192 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 193 |
+
you may not use this file except in compliance with the License.
|
| 194 |
+
You may obtain a copy of the License at
|
| 195 |
+
|
| 196 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 197 |
+
|
| 198 |
+
Unless required by applicable law or agreed to in writing, software
|
| 199 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 200 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 201 |
+
See the License for the specific language governing permissions and
|
| 202 |
+
limitations under the License.
|
data/.codex/.codex/.tmp/plugins/plugins/github/skills/gh-address-comments/SKILL.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: gh-address-comments
|
| 3 |
+
description: Address actionable GitHub pull request review feedback. Use when the user wants to inspect unresolved review threads, requested changes, or inline review comments on a PR, then implement selected fixes. Use the GitHub app for PR metadata and flat comment reads, and use the bundled GraphQL script via `gh` whenever thread-level state, resolution status, or inline review context matters.
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# GitHub PR Comment Handler
|
| 7 |
+
|
| 8 |
+
Use this skill when the user wants to work through requested changes on a GitHub pull request. Use the GitHub app from this plugin for PR metadata and patch context, but treat thread-aware review data as a `gh api graphql` problem because the connector comment surface is flat and does not preserve full review-thread state.
|
| 9 |
+
|
| 10 |
+
Run all `gh` commands with elevated network access. If CLI auth is required, confirm `gh auth status` first and ask the user to authenticate with `gh auth login` if it fails.
|
| 11 |
+
|
| 12 |
+
## Workflow
|
| 13 |
+
|
| 14 |
+
1. Resolve the PR.
|
| 15 |
+
- If the user provides a repository and PR number or URL, use that directly.
|
| 16 |
+
- If the request is about the current branch PR, use local git context plus `gh auth status` and `gh pr view --json number,url` to resolve it.
|
| 17 |
+
2. Inspect review context with thread-aware reads.
|
| 18 |
+
- Use the GitHub app from this plugin to fetch PR metadata and patch context when the repo and PR are known.
|
| 19 |
+
- Use the bundled `scripts/fetch_comments.py` workflow whenever the task depends on unresolved review threads, inline review locations, or resolution state. That script fetches `reviewThreads`, `isResolved`, `isOutdated`, and file and line anchors that the connector comment surface does not preserve.
|
| 20 |
+
- Use connector-only comment reads only for lightweight top-level PR comment summaries.
|
| 21 |
+
3. Cluster actionable review threads.
|
| 22 |
+
- Group comments by file or behavior area.
|
| 23 |
+
- Separate actionable change requests from informational comments, approvals, already-resolved threads, and duplicates.
|
| 24 |
+
4. Confirm scope before editing.
|
| 25 |
+
- Present numbered actionable threads with a one-line summary of the required change.
|
| 26 |
+
- If the user did not ask to fix everything, ask which threads to address.
|
| 27 |
+
- If the user asks to fix everything, interpret that as all unresolved actionable threads and call out anything ambiguous.
|
| 28 |
+
5. Implement the selected fixes locally.
|
| 29 |
+
- Keep each code change traceable back to the thread or feedback cluster it addresses.
|
| 30 |
+
- If a comment calls for explanation rather than code, draft the response rather than forcing a code change.
|
| 31 |
+
6. Summarize the result.
|
| 32 |
+
- List which threads were addressed, which were intentionally left open, and what tests or checks support the change.
|
| 33 |
+
|
| 34 |
+
## Write Safety
|
| 35 |
+
|
| 36 |
+
- Do not reply on GitHub, resolve review threads, or submit a review unless the user explicitly asks for that write action.
|
| 37 |
+
- If review comments conflict with each other or would cause a behavioral regression, surface the tradeoff before making changes.
|
| 38 |
+
- If a comment is ambiguous, ask for clarification or draft a proposed response instead of guessing.
|
| 39 |
+
- Do not treat flat PR comments from the connector as a complete representation of review-thread state.
|
| 40 |
+
- If `gh` hits auth or rate-limit issues mid-run, ask the user to re-authenticate and retry.
|
| 41 |
+
|
| 42 |
+
## Fallback
|
| 43 |
+
|
| 44 |
+
If neither the connector nor `gh` can resolve the PR cleanly, tell the user whether the blocker is missing repository scope, missing PR context, or CLI authentication, then ask for the missing repo or PR identifier or for a refreshed `gh` login.
|
data/.codex/.codex/.tmp/plugins/plugins/github/skills/gh-address-comments/agents/openai.yaml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "Review Follow-up"
|
| 3 |
+
short_description: "Address actionable PR feedback"
|
| 4 |
+
icon_small: "./assets/github-small.svg"
|
| 5 |
+
icon_large: "./assets/github.png"
|
| 6 |
+
default_prompt: "Use $gh-address-comments to review unresolved pull request feedback, implement the selected fixes, and summarize what changed."
|
data/.codex/.codex/.tmp/plugins/plugins/github/skills/gh-address-comments/assets/github-small.svg
ADDED
|
|
data/.codex/.codex/.tmp/plugins/plugins/github/skills/gh-address-comments/scripts/fetch_comments.py
ADDED
|
@@ -0,0 +1,237 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""
|
| 3 |
+
Fetch all PR conversation comments + reviews + review threads (inline threads)
|
| 4 |
+
for the PR associated with the current git branch, by shelling out to:
|
| 5 |
+
|
| 6 |
+
gh api graphql
|
| 7 |
+
|
| 8 |
+
Requires:
|
| 9 |
+
- `gh auth login` already set up
|
| 10 |
+
- current branch has an associated (open) PR
|
| 11 |
+
|
| 12 |
+
Usage:
|
| 13 |
+
python fetch_comments.py > pr_comments.json
|
| 14 |
+
"""
|
| 15 |
+
|
| 16 |
+
from __future__ import annotations
|
| 17 |
+
|
| 18 |
+
import json
|
| 19 |
+
import subprocess
|
| 20 |
+
import sys
|
| 21 |
+
from typing import Any
|
| 22 |
+
|
| 23 |
+
QUERY = """\
|
| 24 |
+
query(
|
| 25 |
+
$owner: String!,
|
| 26 |
+
$repo: String!,
|
| 27 |
+
$number: Int!,
|
| 28 |
+
$commentsCursor: String,
|
| 29 |
+
$reviewsCursor: String,
|
| 30 |
+
$threadsCursor: String
|
| 31 |
+
) {
|
| 32 |
+
repository(owner: $owner, name: $repo) {
|
| 33 |
+
pullRequest(number: $number) {
|
| 34 |
+
number
|
| 35 |
+
url
|
| 36 |
+
title
|
| 37 |
+
state
|
| 38 |
+
|
| 39 |
+
# Top-level "Conversation" comments (issue comments on the PR)
|
| 40 |
+
comments(first: 100, after: $commentsCursor) {
|
| 41 |
+
pageInfo { hasNextPage endCursor }
|
| 42 |
+
nodes {
|
| 43 |
+
id
|
| 44 |
+
body
|
| 45 |
+
createdAt
|
| 46 |
+
updatedAt
|
| 47 |
+
author { login }
|
| 48 |
+
}
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
# Review submissions (Approve / Request changes / Comment), with body if present
|
| 52 |
+
reviews(first: 100, after: $reviewsCursor) {
|
| 53 |
+
pageInfo { hasNextPage endCursor }
|
| 54 |
+
nodes {
|
| 55 |
+
id
|
| 56 |
+
state
|
| 57 |
+
body
|
| 58 |
+
submittedAt
|
| 59 |
+
author { login }
|
| 60 |
+
}
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
# Inline review threads (grouped), includes resolved state
|
| 64 |
+
reviewThreads(first: 100, after: $threadsCursor) {
|
| 65 |
+
pageInfo { hasNextPage endCursor }
|
| 66 |
+
nodes {
|
| 67 |
+
id
|
| 68 |
+
isResolved
|
| 69 |
+
isOutdated
|
| 70 |
+
path
|
| 71 |
+
line
|
| 72 |
+
diffSide
|
| 73 |
+
startLine
|
| 74 |
+
startDiffSide
|
| 75 |
+
originalLine
|
| 76 |
+
originalStartLine
|
| 77 |
+
resolvedBy { login }
|
| 78 |
+
comments(first: 100) {
|
| 79 |
+
nodes {
|
| 80 |
+
id
|
| 81 |
+
body
|
| 82 |
+
createdAt
|
| 83 |
+
updatedAt
|
| 84 |
+
author { login }
|
| 85 |
+
}
|
| 86 |
+
}
|
| 87 |
+
}
|
| 88 |
+
}
|
| 89 |
+
}
|
| 90 |
+
}
|
| 91 |
+
}
|
| 92 |
+
"""
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
def _run(cmd: list[str], stdin: str | None = None) -> str:
|
| 96 |
+
p = subprocess.run(cmd, input=stdin, capture_output=True, text=True)
|
| 97 |
+
if p.returncode != 0:
|
| 98 |
+
raise RuntimeError(f"Command failed: {' '.join(cmd)}\n{p.stderr}")
|
| 99 |
+
return p.stdout
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
def _run_json(cmd: list[str], stdin: str | None = None) -> dict[str, Any]:
|
| 103 |
+
out = _run(cmd, stdin=stdin)
|
| 104 |
+
try:
|
| 105 |
+
return json.loads(out)
|
| 106 |
+
except json.JSONDecodeError as e:
|
| 107 |
+
raise RuntimeError(f"Failed to parse JSON from command output: {e}\nRaw:\n{out}") from e
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
def _ensure_gh_authenticated() -> None:
|
| 111 |
+
try:
|
| 112 |
+
_run(["gh", "auth", "status"])
|
| 113 |
+
except RuntimeError:
|
| 114 |
+
print("run `gh auth login` to authenticate the GitHub CLI", file=sys.stderr)
|
| 115 |
+
raise RuntimeError("gh auth status failed; run `gh auth login` to authenticate the GitHub CLI") from None
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
def gh_pr_view_json(fields: str) -> dict[str, Any]:
|
| 119 |
+
# fields is a comma-separated list like: "number,headRepositoryOwner,headRepository"
|
| 120 |
+
return _run_json(["gh", "pr", "view", "--json", fields])
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
def get_current_pr_ref() -> tuple[str, str, int]:
|
| 124 |
+
"""
|
| 125 |
+
Resolve the PR for the current branch (whatever gh considers associated).
|
| 126 |
+
Works for cross-repo PRs too, by reading head repository owner/name.
|
| 127 |
+
"""
|
| 128 |
+
pr = gh_pr_view_json("number,headRepositoryOwner,headRepository")
|
| 129 |
+
owner = pr["headRepositoryOwner"]["login"]
|
| 130 |
+
repo = pr["headRepository"]["name"]
|
| 131 |
+
number = int(pr["number"])
|
| 132 |
+
return owner, repo, number
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
def gh_api_graphql(
|
| 136 |
+
owner: str,
|
| 137 |
+
repo: str,
|
| 138 |
+
number: int,
|
| 139 |
+
comments_cursor: str | None = None,
|
| 140 |
+
reviews_cursor: str | None = None,
|
| 141 |
+
threads_cursor: str | None = None,
|
| 142 |
+
) -> dict[str, Any]:
|
| 143 |
+
"""
|
| 144 |
+
Call `gh api graphql` using -F variables, avoiding JSON blobs with nulls.
|
| 145 |
+
Query is passed via stdin using query=@- to avoid shell newline/quoting issues.
|
| 146 |
+
"""
|
| 147 |
+
cmd = [
|
| 148 |
+
"gh",
|
| 149 |
+
"api",
|
| 150 |
+
"graphql",
|
| 151 |
+
"-F",
|
| 152 |
+
"query=@-",
|
| 153 |
+
"-F",
|
| 154 |
+
f"owner={owner}",
|
| 155 |
+
"-F",
|
| 156 |
+
f"repo={repo}",
|
| 157 |
+
"-F",
|
| 158 |
+
f"number={number}",
|
| 159 |
+
]
|
| 160 |
+
if comments_cursor:
|
| 161 |
+
cmd += ["-F", f"commentsCursor={comments_cursor}"]
|
| 162 |
+
if reviews_cursor:
|
| 163 |
+
cmd += ["-F", f"reviewsCursor={reviews_cursor}"]
|
| 164 |
+
if threads_cursor:
|
| 165 |
+
cmd += ["-F", f"threadsCursor={threads_cursor}"]
|
| 166 |
+
|
| 167 |
+
return _run_json(cmd, stdin=QUERY)
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
def fetch_all(owner: str, repo: str, number: int) -> dict[str, Any]:
|
| 171 |
+
conversation_comments: list[dict[str, Any]] = []
|
| 172 |
+
reviews: list[dict[str, Any]] = []
|
| 173 |
+
review_threads: list[dict[str, Any]] = []
|
| 174 |
+
|
| 175 |
+
comments_cursor: str | None = None
|
| 176 |
+
reviews_cursor: str | None = None
|
| 177 |
+
threads_cursor: str | None = None
|
| 178 |
+
|
| 179 |
+
pr_meta: dict[str, Any] | None = None
|
| 180 |
+
|
| 181 |
+
while True:
|
| 182 |
+
payload = gh_api_graphql(
|
| 183 |
+
owner=owner,
|
| 184 |
+
repo=repo,
|
| 185 |
+
number=number,
|
| 186 |
+
comments_cursor=comments_cursor,
|
| 187 |
+
reviews_cursor=reviews_cursor,
|
| 188 |
+
threads_cursor=threads_cursor,
|
| 189 |
+
)
|
| 190 |
+
|
| 191 |
+
if "errors" in payload and payload["errors"]:
|
| 192 |
+
raise RuntimeError(f"GitHub GraphQL errors:\n{json.dumps(payload['errors'], indent=2)}")
|
| 193 |
+
|
| 194 |
+
pr = payload["data"]["repository"]["pullRequest"]
|
| 195 |
+
if pr_meta is None:
|
| 196 |
+
pr_meta = {
|
| 197 |
+
"number": pr["number"],
|
| 198 |
+
"url": pr["url"],
|
| 199 |
+
"title": pr["title"],
|
| 200 |
+
"state": pr["state"],
|
| 201 |
+
"owner": owner,
|
| 202 |
+
"repo": repo,
|
| 203 |
+
}
|
| 204 |
+
|
| 205 |
+
c = pr["comments"]
|
| 206 |
+
r = pr["reviews"]
|
| 207 |
+
t = pr["reviewThreads"]
|
| 208 |
+
|
| 209 |
+
conversation_comments.extend(c.get("nodes") or [])
|
| 210 |
+
reviews.extend(r.get("nodes") or [])
|
| 211 |
+
review_threads.extend(t.get("nodes") or [])
|
| 212 |
+
|
| 213 |
+
comments_cursor = c["pageInfo"]["endCursor"] if c["pageInfo"]["hasNextPage"] else None
|
| 214 |
+
reviews_cursor = r["pageInfo"]["endCursor"] if r["pageInfo"]["hasNextPage"] else None
|
| 215 |
+
threads_cursor = t["pageInfo"]["endCursor"] if t["pageInfo"]["hasNextPage"] else None
|
| 216 |
+
|
| 217 |
+
if not (comments_cursor or reviews_cursor or threads_cursor):
|
| 218 |
+
break
|
| 219 |
+
|
| 220 |
+
assert pr_meta is not None
|
| 221 |
+
return {
|
| 222 |
+
"pull_request": pr_meta,
|
| 223 |
+
"conversation_comments": conversation_comments,
|
| 224 |
+
"reviews": reviews,
|
| 225 |
+
"review_threads": review_threads,
|
| 226 |
+
}
|
| 227 |
+
|
| 228 |
+
|
| 229 |
+
def main() -> None:
|
| 230 |
+
_ensure_gh_authenticated()
|
| 231 |
+
owner, repo, number = get_current_pr_ref()
|
| 232 |
+
result = fetch_all(owner, repo, number)
|
| 233 |
+
print(json.dumps(result, indent=2))
|
| 234 |
+
|
| 235 |
+
|
| 236 |
+
if __name__ == "__main__":
|
| 237 |
+
main()
|
data/.codex/.codex/.tmp/plugins/plugins/github/skills/gh-fix-ci/LICENSE.txt
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf of
|
| 171 |
+
any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 182 |
+
replaced with your own identifying information. (Don\'t include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recommend that a
|
| 185 |
+
file or class name and description of purpose be included on the
|
| 186 |
+
same "printed page" as the copyright notice for easier
|
| 187 |
+
identification within third-party archives.
|
| 188 |
+
|
| 189 |
+
Copyright [yyyy] [name of copyright owner]
|
| 190 |
+
|
| 191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 192 |
+
you may not use this file except in compliance with the License.
|
| 193 |
+
You may obtain a copy of the License at
|
| 194 |
+
|
| 195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 196 |
+
|
| 197 |
+
Unless required by applicable law or agreed to in writing, software
|
| 198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 200 |
+
See the License for the specific language governing permissions and
|
| 201 |
+
limitations under the License.
|
data/.codex/.codex/.tmp/plugins/plugins/github/skills/gh-fix-ci/SKILL.md
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: "gh-fix-ci"
|
| 3 |
+
description: "Use when a user asks to debug or fix failing GitHub PR checks that run in GitHub Actions. Use the GitHub app from this plugin for PR metadata and patch context, and use `gh` for Actions check and log inspection before implementing any approved fix."
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
# GitHub Actions CI Fix
|
| 8 |
+
|
| 9 |
+
## Overview
|
| 10 |
+
|
| 11 |
+
Use this skill when the task is specifically about failing GitHub Actions checks on a pull request. This workflow is hybrid by design:
|
| 12 |
+
|
| 13 |
+
- Use the GitHub app from this plugin for PR metadata, changed files, and review context.
|
| 14 |
+
- Use `gh` for GitHub Actions checks and logs because the connector does not expose that workflow end to end.
|
| 15 |
+
- Summarize the root cause first, propose a focused fix plan, and implement only after explicit approval.
|
| 16 |
+
|
| 17 |
+
Prereq: authenticate with GitHub CLI once, then confirm with `gh auth status`. Repo and workflow scopes are typically required for Actions inspection.
|
| 18 |
+
|
| 19 |
+
## Inputs
|
| 20 |
+
|
| 21 |
+
- `repo`: path inside the repo (default `.`)
|
| 22 |
+
- `pr`: PR number or URL (optional; defaults to current branch PR)
|
| 23 |
+
- `gh` authentication for the repo host
|
| 24 |
+
|
| 25 |
+
## Quick start
|
| 26 |
+
|
| 27 |
+
- `python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "<number-or-url>"`
|
| 28 |
+
- Add `--json` if you want machine-friendly output for summarization.
|
| 29 |
+
|
| 30 |
+
## Workflow
|
| 31 |
+
|
| 32 |
+
1. Verify gh authentication.
|
| 33 |
+
- Run `gh auth status` in the repo.
|
| 34 |
+
- If unauthenticated, ask the user to run `gh auth login` (ensuring repo + workflow scopes) before proceeding.
|
| 35 |
+
2. Resolve the PR.
|
| 36 |
+
- If the user provides a PR number or URL, use that directly.
|
| 37 |
+
- Otherwise prefer the current branch PR with `gh pr view --json number,url`.
|
| 38 |
+
- When repo and PR are known, fetch PR metadata and patch context through the GitHub app from this plugin.
|
| 39 |
+
3. Inspect failing checks (GitHub Actions only).
|
| 40 |
+
- Preferred: run the bundled script (handles gh field drift and job-log fallbacks):
|
| 41 |
+
- `python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "<number-or-url>"`
|
| 42 |
+
- Add `--json` for machine-friendly output.
|
| 43 |
+
- Manual fallback:
|
| 44 |
+
- `gh pr checks <pr> --json name,state,bucket,link,startedAt,completedAt,workflow`
|
| 45 |
+
- If a field is rejected, rerun with the available fields reported by `gh`.
|
| 46 |
+
- For each failing check, extract the run id from `detailsUrl` and run:
|
| 47 |
+
- `gh run view <run_id> --json name,workflowName,conclusion,status,url,event,headBranch,headSha`
|
| 48 |
+
- `gh run view <run_id> --log`
|
| 49 |
+
- If the run log says it is still in progress, fetch job logs directly:
|
| 50 |
+
- `gh api "/repos/<owner>/<repo>/actions/jobs/<job_id>/logs" > "<path>"`
|
| 51 |
+
4. Scope non-GitHub Actions checks.
|
| 52 |
+
- If `detailsUrl` is not a GitHub Actions run, label it as external and only report the URL.
|
| 53 |
+
- Do not attempt Buildkite or other providers; keep the workflow lean.
|
| 54 |
+
5. Summarize failures for the user.
|
| 55 |
+
- Provide the failing check name, run URL (if any), and a concise log snippet.
|
| 56 |
+
- Call out missing logs explicitly and do not over-claim certainty.
|
| 57 |
+
6. Propose a focused fix plan and wait for approval.
|
| 58 |
+
- Keep the plan tied directly to the failing checks and the observed root cause.
|
| 59 |
+
7. Implement after approval.
|
| 60 |
+
- Apply the approved fix locally.
|
| 61 |
+
- Run the most relevant local verification available.
|
| 62 |
+
8. Recheck status and summarize residual risk.
|
| 63 |
+
- Suggest re-running the relevant tests and `gh pr checks`.
|
| 64 |
+
- Report what is still unverified, what may still be flaky, and whether any failing checks were external and therefore not actionable here.
|
| 65 |
+
|
| 66 |
+
## Bundled Resources
|
| 67 |
+
|
| 68 |
+
### scripts/inspect_pr_checks.py
|
| 69 |
+
|
| 70 |
+
Fetch failing PR checks, pull GitHub Actions logs, and extract a failure snippet. Exits non-zero when failures remain so it can be used in automation.
|
| 71 |
+
|
| 72 |
+
Usage examples:
|
| 73 |
+
- `python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "123"`
|
| 74 |
+
- `python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "https://github.com/org/repo/pull/123" --json`
|
| 75 |
+
- `python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --max-lines 200 --context 40`
|
| 76 |
+
|
| 77 |
+
## Guardrails
|
| 78 |
+
|
| 79 |
+
- Do not imply that the GitHub app can replace `gh` for Actions log retrieval.
|
| 80 |
+
- Treat non-GitHub Actions providers as report-only unless the user explicitly wants a separate investigation path.
|
| 81 |
+
- If the failure is clearly unrelated to the local diff, say so before proposing code changes.
|
data/.codex/.codex/.tmp/plugins/plugins/github/skills/gh-fix-ci/agents/openai.yaml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "CI Debug"
|
| 3 |
+
short_description: "Debug failing GitHub Actions checks"
|
| 4 |
+
icon_small: "./assets/github-small.svg"
|
| 5 |
+
icon_large: "./assets/github.png"
|
| 6 |
+
default_prompt: "Use $gh-fix-ci to inspect the failing GitHub Actions checks on this PR, summarize the root cause, and propose the smallest viable fix."
|
data/.codex/.codex/.tmp/plugins/plugins/github/skills/gh-fix-ci/assets/github-small.svg
ADDED
|
|
data/.codex/.codex/.tmp/plugins/plugins/github/skills/gh-fix-ci/scripts/inspect_pr_checks.py
ADDED
|
@@ -0,0 +1,509 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
from __future__ import annotations
|
| 3 |
+
|
| 4 |
+
import argparse
|
| 5 |
+
import json
|
| 6 |
+
import re
|
| 7 |
+
import subprocess
|
| 8 |
+
import sys
|
| 9 |
+
from pathlib import Path
|
| 10 |
+
from shutil import which
|
| 11 |
+
from typing import Any, Iterable, Sequence
|
| 12 |
+
|
| 13 |
+
FAILURE_CONCLUSIONS = {
|
| 14 |
+
"failure",
|
| 15 |
+
"cancelled",
|
| 16 |
+
"timed_out",
|
| 17 |
+
"action_required",
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
FAILURE_STATES = {
|
| 21 |
+
"failure",
|
| 22 |
+
"error",
|
| 23 |
+
"cancelled",
|
| 24 |
+
"timed_out",
|
| 25 |
+
"action_required",
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
FAILURE_BUCKETS = {"fail"}
|
| 29 |
+
|
| 30 |
+
FAILURE_MARKERS = (
|
| 31 |
+
"error",
|
| 32 |
+
"fail",
|
| 33 |
+
"failed",
|
| 34 |
+
"traceback",
|
| 35 |
+
"exception",
|
| 36 |
+
"assert",
|
| 37 |
+
"panic",
|
| 38 |
+
"fatal",
|
| 39 |
+
"timeout",
|
| 40 |
+
"segmentation fault",
|
| 41 |
+
)
|
| 42 |
+
|
| 43 |
+
DEFAULT_MAX_LINES = 160
|
| 44 |
+
DEFAULT_CONTEXT_LINES = 30
|
| 45 |
+
PENDING_LOG_MARKERS = (
|
| 46 |
+
"still in progress",
|
| 47 |
+
"log will be available when it is complete",
|
| 48 |
+
)
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
class GhResult:
|
| 52 |
+
def __init__(self, returncode: int, stdout: str, stderr: str):
|
| 53 |
+
self.returncode = returncode
|
| 54 |
+
self.stdout = stdout
|
| 55 |
+
self.stderr = stderr
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
def run_gh_command(args: Sequence[str], cwd: Path) -> GhResult:
|
| 59 |
+
process = subprocess.run(
|
| 60 |
+
["gh", *args],
|
| 61 |
+
cwd=cwd,
|
| 62 |
+
text=True,
|
| 63 |
+
capture_output=True,
|
| 64 |
+
)
|
| 65 |
+
return GhResult(process.returncode, process.stdout, process.stderr)
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
def run_gh_command_raw(args: Sequence[str], cwd: Path) -> tuple[int, bytes, str]:
|
| 69 |
+
process = subprocess.run(
|
| 70 |
+
["gh", *args],
|
| 71 |
+
cwd=cwd,
|
| 72 |
+
capture_output=True,
|
| 73 |
+
)
|
| 74 |
+
stderr = process.stderr.decode(errors="replace")
|
| 75 |
+
return process.returncode, process.stdout, stderr
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
def parse_args() -> argparse.Namespace:
|
| 79 |
+
parser = argparse.ArgumentParser(
|
| 80 |
+
description=(
|
| 81 |
+
"Inspect failing GitHub PR checks, fetch GitHub Actions logs, and extract a "
|
| 82 |
+
"failure snippet."
|
| 83 |
+
),
|
| 84 |
+
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
|
| 85 |
+
)
|
| 86 |
+
parser.add_argument("--repo", default=".", help="Path inside the target Git repository.")
|
| 87 |
+
parser.add_argument(
|
| 88 |
+
"--pr", default=None, help="PR number or URL (defaults to current branch PR)."
|
| 89 |
+
)
|
| 90 |
+
parser.add_argument("--max-lines", type=int, default=DEFAULT_MAX_LINES)
|
| 91 |
+
parser.add_argument("--context", type=int, default=DEFAULT_CONTEXT_LINES)
|
| 92 |
+
parser.add_argument("--json", action="store_true", help="Emit JSON instead of text output.")
|
| 93 |
+
return parser.parse_args()
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
def main() -> int:
|
| 97 |
+
args = parse_args()
|
| 98 |
+
repo_root = find_git_root(Path(args.repo))
|
| 99 |
+
if repo_root is None:
|
| 100 |
+
print("Error: not inside a Git repository.", file=sys.stderr)
|
| 101 |
+
return 1
|
| 102 |
+
|
| 103 |
+
if not ensure_gh_available(repo_root):
|
| 104 |
+
return 1
|
| 105 |
+
|
| 106 |
+
pr_value = resolve_pr(args.pr, repo_root)
|
| 107 |
+
if pr_value is None:
|
| 108 |
+
return 1
|
| 109 |
+
|
| 110 |
+
checks = fetch_checks(pr_value, repo_root)
|
| 111 |
+
if checks is None:
|
| 112 |
+
return 1
|
| 113 |
+
|
| 114 |
+
failing = [c for c in checks if is_failing(c)]
|
| 115 |
+
if not failing:
|
| 116 |
+
print(f"PR #{pr_value}: no failing checks detected.")
|
| 117 |
+
return 0
|
| 118 |
+
|
| 119 |
+
results = []
|
| 120 |
+
for check in failing:
|
| 121 |
+
results.append(
|
| 122 |
+
analyze_check(
|
| 123 |
+
check,
|
| 124 |
+
repo_root=repo_root,
|
| 125 |
+
max_lines=max(1, args.max_lines),
|
| 126 |
+
context=max(1, args.context),
|
| 127 |
+
)
|
| 128 |
+
)
|
| 129 |
+
|
| 130 |
+
if args.json:
|
| 131 |
+
print(json.dumps({"pr": pr_value, "results": results}, indent=2))
|
| 132 |
+
else:
|
| 133 |
+
render_results(pr_value, results)
|
| 134 |
+
|
| 135 |
+
return 1
|
| 136 |
+
|
| 137 |
+
|
| 138 |
+
def find_git_root(start: Path) -> Path | None:
|
| 139 |
+
result = subprocess.run(
|
| 140 |
+
["git", "rev-parse", "--show-toplevel"],
|
| 141 |
+
cwd=start,
|
| 142 |
+
text=True,
|
| 143 |
+
capture_output=True,
|
| 144 |
+
)
|
| 145 |
+
if result.returncode != 0:
|
| 146 |
+
return None
|
| 147 |
+
return Path(result.stdout.strip())
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
def ensure_gh_available(repo_root: Path) -> bool:
|
| 151 |
+
if which("gh") is None:
|
| 152 |
+
print("Error: gh is not installed or not on PATH.", file=sys.stderr)
|
| 153 |
+
return False
|
| 154 |
+
result = run_gh_command(["auth", "status"], cwd=repo_root)
|
| 155 |
+
if result.returncode == 0:
|
| 156 |
+
return True
|
| 157 |
+
message = (result.stderr or result.stdout or "").strip()
|
| 158 |
+
print(message or "Error: gh not authenticated.", file=sys.stderr)
|
| 159 |
+
return False
|
| 160 |
+
|
| 161 |
+
|
| 162 |
+
def resolve_pr(pr_value: str | None, repo_root: Path) -> str | None:
|
| 163 |
+
if pr_value:
|
| 164 |
+
return pr_value
|
| 165 |
+
result = run_gh_command(["pr", "view", "--json", "number"], cwd=repo_root)
|
| 166 |
+
if result.returncode != 0:
|
| 167 |
+
message = (result.stderr or result.stdout or "").strip()
|
| 168 |
+
print(message or "Error: unable to resolve PR.", file=sys.stderr)
|
| 169 |
+
return None
|
| 170 |
+
try:
|
| 171 |
+
data = json.loads(result.stdout or "{}")
|
| 172 |
+
except json.JSONDecodeError:
|
| 173 |
+
print("Error: unable to parse PR JSON.", file=sys.stderr)
|
| 174 |
+
return None
|
| 175 |
+
number = data.get("number")
|
| 176 |
+
if not number:
|
| 177 |
+
print("Error: no PR number found.", file=sys.stderr)
|
| 178 |
+
return None
|
| 179 |
+
return str(number)
|
| 180 |
+
|
| 181 |
+
|
| 182 |
+
def fetch_checks(pr_value: str, repo_root: Path) -> list[dict[str, Any]] | None:
|
| 183 |
+
primary_fields = ["name", "state", "conclusion", "detailsUrl", "startedAt", "completedAt"]
|
| 184 |
+
result = run_gh_command(
|
| 185 |
+
["pr", "checks", pr_value, "--json", ",".join(primary_fields)],
|
| 186 |
+
cwd=repo_root,
|
| 187 |
+
)
|
| 188 |
+
if result.returncode != 0:
|
| 189 |
+
message = "\n".join(filter(None, [result.stderr, result.stdout])).strip()
|
| 190 |
+
available_fields = parse_available_fields(message)
|
| 191 |
+
if available_fields:
|
| 192 |
+
fallback_fields = [
|
| 193 |
+
"name",
|
| 194 |
+
"state",
|
| 195 |
+
"bucket",
|
| 196 |
+
"link",
|
| 197 |
+
"startedAt",
|
| 198 |
+
"completedAt",
|
| 199 |
+
"workflow",
|
| 200 |
+
]
|
| 201 |
+
selected_fields = [field for field in fallback_fields if field in available_fields]
|
| 202 |
+
if not selected_fields:
|
| 203 |
+
print("Error: no usable fields available for gh pr checks.", file=sys.stderr)
|
| 204 |
+
return None
|
| 205 |
+
result = run_gh_command(
|
| 206 |
+
["pr", "checks", pr_value, "--json", ",".join(selected_fields)],
|
| 207 |
+
cwd=repo_root,
|
| 208 |
+
)
|
| 209 |
+
if result.returncode != 0:
|
| 210 |
+
message = (result.stderr or result.stdout or "").strip()
|
| 211 |
+
print(message or "Error: gh pr checks failed.", file=sys.stderr)
|
| 212 |
+
return None
|
| 213 |
+
else:
|
| 214 |
+
print(message or "Error: gh pr checks failed.", file=sys.stderr)
|
| 215 |
+
return None
|
| 216 |
+
try:
|
| 217 |
+
data = json.loads(result.stdout or "[]")
|
| 218 |
+
except json.JSONDecodeError:
|
| 219 |
+
print("Error: unable to parse checks JSON.", file=sys.stderr)
|
| 220 |
+
return None
|
| 221 |
+
if not isinstance(data, list):
|
| 222 |
+
print("Error: unexpected checks JSON shape.", file=sys.stderr)
|
| 223 |
+
return None
|
| 224 |
+
return data
|
| 225 |
+
|
| 226 |
+
|
| 227 |
+
def is_failing(check: dict[str, Any]) -> bool:
|
| 228 |
+
conclusion = normalize_field(check.get("conclusion"))
|
| 229 |
+
if conclusion in FAILURE_CONCLUSIONS:
|
| 230 |
+
return True
|
| 231 |
+
state = normalize_field(check.get("state") or check.get("status"))
|
| 232 |
+
if state in FAILURE_STATES:
|
| 233 |
+
return True
|
| 234 |
+
bucket = normalize_field(check.get("bucket"))
|
| 235 |
+
return bucket in FAILURE_BUCKETS
|
| 236 |
+
|
| 237 |
+
|
| 238 |
+
def analyze_check(
|
| 239 |
+
check: dict[str, Any],
|
| 240 |
+
repo_root: Path,
|
| 241 |
+
max_lines: int,
|
| 242 |
+
context: int,
|
| 243 |
+
) -> dict[str, Any]:
|
| 244 |
+
url = check.get("detailsUrl") or check.get("link") or ""
|
| 245 |
+
run_id = extract_run_id(url)
|
| 246 |
+
job_id = extract_job_id(url)
|
| 247 |
+
base: dict[str, Any] = {
|
| 248 |
+
"name": check.get("name", ""),
|
| 249 |
+
"detailsUrl": url,
|
| 250 |
+
"runId": run_id,
|
| 251 |
+
"jobId": job_id,
|
| 252 |
+
}
|
| 253 |
+
|
| 254 |
+
if run_id is None:
|
| 255 |
+
base["status"] = "external"
|
| 256 |
+
base["note"] = "No GitHub Actions run id detected in detailsUrl."
|
| 257 |
+
return base
|
| 258 |
+
|
| 259 |
+
metadata = fetch_run_metadata(run_id, repo_root)
|
| 260 |
+
log_text, log_error, log_status = fetch_check_log(
|
| 261 |
+
run_id=run_id,
|
| 262 |
+
job_id=job_id,
|
| 263 |
+
repo_root=repo_root,
|
| 264 |
+
)
|
| 265 |
+
|
| 266 |
+
if log_status == "pending":
|
| 267 |
+
base["status"] = "log_pending"
|
| 268 |
+
base["note"] = log_error or "Logs are not available yet."
|
| 269 |
+
if metadata:
|
| 270 |
+
base["run"] = metadata
|
| 271 |
+
return base
|
| 272 |
+
|
| 273 |
+
if log_error:
|
| 274 |
+
base["status"] = "log_unavailable"
|
| 275 |
+
base["error"] = log_error
|
| 276 |
+
if metadata:
|
| 277 |
+
base["run"] = metadata
|
| 278 |
+
return base
|
| 279 |
+
|
| 280 |
+
snippet = extract_failure_snippet(log_text, max_lines=max_lines, context=context)
|
| 281 |
+
base["status"] = "ok"
|
| 282 |
+
base["run"] = metadata or {}
|
| 283 |
+
base["logSnippet"] = snippet
|
| 284 |
+
base["logTail"] = tail_lines(log_text, max_lines)
|
| 285 |
+
return base
|
| 286 |
+
|
| 287 |
+
|
| 288 |
+
def extract_run_id(url: str) -> str | None:
|
| 289 |
+
if not url:
|
| 290 |
+
return None
|
| 291 |
+
for pattern in (r"/actions/runs/(\d+)", r"/runs/(\d+)"):
|
| 292 |
+
match = re.search(pattern, url)
|
| 293 |
+
if match:
|
| 294 |
+
return match.group(1)
|
| 295 |
+
return None
|
| 296 |
+
|
| 297 |
+
|
| 298 |
+
def extract_job_id(url: str) -> str | None:
|
| 299 |
+
if not url:
|
| 300 |
+
return None
|
| 301 |
+
match = re.search(r"/actions/runs/\d+/job/(\d+)", url)
|
| 302 |
+
if match:
|
| 303 |
+
return match.group(1)
|
| 304 |
+
match = re.search(r"/job/(\d+)", url)
|
| 305 |
+
if match:
|
| 306 |
+
return match.group(1)
|
| 307 |
+
return None
|
| 308 |
+
|
| 309 |
+
|
| 310 |
+
def fetch_run_metadata(run_id: str, repo_root: Path) -> dict[str, Any] | None:
|
| 311 |
+
fields = [
|
| 312 |
+
"conclusion",
|
| 313 |
+
"status",
|
| 314 |
+
"workflowName",
|
| 315 |
+
"name",
|
| 316 |
+
"event",
|
| 317 |
+
"headBranch",
|
| 318 |
+
"headSha",
|
| 319 |
+
"url",
|
| 320 |
+
]
|
| 321 |
+
result = run_gh_command(["run", "view", run_id, "--json", ",".join(fields)], cwd=repo_root)
|
| 322 |
+
if result.returncode != 0:
|
| 323 |
+
return None
|
| 324 |
+
try:
|
| 325 |
+
data = json.loads(result.stdout or "{}")
|
| 326 |
+
except json.JSONDecodeError:
|
| 327 |
+
return None
|
| 328 |
+
if not isinstance(data, dict):
|
| 329 |
+
return None
|
| 330 |
+
return data
|
| 331 |
+
|
| 332 |
+
|
| 333 |
+
def fetch_check_log(
|
| 334 |
+
run_id: str,
|
| 335 |
+
job_id: str | None,
|
| 336 |
+
repo_root: Path,
|
| 337 |
+
) -> tuple[str, str, str]:
|
| 338 |
+
log_text, log_error = fetch_run_log(run_id, repo_root)
|
| 339 |
+
if not log_error:
|
| 340 |
+
return log_text, "", "ok"
|
| 341 |
+
|
| 342 |
+
if is_log_pending_message(log_error) and job_id:
|
| 343 |
+
job_log, job_error = fetch_job_log(job_id, repo_root)
|
| 344 |
+
if job_log:
|
| 345 |
+
return job_log, "", "ok"
|
| 346 |
+
if job_error and is_log_pending_message(job_error):
|
| 347 |
+
return "", job_error, "pending"
|
| 348 |
+
if job_error:
|
| 349 |
+
return "", job_error, "error"
|
| 350 |
+
return "", log_error, "pending"
|
| 351 |
+
|
| 352 |
+
if is_log_pending_message(log_error):
|
| 353 |
+
return "", log_error, "pending"
|
| 354 |
+
|
| 355 |
+
return "", log_error, "error"
|
| 356 |
+
|
| 357 |
+
|
| 358 |
+
def fetch_run_log(run_id: str, repo_root: Path) -> tuple[str, str]:
|
| 359 |
+
result = run_gh_command(["run", "view", run_id, "--log"], cwd=repo_root)
|
| 360 |
+
if result.returncode != 0:
|
| 361 |
+
error = (result.stderr or result.stdout or "").strip()
|
| 362 |
+
return "", error or "gh run view failed"
|
| 363 |
+
return result.stdout, ""
|
| 364 |
+
|
| 365 |
+
|
| 366 |
+
def fetch_job_log(job_id: str, repo_root: Path) -> tuple[str, str]:
|
| 367 |
+
repo_slug = fetch_repo_slug(repo_root)
|
| 368 |
+
if not repo_slug:
|
| 369 |
+
return "", "Error: unable to resolve repository name for job logs."
|
| 370 |
+
endpoint = f"/repos/{repo_slug}/actions/jobs/{job_id}/logs"
|
| 371 |
+
returncode, stdout_bytes, stderr = run_gh_command_raw(["api", endpoint], cwd=repo_root)
|
| 372 |
+
if returncode != 0:
|
| 373 |
+
message = (stderr or stdout_bytes.decode(errors="replace")).strip()
|
| 374 |
+
return "", message or "gh api job logs failed"
|
| 375 |
+
if is_zip_payload(stdout_bytes):
|
| 376 |
+
return "", "Job logs returned a zip archive; unable to parse."
|
| 377 |
+
return stdout_bytes.decode(errors="replace"), ""
|
| 378 |
+
|
| 379 |
+
|
| 380 |
+
def fetch_repo_slug(repo_root: Path) -> str | None:
|
| 381 |
+
result = run_gh_command(["repo", "view", "--json", "nameWithOwner"], cwd=repo_root)
|
| 382 |
+
if result.returncode != 0:
|
| 383 |
+
return None
|
| 384 |
+
try:
|
| 385 |
+
data = json.loads(result.stdout or "{}")
|
| 386 |
+
except json.JSONDecodeError:
|
| 387 |
+
return None
|
| 388 |
+
name_with_owner = data.get("nameWithOwner")
|
| 389 |
+
if not name_with_owner:
|
| 390 |
+
return None
|
| 391 |
+
return str(name_with_owner)
|
| 392 |
+
|
| 393 |
+
|
| 394 |
+
def normalize_field(value: Any) -> str:
|
| 395 |
+
if value is None:
|
| 396 |
+
return ""
|
| 397 |
+
return str(value).strip().lower()
|
| 398 |
+
|
| 399 |
+
|
| 400 |
+
def parse_available_fields(message: str) -> list[str]:
|
| 401 |
+
if "Available fields:" not in message:
|
| 402 |
+
return []
|
| 403 |
+
fields: list[str] = []
|
| 404 |
+
collecting = False
|
| 405 |
+
for line in message.splitlines():
|
| 406 |
+
if "Available fields:" in line:
|
| 407 |
+
collecting = True
|
| 408 |
+
continue
|
| 409 |
+
if not collecting:
|
| 410 |
+
continue
|
| 411 |
+
field = line.strip()
|
| 412 |
+
if not field:
|
| 413 |
+
continue
|
| 414 |
+
fields.append(field)
|
| 415 |
+
return fields
|
| 416 |
+
|
| 417 |
+
|
| 418 |
+
def is_log_pending_message(message: str) -> bool:
|
| 419 |
+
lowered = message.lower()
|
| 420 |
+
return any(marker in lowered for marker in PENDING_LOG_MARKERS)
|
| 421 |
+
|
| 422 |
+
|
| 423 |
+
def is_zip_payload(payload: bytes) -> bool:
|
| 424 |
+
return payload.startswith(b"PK")
|
| 425 |
+
|
| 426 |
+
|
| 427 |
+
def extract_failure_snippet(log_text: str, max_lines: int, context: int) -> str:
|
| 428 |
+
lines = log_text.splitlines()
|
| 429 |
+
if not lines:
|
| 430 |
+
return ""
|
| 431 |
+
|
| 432 |
+
marker_index = find_failure_index(lines)
|
| 433 |
+
if marker_index is None:
|
| 434 |
+
return "\n".join(lines[-max_lines:])
|
| 435 |
+
|
| 436 |
+
start = max(0, marker_index - context)
|
| 437 |
+
end = min(len(lines), marker_index + context)
|
| 438 |
+
window = lines[start:end]
|
| 439 |
+
if len(window) > max_lines:
|
| 440 |
+
window = window[-max_lines:]
|
| 441 |
+
return "\n".join(window)
|
| 442 |
+
|
| 443 |
+
|
| 444 |
+
def find_failure_index(lines: Sequence[str]) -> int | None:
|
| 445 |
+
for idx in range(len(lines) - 1, -1, -1):
|
| 446 |
+
lowered = lines[idx].lower()
|
| 447 |
+
if any(marker in lowered for marker in FAILURE_MARKERS):
|
| 448 |
+
return idx
|
| 449 |
+
return None
|
| 450 |
+
|
| 451 |
+
|
| 452 |
+
def tail_lines(text: str, max_lines: int) -> str:
|
| 453 |
+
if max_lines <= 0:
|
| 454 |
+
return ""
|
| 455 |
+
lines = text.splitlines()
|
| 456 |
+
return "\n".join(lines[-max_lines:])
|
| 457 |
+
|
| 458 |
+
|
| 459 |
+
def render_results(pr_number: str, results: Iterable[dict[str, Any]]) -> None:
|
| 460 |
+
results_list = list(results)
|
| 461 |
+
print(f"PR #{pr_number}: {len(results_list)} failing checks analyzed.")
|
| 462 |
+
for result in results_list:
|
| 463 |
+
print("-" * 60)
|
| 464 |
+
print(f"Check: {result.get('name', '')}")
|
| 465 |
+
if result.get("detailsUrl"):
|
| 466 |
+
print(f"Details: {result['detailsUrl']}")
|
| 467 |
+
run_id = result.get("runId")
|
| 468 |
+
if run_id:
|
| 469 |
+
print(f"Run ID: {run_id}")
|
| 470 |
+
job_id = result.get("jobId")
|
| 471 |
+
if job_id:
|
| 472 |
+
print(f"Job ID: {job_id}")
|
| 473 |
+
status = result.get("status", "unknown")
|
| 474 |
+
print(f"Status: {status}")
|
| 475 |
+
|
| 476 |
+
run_meta = result.get("run", {})
|
| 477 |
+
if run_meta:
|
| 478 |
+
branch = run_meta.get("headBranch", "")
|
| 479 |
+
sha = (run_meta.get("headSha") or "")[:12]
|
| 480 |
+
workflow = run_meta.get("workflowName") or run_meta.get("name") or ""
|
| 481 |
+
conclusion = run_meta.get("conclusion") or run_meta.get("status") or ""
|
| 482 |
+
print(f"Workflow: {workflow} ({conclusion})")
|
| 483 |
+
if branch or sha:
|
| 484 |
+
print(f"Branch/SHA: {branch} {sha}")
|
| 485 |
+
if run_meta.get("url"):
|
| 486 |
+
print(f"Run URL: {run_meta['url']}")
|
| 487 |
+
|
| 488 |
+
if result.get("note"):
|
| 489 |
+
print(f"Note: {result['note']}")
|
| 490 |
+
|
| 491 |
+
if result.get("error"):
|
| 492 |
+
print(f"Error fetching logs: {result['error']}")
|
| 493 |
+
continue
|
| 494 |
+
|
| 495 |
+
snippet = result.get("logSnippet") or ""
|
| 496 |
+
if snippet:
|
| 497 |
+
print("Failure snippet:")
|
| 498 |
+
print(indent_block(snippet, prefix=" "))
|
| 499 |
+
else:
|
| 500 |
+
print("No snippet available.")
|
| 501 |
+
print("-" * 60)
|
| 502 |
+
|
| 503 |
+
|
| 504 |
+
def indent_block(text: str, prefix: str = " ") -> str:
|
| 505 |
+
return "\n".join(f"{prefix}{line}" for line in text.splitlines())
|
| 506 |
+
|
| 507 |
+
|
| 508 |
+
if __name__ == "__main__":
|
| 509 |
+
raise SystemExit(main())
|
data/.codex/.codex/.tmp/plugins/plugins/github/skills/github/SKILL.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: github
|
| 3 |
+
description: Triage and orient GitHub repository, pull request, and issue work through the connected GitHub app. Use when the user asks for general GitHub help, wants PR or issue summaries, or needs repository context before choosing a more specific GitHub workflow.
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# GitHub
|
| 7 |
+
|
| 8 |
+
## Overview
|
| 9 |
+
|
| 10 |
+
Use this skill as the umbrella entrypoint for general GitHub work in this plugin. It should decide whether the task stays in repo and PR triage or should be handed off to a more specific review, CI, or publish workflow.
|
| 11 |
+
|
| 12 |
+
This plugin is intentionally hybrid:
|
| 13 |
+
|
| 14 |
+
- Prefer the GitHub app from this plugin for repository, issue, pull request, comment, label, reaction, and PR creation workflows.
|
| 15 |
+
- Use local `git` and `gh` only when the connector does not cover the job well, especially for current-branch PR discovery, branch creation, commit and push, `gh auth status`, and GitHub Actions log inspection.
|
| 16 |
+
- Keep connector state and local checkout context aligned. If the request is about the current branch, resolve the local repo and branch before acting.
|
| 17 |
+
|
| 18 |
+
Once the intent is clear, route to the specialist skill immediately and do not keep broad GitHub triage in scope longer than needed.
|
| 19 |
+
|
| 20 |
+
## Connector-First Responsibilities
|
| 21 |
+
|
| 22 |
+
Handle these directly in this skill when the request does not need a narrower specialist workflow:
|
| 23 |
+
|
| 24 |
+
- repository orientation once the repo, PR, issue, or local checkout is identified
|
| 25 |
+
- recent PR or issue triage
|
| 26 |
+
- PR metadata summaries
|
| 27 |
+
- PR patch inspection
|
| 28 |
+
- PR comments, labels, and reactions
|
| 29 |
+
- issue lookup and summarization
|
| 30 |
+
- PR creation after a branch is already pushed
|
| 31 |
+
|
| 32 |
+
Prefer the GitHub app from this plugin for those flows because it provides structured PR, issue, and review-adjacent data without depending on a local checkout. If the repository is not already identifiable from the user request or local git context, ask for the repo instead of pretending there is a repo-search flow that may not exist.
|
| 33 |
+
|
| 34 |
+
## Routing Rules
|
| 35 |
+
|
| 36 |
+
1. Resolve the operating context first:
|
| 37 |
+
- If the user provides a repository, PR number, issue number, or URL, use that.
|
| 38 |
+
- If the request is about "this branch" or "the current PR", resolve local git context and use `gh` only as needed to discover the branch PR.
|
| 39 |
+
- If the repository is still ambiguous after local inspection, ask for the repo identifier.
|
| 40 |
+
2. Classify the request before taking action:
|
| 41 |
+
- `repo or PR triage`: summarize PRs, issues, patches, comments, labels, reactions, or repository state
|
| 42 |
+
- `review follow-up`: unresolved review threads, requested changes, or inline review feedback
|
| 43 |
+
- `CI debugging`: failing checks, Actions logs, or CI root-cause analysis
|
| 44 |
+
- `publish changes`: create or switch branches, stage changes, commit, push, and open a draft PR
|
| 45 |
+
3. Route to the specialist skill as soon as the category is clear:
|
| 46 |
+
- Review comments and requested changes: `../gh-address-comments/SKILL.md`
|
| 47 |
+
- Failing GitHub Actions checks: `../gh-fix-ci/SKILL.md`
|
| 48 |
+
- Commit, push, and open PR: `../yeet/SKILL.md`
|
| 49 |
+
4. Keep the hybrid model consistent after routing:
|
| 50 |
+
- connector first for PR and issue data
|
| 51 |
+
- local `git` and `gh` only for the specific gaps the connector does not cover
|
| 52 |
+
|
| 53 |
+
## Default Workflow
|
| 54 |
+
|
| 55 |
+
1. Resolve repository and item scope.
|
| 56 |
+
2. Gather structured PR or issue context through the GitHub app from this plugin.
|
| 57 |
+
3. Decide whether the task stays in connector-backed triage or needs a specialist skill.
|
| 58 |
+
4. Route immediately when the work becomes review follow-up, CI debugging, or publish workflow.
|
| 59 |
+
5. End with a clear summary of what was inspected, what changed, and what remains.
|
| 60 |
+
|
| 61 |
+
## Output Expectations
|
| 62 |
+
|
| 63 |
+
- For triage requests, return a concise summary of the repository, PR, or issue state and the next likely action.
|
| 64 |
+
- For mixed requests, tell the user which specialist path you are taking and why.
|
| 65 |
+
- For connector-backed write actions, restate the exact PR, issue, label, or reaction target before applying the change.
|
| 66 |
+
- Never imply that GitHub Actions logs are available through the connector alone. That remains a `gh` workflow.
|
| 67 |
+
|
| 68 |
+
## Examples
|
| 69 |
+
|
| 70 |
+
- "Use GitHub to summarize the open PRs in this repo and tell me what needs attention."
|
| 71 |
+
- "Help with this PR."
|
| 72 |
+
- "Review the latest comments on PR 482 and tell me what is actionable."
|
| 73 |
+
- "Debug the failing checks on this branch."
|
| 74 |
+
- "Commit these changes, push them, and open a draft PR."
|
data/.codex/.codex/.tmp/plugins/plugins/github/skills/github/agents/openai.yaml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "GitHub"
|
| 3 |
+
short_description: "Inspect PRs, issues, CI, and publish flows"
|
| 4 |
+
icon_small: "./assets/github-small.svg"
|
| 5 |
+
icon_large: "./assets/github.png"
|
| 6 |
+
default_prompt: "Use $github to inspect pull requests and issues, orient the repository context, and choose the right GitHub workflow."
|
data/.codex/.codex/.tmp/plugins/plugins/github/skills/github/assets/github-small.svg
ADDED
|
|
data/.codex/.codex/.tmp/plugins/plugins/github/skills/yeet/LICENSE.txt
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf of
|
| 171 |
+
any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 182 |
+
replaced with your own identifying information. (Don\'t include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recommend that a
|
| 185 |
+
file or class name and description of purpose be included on the
|
| 186 |
+
same "printed page" as the copyright notice for easier
|
| 187 |
+
identification within third-party archives.
|
| 188 |
+
|
| 189 |
+
Copyright [yyyy] [name of copyright owner]
|
| 190 |
+
|
| 191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 192 |
+
you may not use this file except in compliance with the License.
|
| 193 |
+
You may obtain a copy of the License at
|
| 194 |
+
|
| 195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 196 |
+
|
| 197 |
+
Unless required by applicable law or agreed to in writing, software
|
| 198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 200 |
+
See the License for the specific language governing permissions and
|
| 201 |
+
limitations under the License.
|
data/.codex/.codex/.tmp/plugins/plugins/github/skills/yeet/SKILL.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: "yeet"
|
| 3 |
+
description: "Publish local changes to GitHub by confirming scope, committing intentionally, pushing the branch, and opening a draft PR through the GitHub app from this plugin, with `gh` used only as a fallback where connector coverage is insufficient."
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# GitHub Publish Changes
|
| 7 |
+
|
| 8 |
+
## Overview
|
| 9 |
+
|
| 10 |
+
Use this skill only when the user explicitly wants the full publish flow from the local checkout: branch setup if needed, staging, commit, push, and opening a pull request.
|
| 11 |
+
|
| 12 |
+
This workflow is hybrid:
|
| 13 |
+
|
| 14 |
+
- Use local `git` for branch creation, staging, commit, and push.
|
| 15 |
+
- Prefer the GitHub app from this plugin for pull request creation after the branch is on the remote.
|
| 16 |
+
- Use `gh` as a fallback for current-branch PR discovery, auth checks, or PR creation when the connector path cannot infer the repository or head branch cleanly.
|
| 17 |
+
|
| 18 |
+
## Prerequisites
|
| 19 |
+
|
| 20 |
+
- Require GitHub CLI `gh`. Check `gh --version`. If missing, ask the user to install `gh` and stop.
|
| 21 |
+
- Require authenticated `gh` session. Run `gh auth status`. If not authenticated, ask the user to run `gh auth login` (and re-run `gh auth status`) before continuing.
|
| 22 |
+
- Require a local git repository with a clean understanding of which changes belong in the PR.
|
| 23 |
+
|
| 24 |
+
## Naming conventions
|
| 25 |
+
|
| 26 |
+
- Branch: `codex/{description}` when starting from main/master/default.
|
| 27 |
+
- Commit: `{description}` (terse).
|
| 28 |
+
- PR title: `[codex] {description}` summarizing the full diff.
|
| 29 |
+
|
| 30 |
+
## Workflow
|
| 31 |
+
|
| 32 |
+
1. Confirm intended scope.
|
| 33 |
+
- Run `git status -sb` and inspect the diff before staging.
|
| 34 |
+
- If the working tree contains unrelated changes, do not default to `git add -A`. Ask the user which files belong in the PR.
|
| 35 |
+
2. Determine the branch strategy.
|
| 36 |
+
- If on `main`, `master`, or another default branch, create `codex/{description}`.
|
| 37 |
+
- Otherwise stay on the current branch.
|
| 38 |
+
3. Stage only the intended changes.
|
| 39 |
+
- Prefer explicit file paths when the worktree is mixed.
|
| 40 |
+
- Use `git add -A` only when the user has confirmed the whole worktree belongs in scope.
|
| 41 |
+
4. Commit tersely with the confirmed description.
|
| 42 |
+
5. Run the most relevant checks available if they have not already been run.
|
| 43 |
+
- If checks fail due to missing dependencies or tools, install what is needed and rerun once.
|
| 44 |
+
6. Push with tracking: `git push -u origin $(git branch --show-current)`.
|
| 45 |
+
7. Open a draft PR.
|
| 46 |
+
- Prefer the GitHub app from this plugin for PR creation after the push succeeds.
|
| 47 |
+
- Derive `repository_full_name` from the remote, for example by normalizing `git remote get-url origin` or by using `gh repo view --json nameWithOwner`.
|
| 48 |
+
- Derive `head_branch` from `git branch --show-current`.
|
| 49 |
+
- Derive `base_branch` from the user request when specified; otherwise use the remote default branch, for example via `gh repo view --json defaultBranchRef`.
|
| 50 |
+
- If the branch is being pushed from a fork or the PR target differs from the remote that was just pushed, prefer `gh pr create` fallback because the connector PR creation flow expects one repository target and may not encode cross-repo head semantics cleanly.
|
| 51 |
+
- If connector-based PR creation cannot infer the repository or branch cleanly, fall back to `gh pr create --draft --fill --head $(git branch --show-current)`.
|
| 52 |
+
- Write the PR body to a temp file with real newlines when using CLI fallback so the markdown renders cleanly.
|
| 53 |
+
8. Summarize the result with branch name, commit, PR target, validation, and anything the user still needs to confirm.
|
| 54 |
+
|
| 55 |
+
## Write Safety
|
| 56 |
+
|
| 57 |
+
- Never stage unrelated user changes silently.
|
| 58 |
+
- Never push without confirming scope when the worktree is mixed.
|
| 59 |
+
- Default to a draft PR unless the user explicitly asks for a ready-for-review PR.
|
| 60 |
+
- If the repository does not appear to be connected to an accessible GitHub remote, stop and explain the blocker before making assumptions.
|
| 61 |
+
|
| 62 |
+
## PR Body Expectations
|
| 63 |
+
|
| 64 |
+
The PR description should use real Markdown prose and cover:
|
| 65 |
+
|
| 66 |
+
- what changed
|
| 67 |
+
- why it changed
|
| 68 |
+
- the user or developer impact
|
| 69 |
+
- the root cause when the PR is a fix
|
| 70 |
+
- the checks used to validate it
|
data/.codex/.codex/.tmp/plugins/plugins/github/skills/yeet/agents/openai.yaml
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "Publish Changes"
|
| 3 |
+
short_description: "Commit, push, and open a PR"
|
| 4 |
+
icon_small: "./assets/yeet-small.svg"
|
| 5 |
+
icon_large: "./assets/yeet.png"
|
| 6 |
+
default_prompt: "Use $yeet to confirm the intended changes, create a focused commit, push it, and open a draft pull request."
|
data/.codex/.codex/.tmp/plugins/plugins/github/skills/yeet/assets/yeet-small.svg
ADDED
|
|
data/.codex/.codex/.tmp/plugins/plugins/granola/.codex-plugin/plugin.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "granola",
|
| 3 |
+
"version": "1.0.3",
|
| 4 |
+
"description": "Granola MCP connects your meeting history to Codex so your assistant can pull real context from past conv...",
|
| 5 |
+
"author": {
|
| 6 |
+
"name": "Granola",
|
| 7 |
+
"url": "https://www.granola.ai"
|
| 8 |
+
},
|
| 9 |
+
"homepage": "https://www.granola.ai",
|
| 10 |
+
"repository": "https://github.com/openai/plugins",
|
| 11 |
+
"license": "MIT",
|
| 12 |
+
"keywords": [],
|
| 13 |
+
"apps": "./.app.json",
|
| 14 |
+
"interface": {
|
| 15 |
+
"displayName": "Granola",
|
| 16 |
+
"shortDescription": "Granola MCP connects your meeting history to Codex so your assistant can pull real context from past conv...",
|
| 17 |
+
"longDescription": "Granola MCP connects your meeting history to Codex so your assistant can pull real context from past conversations while you work.\n\nUse MCP when you're already working on something bigger:\n\n- Writing PRDs or proposals: Pull customer feedback, stakeholder input, and decisions from relevant meetings directly into your draft\n \n- Building presentations or reports: Combine insights from multiple conversations with your other research and data\n \n- Coding with context: Give your AI the project background, requirements, and technical decisions discussed in planning meetings\n \n- Strategic analysis: Merge meeting insights with documents, data, and other sources for comprehensive analysis\n \nHow it works:\n\nYour AI assistant can search your Granola meetings by topic, person, company, or timeframe - then cite specific conversations in its responses. No more switching tabs to find \"what the customer said\" or \"when we decided that.\"\n\nThe difference:\n\nInstead of copy-pasting meeting notes into prompts, your AI pulls exactly what it needs from your meeting history automatically. You stay focused on the work, not the research or context.",
|
| 18 |
+
"developerName": "Granola",
|
| 19 |
+
"category": "Communication",
|
| 20 |
+
"capabilities": [],
|
| 21 |
+
"websiteURL": "https://www.granola.ai",
|
| 22 |
+
"privacyPolicyURL": "https://help.granola.ai/article/privacy-policy",
|
| 23 |
+
"termsOfServiceURL": "https://help.granola.ai/article/platform-terms-of-service",
|
| 24 |
+
"defaultPrompt": [
|
| 25 |
+
"Summarize what happened in the Hearthbase deal so far"
|
| 26 |
+
],
|
| 27 |
+
"screenshots": [],
|
| 28 |
+
"composerIcon": "./assets/logo.png",
|
| 29 |
+
"logo": "./assets/logo.png"
|
| 30 |
+
}
|
| 31 |
+
}
|
data/.codex/.codex/.tmp/plugins/plugins/keybid-puls/.codex-plugin/plugin.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "keybid-puls",
|
| 3 |
+
"version": "1.0.3",
|
| 4 |
+
"description": "Unlock the profitability of short-term rental investments with our ROI Calculator app, tailored for platfor...",
|
| 5 |
+
"author": {
|
| 6 |
+
"name": "KeyBid",
|
| 7 |
+
"url": "https://keybid.eu"
|
| 8 |
+
},
|
| 9 |
+
"homepage": "https://keybid.eu",
|
| 10 |
+
"repository": "https://github.com/openai/plugins",
|
| 11 |
+
"license": "MIT",
|
| 12 |
+
"keywords": [],
|
| 13 |
+
"apps": "./.app.json",
|
| 14 |
+
"interface": {
|
| 15 |
+
"displayName": "KeyBid Puls",
|
| 16 |
+
"shortDescription": "Unlock the profitability of short-term rental investments with our ROI Calculator app, tailored for platfor...",
|
| 17 |
+
"longDescription": "Unlock the profitability of short-term rental investments with our ROI Calculator app, tailored for platforms like Airbnb, Booking.com, and VRBO. Users can paste property URLs from sites such as idealista.com, imobiliare.ro, storia.ro, and spitogatos.gr (with more integrations on the way), or upload screenshots from other real estate platforms. The app analyzes the data to deliver instant revenue projections, detailed reports, and a concise conclusion on whether the property is worth purchasing for short-term rentals. Covering 56 countries and over 191 cities, it supports multiple languages including English, Romanian, Spanish, and Greek for seamless global use. Ideal for property owners and investors seeking data-driven insights to evaluate vacation rental opportunities. Explore more at https://keybid.eu/keybid-puls.",
|
| 18 |
+
"developerName": "KeyBid",
|
| 19 |
+
"category": "Finance",
|
| 20 |
+
"capabilities": [],
|
| 21 |
+
"websiteURL": "https://keybid.eu",
|
| 22 |
+
"privacyPolicyURL": "https://keybid.eu/confidentialitate",
|
| 23 |
+
"termsOfServiceURL": "https://keybid.eu/termeni",
|
| 24 |
+
"defaultPrompt": [
|
| 25 |
+
"Is this apartment worth buying for short-term"
|
| 26 |
+
],
|
| 27 |
+
"screenshots": [],
|
| 28 |
+
"composerIcon": "./assets/logo.png",
|
| 29 |
+
"logo": "./assets/logo.png",
|
| 30 |
+
"logoDark": "./assets/logo-dark.png"
|
| 31 |
+
}
|
| 32 |
+
}
|
data/.codex/.codex/.tmp/plugins/plugins/mixpanel/.codex-plugin/plugin.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "mixpanel",
|
| 3 |
+
"version": "2.0.3",
|
| 4 |
+
"description": "Query and analyze Mixpanel",
|
| 5 |
+
"author": {
|
| 6 |
+
"name": "Mixpanel",
|
| 7 |
+
"url": "https://mixpanel.com/home"
|
| 8 |
+
},
|
| 9 |
+
"homepage": "https://mixpanel.com/home",
|
| 10 |
+
"repository": "https://github.com/openai/plugins",
|
| 11 |
+
"license": "MIT",
|
| 12 |
+
"keywords": [
|
| 13 |
+
"mixpanel",
|
| 14 |
+
"analytics",
|
| 15 |
+
"segmentation",
|
| 16 |
+
"funnels",
|
| 17 |
+
"retention",
|
| 18 |
+
"events"
|
| 19 |
+
],
|
| 20 |
+
"apps": "./.app.json",
|
| 21 |
+
"interface": {
|
| 22 |
+
"displayName": "Mixpanel",
|
| 23 |
+
"shortDescription": "Query and analyze Mixpanel",
|
| 24 |
+
"longDescription": "Query and analyze your Mixpanel data directly in ChatGPT. Run segmentation, funnel, and retention analyses, explore your event taxonomy, manage Lexicon metadata, and resolve data quality issues - all without leaving your conversation.\n\nWith the Mixpanel MCP server connected, ChatGPT can reason about your product analytics alongside your code, documents, and decisions. Ask questions in plain language, drill into user behavior, and get answers grounded in your actual data.",
|
| 25 |
+
"developerName": "Mixpanel",
|
| 26 |
+
"category": "Data & Analytics",
|
| 27 |
+
"capabilities": [
|
| 28 |
+
"Interactive",
|
| 29 |
+
"Read",
|
| 30 |
+
"Write"
|
| 31 |
+
],
|
| 32 |
+
"websiteURL": "https://mixpanel.com/home",
|
| 33 |
+
"privacyPolicyURL": "https://mixpanel.com/legal/privacy-policy/",
|
| 34 |
+
"termsOfServiceURL": "https://mixpanel.com/legal/terms-of-use/",
|
| 35 |
+
"defaultPrompt": [
|
| 36 |
+
"@Mixpanel how many sign ups did we have in Feb?",
|
| 37 |
+
"@Mixpanel add descriptions to any events that don't have one",
|
| 38 |
+
"@Mixpanel create a dashboard for purchase metrics"
|
| 39 |
+
],
|
| 40 |
+
"screenshots": [
|
| 41 |
+
"./assets/screenshot-1.png",
|
| 42 |
+
"./assets/screenshot-2.png",
|
| 43 |
+
"./assets/screenshot-3.png"
|
| 44 |
+
],
|
| 45 |
+
"composerIcon": "./assets/app-icon.png",
|
| 46 |
+
"logo": "./assets/logo.png",
|
| 47 |
+
"logoDark": "./assets/logo-dark.png"
|
| 48 |
+
}
|
| 49 |
+
}
|
data/.codex/.codex/.tmp/plugins/plugins/mixpanel/assets/app-icon.svg
ADDED
|
|
data/.codex/.codex/.tmp/plugins/plugins/monday-com/.codex-plugin/plugin.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "monday-com",
|
| 3 |
+
"version": "1.0.2",
|
| 4 |
+
"description": "A powerful MCP connector enabling AI agents to seamlessly interact with monday.com.",
|
| 5 |
+
"author": {
|
| 6 |
+
"url": "https://monday.com",
|
| 7 |
+
"name": "Monday.com"
|
| 8 |
+
},
|
| 9 |
+
"homepage": "https://monday.com",
|
| 10 |
+
"repository": "https://github.com/openai/plugins",
|
| 11 |
+
"license": "MIT",
|
| 12 |
+
"keywords": [],
|
| 13 |
+
"apps": "./.app.json",
|
| 14 |
+
"interface": {
|
| 15 |
+
"displayName": "Monday.com",
|
| 16 |
+
"shortDescription": "A powerful MCP connector enabling AI agents to seamlessly interact with monday.com.",
|
| 17 |
+
"longDescription": "A powerful MCP connector enabling AI agents to seamlessly interact with monday.com. This connector provides comprehensive access to monday.com features including board management, item operations, dashboards, and more, allowing AI assistants to help manage projects, gain insights, and automate workflows within monday.com.",
|
| 18 |
+
"category": "Productivity",
|
| 19 |
+
"capabilities": [],
|
| 20 |
+
"websiteURL": "https://monday.com",
|
| 21 |
+
"privacyPolicyURL": "https://monday.com/l/privacy/privacy-policy/",
|
| 22 |
+
"defaultPrompt": [
|
| 23 |
+
"Check the marketing campaign status in monday.com"
|
| 24 |
+
],
|
| 25 |
+
"screenshots": [],
|
| 26 |
+
"composerIcon": "./assets/app-icon.png",
|
| 27 |
+
"logo": "./assets/app-icon.png",
|
| 28 |
+
"developerName": "Monday.com"
|
| 29 |
+
}
|
| 30 |
+
}
|
data/.codex/.codex/.tmp/plugins/plugins/moody-s/.codex-plugin/plugin.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "moody-s",
|
| 3 |
+
"version": "1.0.2",
|
| 4 |
+
"description": "Credit ratings, entity intelligence, and research via Moody's GenAI-Ready Data.",
|
| 5 |
+
"author": {
|
| 6 |
+
"name": "Moody's",
|
| 7 |
+
"url": "https://www.moodys.com"
|
| 8 |
+
},
|
| 9 |
+
"homepage": "https://www.moodys.com/web/en/us/genai/model-context-protocol.html",
|
| 10 |
+
"repository": "https://github.com/openai/plugins",
|
| 11 |
+
"license": "MIT",
|
| 12 |
+
"keywords": [
|
| 13 |
+
"moodys",
|
| 14 |
+
"credit",
|
| 15 |
+
"ratings",
|
| 16 |
+
"research",
|
| 17 |
+
"risk",
|
| 18 |
+
"entity-intelligence",
|
| 19 |
+
"ownership",
|
| 20 |
+
"beneficial-ownership",
|
| 21 |
+
"corporate-structure",
|
| 22 |
+
"subsidiaries",
|
| 23 |
+
"financial-statements",
|
| 24 |
+
"company-filings",
|
| 25 |
+
"credit-opinion",
|
| 26 |
+
"scorecards",
|
| 27 |
+
"esg",
|
| 28 |
+
"sector-outlook",
|
| 29 |
+
"country-risk",
|
| 30 |
+
"peers",
|
| 31 |
+
"earnings-calls",
|
| 32 |
+
"news"
|
| 33 |
+
],
|
| 34 |
+
"apps": "./.app.json",
|
| 35 |
+
"skills": "./skills/",
|
| 36 |
+
"interface": {
|
| 37 |
+
"displayName": "Moody's",
|
| 38 |
+
"shortDescription": "Credit ratings, research, entity intelligence, ownership, financials, and filings.",
|
| 39 |
+
"longDescription": "Connect to Moody's GenAI-Ready Data through the enterprise MCP integration. Resolve covered entities, retrieve ratings and outlooks, analyze credit opinions, scorecards, upgrade/downgrade drivers, ESG considerations, ownership structures, subsidiaries, company profiles, financial statements, filings, earnings-call transcripts, news, peer sets, sector outlooks, and country-risk context, all within your workflow.",
|
| 40 |
+
"developerName": "Moody's",
|
| 41 |
+
"category": "Finance",
|
| 42 |
+
"capabilities": [
|
| 43 |
+
"Entity resolution and firmographics",
|
| 44 |
+
"Credit ratings and rating history",
|
| 45 |
+
"Credit opinions, outlooks, and rating drivers",
|
| 46 |
+
"Upgrade and downgrade trigger analysis",
|
| 47 |
+
"Rating methodology and scorecard factors",
|
| 48 |
+
"ESG credit considerations",
|
| 49 |
+
"Ownership, beneficial owners, ultimate owners, and subsidiaries",
|
| 50 |
+
"Financial statements, key indicators, and ratios",
|
| 51 |
+
"Company filings search and summarization",
|
| 52 |
+
"Research document search",
|
| 53 |
+
"Earnings-call transcript search",
|
| 54 |
+
"News monitoring",
|
| 55 |
+
"Peer identification",
|
| 56 |
+
"Sector outlook and country-risk context",
|
| 57 |
+
"Managers, directors, and key officers"
|
| 58 |
+
],
|
| 59 |
+
"websiteURL": "https://www.moodys.com",
|
| 60 |
+
"privacyPolicyURL": "https://www.moodys.com/web/en/us/legal/privacy-policy.html",
|
| 61 |
+
"termsOfServiceURL": "https://www.moodys.com/web/en/us/legal/terms-of-use.html",
|
| 62 |
+
"brandColor": "#003366",
|
| 63 |
+
"defaultPrompt": [
|
| 64 |
+
"Summarize a company's Moody's profile and ownership.",
|
| 65 |
+
"Summarize a company's Moody's ratings and credit opinion.",
|
| 66 |
+
"Summarize a company's latest financials and filings in Moody's."
|
| 67 |
+
],
|
| 68 |
+
"screenshots": [],
|
| 69 |
+
"composerIcon": "./assets/app-icon.png",
|
| 70 |
+
"logo": "./assets/app-icon.png"
|
| 71 |
+
}
|
| 72 |
+
}
|
data/.codex/.codex/.tmp/plugins/plugins/moody-s/skills/moody-s-company-analysis/SKILL.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: moody-s-company-analysis
|
| 3 |
+
description: Use when the user asks for Moody's company profiles, ownership, ratings, credit opinions, financial statements, filings, peers, research, or credit-risk analysis for a company.
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Moody's Company Analysis
|
| 7 |
+
|
| 8 |
+
Use this skill for company-level Moody's workflows that go beyond a lightweight connectivity probe.
|
| 9 |
+
|
| 10 |
+
## Ground Rules
|
| 11 |
+
|
| 12 |
+
- Resolve the company through Moody's entity search before calling entity-specific tools.
|
| 13 |
+
- Read live tool schemas before calling them; tool names and parameters may differ by MCP version.
|
| 14 |
+
- Do not invent entity IDs, rating values, ownership percentages, financial metrics, or document titles.
|
| 15 |
+
- Include Moody's citations for each substantive section when the tool response provides citations.
|
| 16 |
+
- Highlight missing fields plainly instead of filling gaps from outside assumptions.
|
| 17 |
+
- This is research context, not investment advice.
|
| 18 |
+
|
| 19 |
+
## Company Profile and Ownership
|
| 20 |
+
|
| 21 |
+
1. Resolve the correct entity. Mention close alternatives if the match is ambiguous.
|
| 22 |
+
2. Summarize the profile: legal name, headquarters, country, business description, industry classifications, legal status/form, employees, and identifiers where available.
|
| 23 |
+
3. Summarize ownership: ultimate owners, beneficial owners, direct and total ownership percentages, subsidiaries, direct subsidiary count, corporate group size, and key subsidiaries where available.
|
| 24 |
+
4. Call out gaps such as no beneficial-owner data, missing ownership percentages, or missing subsidiary detail.
|
| 25 |
+
5. Finish with a plain-English structure takeaway: who owns the company, what it owns, and how complex the group appears.
|
| 26 |
+
|
| 27 |
+
## Ratings and Credit Opinion
|
| 28 |
+
|
| 29 |
+
1. Resolve the correct entity.
|
| 30 |
+
2. Retrieve current long-term rating, outlook, and relevant recent rating history.
|
| 31 |
+
3. Summarize rating drivers, credit strengths and challenges, outlook rationale, upgrade factors, downgrade factors, methodology or scorecard factors, and ESG considerations where available.
|
| 32 |
+
4. Call out missing fields or stale source material.
|
| 33 |
+
5. Finish with a plain-English credit takeaway.
|
| 34 |
+
|
| 35 |
+
## Financial Statements and Filings
|
| 36 |
+
|
| 37 |
+
1. Resolve the correct entity.
|
| 38 |
+
2. Retrieve the latest two fiscal years of year-end income statement, balance sheet, cash flow statement, and key indicators or ratios where available.
|
| 39 |
+
3. Search company filings for the latest annual filing and latest interim filing.
|
| 40 |
+
4. Summarize material financial metrics and filing commentary on revenue, earnings, debt, liquidity, cash flow, capex, risks, restructuring, and strategy.
|
| 41 |
+
5. Highlight differences between structured financial-statement data and filing commentary.
|
| 42 |
+
6. Finish with a plain-English credit-risk takeaway.
|
data/.codex/.codex/.tmp/plugins/plugins/moody-s/skills/moody-s-company-analysis/agents/openai.yaml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
interface:
|
| 2 |
+
display_name: "Moody's Company Analysis"
|
| 3 |
+
short_description: "Analyze Moody's company profiles, ratings, ownership, financials, and filings"
|
| 4 |
+
default_prompt: "Use Moody's company analysis to resolve the right entity, gather cited Moody's data, and summarize the company credit context."
|