Internal documentation from proprietary code, generated offline

by fidji Llama English ~634 tokens
Public excerpt Locked
Run locally on Llama: module by module, extract purpose, public interface, configuration (env vars table), side effects and failure modes, write [UNKNOWN] rather than guessing, redact any credential found in the code, then merge the module notes into one README…

About this prompt

Produces a README, module guide or runbook from confidential source code using a local open model (Ollama, LM Studio), so the code never leaves your machine. Tuned for smaller local models: one module at a time, strict template, [UNKNOWN] instead of guesses, secrets found in code redacted and flagged, then a final merge pass.

Example output

Provided by the author
PASS 1 — Module notes: src/ledger/ 1. Paths: src/ledger/Reconciler.java, src/ledger/LedgerClient.java 2. Purpose: matches bank statement lines with internal ledger entries every night. 4. Configuration | Name | Where read | Default | Effect | | LEDGER_BASE_URL | LedgerClient.java:23 | [UNKNOWN] | ledger API endpoint | | RECON_TOLERANCE_CENTS | Reconciler.java:41 | 0 | max difference to accept a match | | RECON_BATCH_SIZE | Reconciler.java:44 | 500 | lines processed per transaction | 6. Side effects: writes table recon_match; sends an email to the address in ALERT_TO when unmatched > 0. 7. Failure modes: LedgerClient retries 3 times on HTTP 5xx (l. 88), then throws LedgerUnavailableException; job exits non-zero. 9. Unknowns: who consumes recon_match; how the job is scheduled (no cron or scheduler config in these files). Security findings - LedgerClient.java:19 — hard-coded API token → [REDACTED]. Move to the secret store and rotate it.

Details

Model
Llama
Prompt language
English
Who it's for
Developers in companies whose code cannot be sent to a cloud AI: banks, health, defence, client contracts
Length
~634 tokens (estimate)
Delivered as
Prompt text, shown online after purchase

Reviews

Buyers only

No reviews yet. Only buyers of this prompt can leave one.

Report this prompt