/credit-monitoring:build-monitoring-modelfrom Credit Monitoring
Builds or refreshes a borrower's monthly financials model (Income Statement, Balance Sheet, Cash Flow) from reporting packages, producing a validated workbook for downstream analysis.
Ships in Credit Monitoring. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Read ../../CLAUDE.md before anything else; it holds the rules shared by every skill.
Produce the canonical, validated monthly IS/BS/CF workbook in the borrower’s stable _model/
workspace. If the configured model still points into .record/current, do not build there: after
write approval, follow monitor-setup to verify-copy-verify the workbook and sidecars into _model/,
reload the config, then continue. The build follows references/assembling-rules.md in full and runs
in the delegated worker below. During a monthly run, analysis reads the run-local snapshot created
after this build, never the mutable canonical workbook directly.
Before dispatching model-builder or assembling any workbook, run
python "${CLAUDE_PLUGIN_ROOT}/lib/requirements.py" using the same interpreter as the
worker/engines. On required failure, do not dispatch, write a partial model or replace
outputs; give the provision/retry/stop guidance in
${CLAUDE_PLUGIN_ROOT}/references/runtime-prerequisites.md. Do not install or download
packages/tools, invoke pip/uv setup or assume network access. If Python cannot start,
request an already provisioned approved runtime before proceeding. Pass the checked
interpreter and this rule in the worker brief; the worker rechecks if its runtime differs.
Optional import readiness or pending recalculation integration is not proof of successful
recalculation/current-values fallback. Preserve the existing build/validation contract.
Keep the connected source/store roots bound on every subprocess and include both in the worker brief;
logical source: and store: paths cannot resolve from a previous subprocess's environment.
Once the paths are in hand, hand the build to the plugin's model-builder agent (Task tool, subagent
type credit-monitoring:model-builder; where the runtime doesn't offer plugin agents, use a
general-purpose subagent, prepend the text of ../../agents/model-builder.md, and set
that dispatch to sonnet at xhigh as the agent file declares — prepended text carries no frontmatter). Its
brief carries the plugin folder (two levels above this skill's base directory, as an absolute path),
the borrower-config path, the reporting folder and model output path in all three forms
(the connected-folder path to read, the /sessions/…/mnt/… sandbox path bash needs for the recalc and
the gate, and the borrower-config string for engine arguments), the covenant-spec path and the
debt-service schedule path when they exist,
and the prior model and profile on a refresh. It returns a short conclusion — workbook
path, months covered, gate result, restatements, skipped files — and the heavy statement reads never
touch this context.
The agent's job is the Contract, Method and Definition of Done below — that is the part its
brief points at. This section and the closing menu are yours: anything that speaks to the analyst stays
here, including an unavailable folder or file. Say in one plain line what is running while the build
works (../../references/asking.md).
Answer the diagnosis it hands back, then send the build again. The worker returns what it saw when
a file was not locally readable, a whole folder read back empty, a package was encrypted, or a path
was too long for Excel. For a locally unreadable file, do not infer a provider or explain sync settings.
Attach the folder guide and offer [Try again] / [Skip this file] / [Stop for now]. For a
genuinely empty folder, say that no files were found and offer the matching choices from
../../references/runtime/cowork/files.md. Once the analyst acts, dispatch the build
again with what changed and say in one plain line that you are picking it back up. A run whose reporting
folder never came back readable ends on that menu, not on an empty workbook.
config.paths.reporting_packages_folder, config.paths.covenant_spec_path,
config.paths.debt_service_schedule_path (when covenant-setup has built it), prior model + profile (if any)._model/ folder holding config.paths.model_output_path: the validated workbook
(sheets Income Statement, Balance Sheet, Cash Flow Statement, Sources & Notes — laid out per
assembling-rules → "Output layout contract", which is what every analysis module reads),
restatements.json + source-map.json beside it, a dated snapshot, and the per-borrower profile.DELETE_ME, superseded-attempt, or other cleanup-later files in _model; the only
temporary allowed there is the hidden atomic-replace temporary used by the final safe save.references/assembling-rules.md in full. In brief:../../references/runtime/cowork/files.md.restatements.json. Record the per-column winner in source-map.json (assembling-rules →
"Source map").covenant-spec.json#/definitions/EBITDA so every module reads ONE
EBITDA.
5a. Populate the covenant-support rows FROM the debt-service schedule (assembling-rules → "Covenant-
support rows"): the schedule's contractual cash interest and scheduled principal per month, never
the ledger's interest line — plus disclosed non-facility amortization. Without a schedule, build at
lower precision and say so in the conclusion.references/validate_model.py <model> must
exit 0, plus the checks in assembling-rules → "Validation gate". On pass, save canonical + dated
snapshot and write/update the profile — save safely per assembling-rules → "Versioning & output
location" (temp-then-replace, no-collapse check, path budget + short copy). On failure, keep the
last good file, stop, and flag what failed, by how much, which month.model_output_path is outside .record/current; workbook written + gated, restatement log in
Sources & Notes AND restatements.json,
source-map.json rewritten covering every statement × month column (loadable via
monitor_lib.load_source_map), EBITDA bridge present, cached values readable,
layout contract verified, per-borrower profile saved. Return the exact workbook and sidecar paths so
monthly-monitor can snapshot them into its run before any module starts.On a standalone run, close with a menu (../../references/asking.md): [Run
‹borrower›'s monthly review now] (follow monthly-monitor) / [Done for now]. When
Another setup wrapper invoked you, it owns the sequence.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub 100xopensource/100x-credit-monitoring --plugin credit-monitoring10 skills in this plugin
/covenant-setupOne-time per borrower: distill the credit agreement into a standardized, machine-readable covenant-spec.json — controlled-vocabulary covenants, shared definitions, thresholds/schedules, test dates, cure rights, and any covenant the borrower may satisfy one of two ways — plus the facility's contractual debt service (debt-service-spec.json: fundings, rate grids, PIK, amortization, day count, fees) and the generated per-month schedule covenant Fixed Charges read. Triggers: "set up covenants", "extract covenant spec", "parse the credit agreement covenants", "build the debt-service schedule". Run once; monthly compliance reads the spec, not the agreement. Needs the credit-agreement path (it lives outside the reporting folder).
/monitor-setupConfigure the credit-monitoring for a borrower. Run once per borrower (or to update paths, enabled modules, or the deal view). Writes TWO control files: borrower-config.json (mechanical — paths, pinned budget, module menu) and deal-context.json (interpretive — thesis, underwritten risks, our current view, carry-forward). Triggers: "set up portfolio monitor", "configure the monitor for {borrower}", "update monitor config / paths / deal context".
/monthly-monitorRun the monthly portfolio monitor for a borrower. Loads borrower-config and deal-context, asks the analyst what to watch, ensures the financials model is current, establishes continuity with the prior period, fans out the enabled analysis modules in parallel, synthesizes the monitoring memo, and writes carry-forward state back. Triggers: "run the monthly monitor", "build the monitoring memo for {borrower}", "monthly portfolio review".
/open-folder-guideOpen the illustrated folder setup guide without starting monitoring or requesting folder access. Use when the user says “open the folder guide”, asks how local or synced folders work, or wants pictures for folder setup.
/portfolio-artifactCreate, reopen, or check the private portfolio dashboard built from selected monitoring results. Same-link updates are deferred. Triggers: "create my portfolio dashboard", "update the dashboard", "open the portfolio dashboard", "is it current", "show me how to share the dashboard".
/refresh-dashboardBuild or refresh the local portfolio pages from verified published monitoring runs. Use this after selecting a monitoring run, when the local dashboard shows an old month, or when asked to refresh its saved pages. Hosted create and update requests belong to portfolio-artifact.
Other plugins' skills for the same job