[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CZEM84WVJR9QM0RPYQXTKP":3,"skill-same:01M7CZEM84WVJR9QM0RPYQXTKP":60},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":37,"ownerDescription":38,"updatedAt":39,"install":40,"resources":53},"01M7CZEM84WVJR9QM0RPYQXTKP","padosoft-logging-discipline",null,"Use this skill whenever code writes to a log or builds an error message for a user — a catch block, an exception handler, a logger call, telemetry, a debug line added while hunting a bug — and whenever the user says a log is noisy or useless, an error message shows SQL or a stack trace, a support ticket contains data it should not, or asks what is safe to log. It gives what must never reach a log or a screen, what to keep so the log stays diagnosable, and where the redaction goes in each stack, which is not the same place. Do not use it to choose a logging library or to configure log shipping, retention or dashboards.","padosoft\u002Fskills","padosoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10467753?v=4","01M7CZ3FRSM851DK225E3KK2VF","01M7CZ3FSY016E21VS6EABM21V",1,"MIT","https:\u002F\u002Fgithub.com\u002Fpadosoft\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fpadosoft-logging-discipline\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: padosoft-logging-discipline\ndescription: >-\n  Use this skill whenever code writes to a log or builds an error message for a user — a catch block, an\n  exception handler, a logger call, telemetry, a debug line added while hunting a bug — and whenever the user\n  says a log is noisy or useless, an error message shows SQL or a stack trace, a support ticket contains data\n  it should not, or asks what is safe to log. It gives what must never reach a log or a screen, what to keep\n  so the log stays diagnosable, and where the redaction goes in each stack, which is not the same place. Do\n  not use it to choose a logging library or to configure log shipping, retention or dashboards.\nlicense: MIT\ncompatibility: >-\n  Language-agnostic. The worked mechanisms cover TypeScript\u002FNode, React Native and Laravel\u002FPHP; on another\n  stack apply the invariant and find the local equivalent before copying any of them.\nmetadata:\n  version: 0.4.0\n  author: Padosoft\n  summary: Keep the diagnosis, drop the data — and the log is not the only way data gets out.\n  profiles: core\n  scope: global\n  repository: https:\u002F\u002Fgithub.com\u002Fpadosoft\u002Fskills\n  keywords: logging, redaction, pii, secrets, exception, error handling, observability, monolog\n---\n\n# Logging discipline\n\nThree codebases that do not share a line of code — a Bun\u002FHono API, a React Native app and a Laravel monolith —\narrived independently at the same rules. That is not a convention: it is a property of the problem.\n\n**The invariants are the rule. The mechanism is per stack, and copying the wrong one does damage** (§8).\n\n---\n\n## 1. A driver exception is not a loggable object\n\nThis is the one that bit all three, and the damage was different every time:\n\n| Stack | The object | What it carries | Where it went |\n|---|---|---|---|\n| Node + mysql2 | `err.sql` | the query **already formatted**, bound values substituted | into the logs: the hash of an auth token |\n| Laravel + PDO | `QueryException::getMessage()` | SQLSTATE, production DB host, database name, the full INSERT | onto the **user's screen**, with their personal data |\n| React Native | a raw `Error` | message and stack | into the logs, and every crash collapsed into one issue |\n\n```ts\nlogger.error(\"db lookup failed:\", err);     \u002F\u002F ❌ err.sql goes with it\nLog::error($e);                              \u002F\u002F ❌ __toString() carries SQL and host\nlogger.error(\"[x]\", err);                    \u002F\u002F ❌ raw Error\n```\n\n**Never hand the exception object to the logger, and never put its native message in front of a user.**\n\n⚠️ Grepping for the *name of the secret* does not find this. The two real leaking lines in the API were caught\nonly because their message happened to contain the word \"token\"; `logger.error(\"db lookup failed:\", err)` is\nthe same bug and matches nothing. Check **what is handed to the logger**, not what the sentence says.\n\n## 2. Keep the diagnosis, drop the data\n\nTotal redaction makes the log useless exactly when it is needed. The sharpest formulation of the line comes\nfrom the Laravel side, and it generalises:\n\n> Log the **parameterised** SQL (with the `?`), and describe the bindings as **type and length** —\n> `['type' => 'string', 'len' => 31]`. The length is what tells you which `max:` is missing in the request.\n> The value is not needed for that, ever.\n\nSame idea everywhere else: keep what identifies the failure, drop what identifies the person.\n\n| Keep | Drop |\n|---|---|\n| error code, errno, SQLSTATE, driver code | the bound values, the formatted query |\n| table, column, constraint name | row contents |\n| shape: type, length, count | the payload |\n| a correlation id the user is also shown | tokens, cookies, `Authorization`, passwords |\n| the *kind* of an identity (`operator`, `ip`) | the identity value — an IP is personal data |\n\n## 2b. The redactor is software, and it has its own defects\n\nA redactor that is too eager destroys the evidence; one that is too narrow leaks. Both failures are silent,\nand both were found only after the artifact was needed.\n\n- **Redaction must never mutate identity.** If a DLP pass can rewrite a correlation id, a checkpoint key or\n  an audit hash, it breaks the chain it exists to protect. Identity fields are excluded by construction.\n- **A card-number rule that is just \"13 to 19 digits\" is not one**, especially if it accepts separators: a\n  timestamped run id matches it. Validate with the checksum the format actually has, and keep regression\n  cases for both a real test number **and** a production-shaped identifier.\n- **Never weaken redaction to make a fixture pass.** If the fixture trips the rule, the fixture is wrong —\n  give it a deterministic semantic id instead of a timestamp-derived one.\n- **Matching on a key *name* catches the wrong things.** A rule keyed on the word \"token\" turns a numeric\n  usage counter into `[REDACTED]` and makes cost evidence unreadable, while a token in a field called\n  something else walks out. Keep name-based exceptions to an explicit, narrow list.\n- **Attach entropy detection to an assignment**, not to every opaque string: `api_key: \u003Cvalue>` is a secret,\n  a base64 identifier is not.\n- **Key-based redaction cannot see a secret inside a string value.** Exception text, a URL with embedded\n  credentials or a free-form message carry the secret under a harmless key. Add a text scrub that runs on\n  string values, and normalise key spellings before matching (`api_key`, `apiKey` and `API-KEY` are one\n  key). Match a **bearer token before the key=value forms**: otherwise `Authorization: Bearer \u003Ctoken>` is\n  read as a key and a value, only the scheme word is hidden, and the token walks out.\n- **A buffer that is both persisted and fed back into the next outbound model call needs redaction at\n  insertion**, not only at final output. A conversation history, a scratchpad or a retry context is outbound\n  data on the next turn: scrubbing the final report hides what the log shows and not what the provider\n  received.\n- **Binary artifacts are not covered by text redaction.** Screenshots, PDFs and captured trace archives carry\n  whatever was on the screen or the wire; they need their own classification and their own access rules.\n\n## 3. Nothing ad hoc on stdout\n\n| | Forbidden in runtime code | Use |\n|---|---|---|\n| TS \u002F RN | `console.log\u002Fwarn\u002Ferror\u002Fdebug` | the project logger |\n| PHP | `dd()`, `dump()`, `var_dump()`, `print_r()`, `ds()`, `error_log()`, `xdebug_break()` | `Log::` |\n\nA debug line added while hunting a bug is the most common way one of these ships. Grep the staged diff before\ncommitting — and when you find one in someone else's code, **stop and report it, do not silently delete it**:\nit may be load-bearing for a session that is still open.\n\n## 3b. Concurrent writers never append to a shared file\n\nWith more than one process — pods, workers, a middleware on every request — a log written straight to a\nshared file is a correctness problem, not a performance one.\n\n- **The framework helper named `append` is usually a read-modify-write of the whole file.** It is quadratic\n  over the day and loses writes between processes. It is not an append.\n- **An append without an exclusive lock interleaves**, and on a network filesystem even small writes are not\n  guaranteed atomic.\n- **A rotating file handler written to in-request from many processes** produces interleaved lines and\n  timestamps out of order, plus one network write per line.\n\nIn order of preference: a **buffered channel** — processes push to a queue, one scheduled consumer writes\nbatches in timestamp order; **structured telemetry** exported outside the request path; or, only for a\nlow-frequency single writer, a real locked append.\n\nTwo consequences worth stating: the buffer means a line can be dropped when the cap is reached, so the\ndropping is **declared** by a marker in the file rather than left as a gap; and anything that signs a line\nsigns it at the **producer**, before it enters the buffer, so the signature also covers the transit.\n\n## 4. Detail belongs at debug, not info\n\nA full request\u002Fresponse, a query with its parameters, a whole entity: `debug`. `info` is the flow —\nwhat happened, to what, with what outcome.\n\nThe test: *would this line still be worth reading in production at 3am, a thousand times an hour?* If not, it\nis `debug`.\n\n## 5. A safety net must say when it catches something\n\nIf a final layer sanitises what the layers above should have handled, **it logs a warning when it fires**. A\nsilent safety net turns into the only thing that works, and nobody ever learns that something upstream leaks.\nIt is a net, not an excuse to keep writing `$e->getMessage()`.\n\n## 6. What the user sees, and how support gets from there to the log\n\nA generic message plus a **reference code**, and the same code in the log line. The user gets nothing\ntechnical; support gets the exact row. Never a stack trace, a class name, a filesystem path, a host, a table\nor a column.\n\n## 6b. The log is not the only way data gets out\n\nSanitising the logger and stopping there leaves an independent disclosure path wide open: the **error the\nAPI returns**. A driver or provider exception is not safe just because it is diagnostic — it carries\nconnection strings with credentials, tokens, and identifiers from the row that failed.\n\n- **One shared sanitiser on the outbound boundary**, bounded in length, with control characters normalised.\n  Detail belongs in the access-controlled log, not in the response.\n- **Report failures from an upstream provider as status and status text only.** The body is attacker- and\n  tenant-influenced content that callers routinely persist.\n- **Metrics are an outbound boundary too.** An unauthenticated scrape endpoint exposes whatever is in the\n  labels, so exposure is opt-in, fails closed at boot without an explicit authoriser, and label values never\n  carry payload.\n- **Telemetry is not the source of truth.** Exporters sample, drop and reorder; bound the export queue,\n  redact before serialisation, and keep the durable record independent of whether delivery succeeded.\n\n## 7. In local, you are not seeing production\n\nEvery redaction gated on the environment means the developer sees a different message than the user. That is\nthe right default — chasing a reference code while developing is a waste — but it has a cost: **nobody ever\nlooks at the production path**.\n\nSo the switch to force the production behaviour locally must exist, be documented next to the rule, and be\nused before calling the work done. Turning it on is part of \"done\" for anything that changes error handling.\n\n## 8. Where the redaction goes: per stack, and not interchangeable\n\n| | Node \u002F Bun · React Native | Laravel \u002F PHP |\n|---|---|---|\n| **Applied** | **at the call site** — there is no central pipeline to hook | **centrally** — a Monolog processor on every channel |\n| **Tool** | a redactor: `serializeError()`, `safeDbErrorDetails()` | `#[\\SensitiveParameter]` (the language redacts the argument from stack traces), masking helpers |\n| **Error → user** | error middleware gated on a fail-safe runtime check | source (exception handler) → extraction (`safeErrorMessage()`) → safety-net middleware |\n\n**Do not port the mechanism across.** Applying the TypeScript pattern to Laravel means editing a hundred call\nsites that a processor already covers; expecting a processor in Node means the redaction never happens,\nbecause there is nothing to hook it into. Identify which of the two shapes the stack has **before** writing\nthe fix.\n\nOn a stack not in this table: the invariants in §1–§7 hold. Find where the local logging pipeline lets you\nintervene once, and prefer that to touching every call site.\n\n---\n\n## Gotchas\n\n- **The failure branch is the one people read.** It is what gets opened when something breaks, copied into a\n  ticket and pasted into a chat. The branch least exercised in testing is the most exposed in practice.\n- **A redaction regex that nobody maintains decays.** Whoever finds an uncovered pattern in a log extends it;\n  that is part of the rule, not a favour.\n- **Error-path code runs when the database is down.** If the sanitiser reads settings or translations, wrap it\n  in try\u002Fcatch with hardcoded defaults, or a DB error becomes a loop of errors.\n- **A public identifier is not a secret.** Filtering an OAuth *client id* breaks login with nobody able to say\n  why. Target the secret half of the pair.\n- **Anti-flooding is part of the discipline.** A repeated error that sends an email per occurrence takes out\n  the inbox and the signal with it. Cap it with a cooldown.\n\n## Checklist\n\n- [ ] No exception or error object handed whole to a logger\n- [ ] No native exception message reaching a user; generic message + reference code\n- [ ] Parameterised query and binding shapes in the log, never the values\n- [ ] No `console.*` \u002F `dd()` \u002F `dump()` \u002F `var_dump()` in runtime paths, staged diff included\n- [ ] Full payloads at `debug`, flow at `info`\n- [ ] Redaction applied where this stack wants it (§8), not where the other stack wants it\n- [ ] String values scrubbed as well as keys; a buffer re-sent to a model redacted at insertion\n- [ ] Production error behaviour verified locally with the bypass off\n\n## Final report\n\n```\nLogging review: \u003Cn> files\nException objects logged: none | \u003Cfile:line> → \u003Credactor applied>\nTechnical detail reaching the user: none | \u003Cwhere>\nconsole\u002Fdd\u002Fdump in runtime: none | \u003Cfiles>\nLevel: \u003Cn> lines moved from info to debug\nMechanism: call-site | central pipeline — matching this stack\nProduction behaviour verified locally: yes | no\n```\n","# Logging discipline\n\nThree codebases that do not share a line of code — a Bun\u002FHono API, a React Native app and a Laravel monolith —\narrived independently at the same rules. That is not a convention: it is a property of the problem.\n\n**The invariants are the rule. The mechanism is per stack, and copying the wrong one does damage** (§8).\n\n---\n\n## 1. A driver exception is not a loggable object\n\nThis is the one that bit all three, and the damage was different every time:\n\n| Stack | The object | What it carries | Where it went |\n|---|---|---|---|\n| Node + mysql2 | `err.sql` | the query **already formatted**, bound values substituted | into the logs: the hash of an auth token |\n| Laravel + PDO | `QueryException::getMessage()` | SQLSTATE, production DB host, database name, the full INSERT | onto the **user's screen**, with their personal data |\n| React Native | a raw `Error` | message and stack | into the logs, and every crash collapsed into one issue |\n\n```ts\nlogger.error(\"db lookup failed:\", err);     \u002F\u002F ❌ err.sql goes with it\nLog::error($e);                              \u002F\u002F ❌ __toString() carries SQL and host\nlogger.error(\"[x]\", err);                    \u002F\u002F ❌ raw Error\n```\n\n**Never hand the exception object to the logger, and never put its native message in front of a user.**\n\n⚠️ Grepping for the *name of the secret* does not find this. The two real leaking lines in the API were caught\nonly because their message happened to contain the word \"token\"; `logger.error(\"db lookup failed:\", err)` is\nthe same bug and matches nothing. Check **what is handed to the logger**, not what the sentence says.\n\n## 2. Keep the diagnosis, drop the data\n\nTotal redaction makes the log useless exactly when it is needed. The sharpest formulation of the line comes\nfrom the Laravel side, and it generalises:\n\n> Log the **parameterised** SQL (with the `?`), and describe the bindings as **type and length** —\n> `['type' => 'string', 'len' => 31]`. The length is what tells you which `max:` is missing in the request.\n> The value is not needed for that, ever.\n\nSame idea everywhere else: keep what identifies the failure, drop what identifies the person.\n\n| Keep | Drop |\n|---|---|\n| error code, errno, SQLSTATE, driver code | the bound values, the formatted query |\n| table, column, constraint name | row contents |\n| shape: type, length, count | the payload |\n| a correlation id the user is also shown | tokens, cookies, `Authorization`, passwords |\n| the *kind* of an identity (`operator`, `ip`) | the identity value — an IP is personal data |\n\n## 2b. The redactor is software, and it has its own defects\n\nA redactor that is too eager destroys the evidence; one that is too narrow leaks. Both failures are silent,\nand both were found only after the artifact was needed.\n\n- **Redaction must never mutate identity.** If a DLP pass can rewrite a correlation id, a checkpoint key or\n  an audit hash, it breaks the chain it exists to protect. Identity fields are excluded by construction.\n- **A card-number rule that is just \"13 to 19 digits\" is not one**, especially if it accepts separators: a\n  timestamped run id matches it. Validate with the checksum the format actually has, and keep regression\n  cases for both a real test number **and** a production-shaped identifier.\n- **Never weaken redaction to make a fixture pass.** If the fixture trips the rule, the fixture is wrong —\n  give it a deterministic semantic id instead of a timestamp-derived one.\n- **Matching on a key *name* catches the wrong things.** A rule keyed on the word \"token\" turns a numeric\n  usage counter into `[REDACTED]` and makes cost evidence unreadable, while a token in a field called\n  something else walks out. Keep name-based exceptions to an explicit, narrow list.\n- **Attach entropy detection to an assignment**, not to every opaque string: `api_key: \u003Cvalue>` is a secret,\n  a base64 identifier is not.\n- **Key-based redaction cannot see a secret inside a string value.** Exception text, a URL with embedded\n  credentials or a free-form message carry the secret under a harmless key. Add a text scrub that runs on\n  string values, and normalise key spellings before matching (`api_key`, `apiKey` and `API-KEY` are one\n  key). Match a **bearer token before the key=value forms**: otherwise `Authorization: Bearer \u003Ctoken>` is\n  read as a key and a value, only the scheme word is hidden, and the token walks out.\n- **A buffer that is both persisted and fed back into the next outbound model call needs redaction at\n  insertion**, not only at final output. A conversation history, a scratchpad or a retry context is outbound\n  data on the next turn: scrubbing the final report hides what the log shows and not what the provider\n  received.\n- **Binary artifacts are not covered by text redaction.** Screenshots, PDFs and captured trace archives carry\n  whatever was on the screen or the wire; they need their own classification and their own access rules.\n\n## 3. Nothing ad hoc on stdout\n\n| | Forbidden in runtime code | Use |\n|---|---|---|\n| TS \u002F RN | `console.log\u002Fwarn\u002Ferror\u002Fdebug` | the project logger |\n| PHP | `dd()`, `dump()`, `var_dump()`, `print_r()`, `ds()`, `error_log()`, `xdebug_break()` | `Log::` |\n\nA debug line added while hunting a bug is the most common way one of these ships. Grep the staged diff before\ncommitting — and when you find one in someone else's code, **stop and report it, do not silently delete it**:\nit may be load-bearing for a session that is still open.\n\n## 3b. Concurrent writers never append to a shared file\n\nWith more than one process — pods, workers, a middleware on every request — a log written straight to a\nshared file is a correctness problem, not a performance one.\n\n- **The framework helper named `append` is usually a read-modify-write of the whole file.** It is quadratic\n  over the day and loses writes between processes. It is not an append.\n- **An append without an exclusive lock interleaves**, and on a network filesystem even small writes are not\n  guaranteed atomic.\n- **A rotating file handler written to in-request from many processes** produces interleaved lines and\n  timestamps out of order, plus one network write per line.\n\nIn order of preference: a **buffered channel** — processes push to a queue, one scheduled consumer writes\nbatches in timestamp order; **structured telemetry** exported outside the request path; or, only for a\nlow-frequency single writer, a real locked append.\n\nTwo consequences worth stating: the buffer means a line can be dropped when the cap is reached, so the\ndropping is **declared** by a marker in the file rather than left as a gap; and anything that signs a line\nsigns it at the **producer**, before it enters the buffer, so the signature also covers the transit.\n\n## 4. Detail belongs at debug, not info\n\nA full request\u002Fresponse, a query with its parameters, a whole entity: `debug`. `info` is the flow —\nwhat happened, to what, with what outcome.\n\nThe test: *would this line still be worth reading in production at 3am, a thousand times an hour?* If not, it\nis `debug`.\n\n## 5. A safety net must say when it catches something\n\nIf a final layer sanitises what the layers above should have handled, **it logs a warning when it fires**. A\nsilent safety net turns into the only thing that works, and nobody ever learns that something upstream leaks.\nIt is a net, not an excuse to keep writing `$e->getMessage()`.\n\n## 6. What the user sees, and how support gets from there to the log\n\nA generic message plus a **reference code**, and the same code in the log line. The user gets nothing\ntechnical; support gets the exact row. Never a stack trace, a class name, a filesystem path, a host, a table\nor a column.\n\n## 6b. The log is not the only way data gets out\n\nSanitising the logger and stopping there leaves an independent disclosure path wide open: the **error the\nAPI returns**. A driver or provider exception is not safe just because it is diagnostic — it carries\nconnection strings with credentials, tokens, and identifiers from the row that failed.\n\n- **One shared sanitiser on the outbound boundary**, bounded in length, with control characters normalised.\n  Detail belongs in the access-controlled log, not in the response.\n- **Report failures from an upstream provider as status and status text only.** The body is attacker- and\n  tenant-influenced content that callers routinely persist.\n- **Metrics are an outbound boundary too.** An unauthenticated scrape endpoint exposes whatever is in the\n  labels, so exposure is opt-in, fails closed at boot without an explicit authoriser, and label values never\n  carry payload.\n- **Telemetry is not the source of truth.** Exporters sample, drop and reorder; bound the export queue,\n  redact before serialisation, and keep the durable record independent of whether delivery succeeded.\n\n## 7. In local, you are not seeing production\n\nEvery redaction gated on the environment means the developer sees a different message than the user. That is\nthe right default — chasing a reference code while developing is a waste — but it has a cost: **nobody ever\nlooks at the production path**.\n\nSo the switch to force the production behaviour locally must exist, be documented next to the rule, and be\nused before calling the work done. Turning it on is part of \"done\" for anything that changes error handling.\n\n## 8. Where the redaction goes: per stack, and not interchangeable\n\n| | Node \u002F Bun · React Native | Laravel \u002F PHP |\n|---|---|---|\n| **Applied** | **at the call site** — there is no central pipeline to hook | **centrally** — a Monolog processor on every channel |\n| **Tool** | a redactor: `serializeError()`, `safeDbErrorDetails()` | `#[\\SensitiveParameter]` (the language redacts the argument from stack traces), masking helpers |\n| **Error → user** | error middleware gated on a fail-safe runtime check | source (exception handler) → extraction (`safeErrorMessage()`) → safety-net middleware |\n\n**Do not port the mechanism across.** Applying the TypeScript pattern to Laravel means editing a hundred call\nsites that a processor already covers; expecting a processor in Node means the redaction never happens,\nbecause there is nothing to hook it into. Identify which of the two shapes the stack has **before** writing\nthe fix.\n\nOn a stack not in this table: the invariants in §1–§7 hold. Find where the local logging pipeline lets you\nintervene once, and prefer that to touching every call site.\n\n---\n\n## Gotchas\n\n- **The failure branch is the one people read.** It is what gets opened when something breaks, copied into a\n  ticket and pasted into a chat. The branch least exercised in testing is the most exposed in practice.\n- **A redaction regex that nobody maintains decays.** Whoever finds an uncovered pattern in a log extends it;\n  that is part of the rule, not a favour.\n- **Error-path code runs when the database is down.** If the sanitiser reads settings or translations, wrap it\n  in try\u002Fcatch with hardcoded defaults, or a DB error becomes a loop of errors.\n- **A public identifier is not a secret.** Filtering an OAuth *client id* breaks login with nobody able to say\n  why. Target the secret half of the pair.\n- **Anti-flooding is part of the discipline.** A repeated error that sends an email per occurrence takes out\n  the inbox and the signal with it. Cap it with a cooldown.\n\n## Checklist\n\n- [ ] No exception or error object handed whole to a logger\n- [ ] No native exception message reaching a user; generic message + reference code\n- [ ] Parameterised query and binding shapes in the log, never the values\n- [ ] No `console.*` \u002F `dd()` \u002F `dump()` \u002F `var_dump()` in runtime paths, staged diff included\n- [ ] Full payloads at `debug`, flow at `info`\n- [ ] Redaction applied where this stack wants it (§8), not where the other stack wants it\n- [ ] String values scrubbed as well as keys; a buffer re-sent to a model redacted at insertion\n- [ ] Production error behaviour verified locally with the bypass off\n\n## Final report\n\n```\nLogging review: \u003Cn> files\nException objects logged: none | \u003Cfile:line> → \u003Credactor applied>\nTechnical detail reaching the user: none | \u003Cwhere>\nconsole\u002Fdd\u002Fdump in runtime: none | \u003Cfiles>\nLevel: \u003Cn> lines moved from info to debug\nMechanism: call-site | central pipeline — matching this stack\nProduction behaviour verified locally: yes | no\n```\n",{"name":5,"license":14,"metadata":23,"description":7,"compatibility":31},{"scope":24,"author":25,"summary":26,"version":27,"keywords":28,"profiles":29,"repository":30},"global","Padosoft","Keep the diagnosis, drop the data — and the log is not the only way data gets out.","0.4.0","logging, redaction, pii, secrets, exception, error handling, observability, monolog","core","https:\u002F\u002Fgithub.com\u002Fpadosoft\u002Fskills","Language-agnostic. The worked mechanisms cover TypeScript\u002FNode, React Native and Laravel\u002FPHP; on another stack apply the invariant and find the local equivalent before copying any of them.","main","8ff266762b08cab7f5be5551fa221309dc9db48b","skills\u002Fpadosoft-logging-discipline",0,"https:\u002F\u002Fgithub.com\u002Fpadosoft","https:\u002F\u002Fwww.padosoft.com","Software House","2026-10-19 01:02:17",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add padosoft\u002Fskills --skill padosoft-logging-discipline",{"tool":46,"command":47},"bunx","bunx skills add padosoft\u002Fskills --skill padosoft-logging-discipline",{"tool":49,"command":50},"pnpm","pnpm dlx skills add padosoft\u002Fskills --skill padosoft-logging-discipline","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpadosoft\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fpadosoft-logging-discipline\u002FSKILL.md",true,[54],{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"evals\u002Fqueries.json","REFERENCE","参考文档",1826,"https:\u002F\u002Fgithub.com\u002Fpadosoft\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fpadosoft-logging-discipline\u002Fevals\u002Fqueries.json",[61,68,74,81,88,94],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7CZNKCTMWK7F2J6KKPAR8YM","report-opus","Writes the weekly status report from the team's tickets. Use when the user asks for the weekly report or a status summary. Do not use it for incident reports.","https:\u002F\u002Fgithub.com\u002Fpadosoft\u002Fskills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-audit\u002Fproject\u002Fdot-claude\u002Fskills\u002Freport-opus\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M7CZNFEN8XK6S8NC6KGREYGS","report-haiku","https:\u002F\u002Fgithub.com\u002Fpadosoft\u002Fskills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-audit\u002Fproject\u002Fdot-claude\u002Fskills\u002Freport-haiku\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M7CZND182TKGGM7R4134ND00","kitt-stub","Builds the guided-tour reference for an admin page. Use when the user asks for the tour reference. Trigger \"tour\", \"reference\", \"guided tour\".","https:\u002F\u002Fgithub.com\u002Fpadosoft\u002Fskills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-audit\u002Fproject\u002Fdot-claude\u002Fskills\u002Fkitt-stub\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M7CZN9F2A6BFTFW5RSRNAGB1","good-skill","Generates the release notes of a project from its merged pull requests. Use this skill when the user asks for release notes, a changelog entry or a summary of what shipped since the last tag. Do not use it to write commit messages, that is the job of a commit skill.","https:\u002F\u002Fgithub.com\u002Fpadosoft\u002Fskills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-audit\u002Fproject\u002Fdot-claude\u002Fskills\u002Fgood-skill\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":18},"01M7CZN6BJASPD4DH8DFR63GQF","broken-frontmatter","https:\u002F\u002Fgithub.com\u002Fpadosoft\u002Fskills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-audit\u002Fproject\u002Fdot-claude\u002Fskills\u002Fbroken-frontmatter\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":18},"01M7CZN498TRNC30GSYMMAZNXM","Bad_Skill","I can help you with reports.","https:\u002F\u002Fgithub.com\u002Fpadosoft\u002Fskills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-audit\u002Fproject\u002Fdot-claude\u002Fskills\u002Fbad-skill\u002FSKILL.md",[],[]]