feat(skills): logging-init — interactive, evidence-based logging initialization - #4
Merged
Merged
Conversation
…ialization Logging setup was a one-line copy step buried at bootstrap step 8, with no detection of existing logging, no user input, and no non-Python guidance. Now: - logging-init skill: read-only probe (known-logger imports, config files, print/console.log density) -> classify GREENFIELD / PRINT-ONLY / PARTIAL / ESTABLISHED -> ask 3 questions in one batch with detected defaults (destination, dev rendering, correlation unit; non-interactive runs use defaults + a logged follow-up) -> stack-mapped recommendation (structlog / pino / slog / tracing / browser posture) tied to LOGGING_STANDARD.md capabilities -> wire additively with approval; ESTABLISHED repos keep their library and get a gap list, never a rewrite - kit.yaml + all presets: logging block (initialized/library/destination/ dev_console) records the outcome; documented in PROFILE.md - bootstrap step 8 dispatches logging-init instead of "adapt the template" - adopt-existing-project: new Phase 1.8 logging reality check so the gap report cites evidence (site counts) not assumption; Phase 4 wires via logging-init; audit summary line added - kit-doctor: warns when logging.initialized is false or the recorded library isn't in the project's deps - using-the-kit trigger index + README updated; kit_version 1.2.0 -> 1.3.0 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LxEwyqF1KjEPpQKqM5tSrv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the weakest part of both install paths: logging setup was a one-line "adapt from templates" copy step buried at bootstrap step 8, with no detection of existing logging, no user input, and no guidance for non-Python stacks. Adoption's audit didn't probe logging at all — the gap-report row was an assumption.
New
logging-initskill — the initialization flow:print/console.logdensity → classify the starting point: GREENFIELD / PRINT-ONLY (with site count) / PARTIAL / ESTABLISHED (library).kit.yamlloggingblock; verified by rendering a test event both ways and runningobservability-check.Wiring:
new-project-bootstrapstep 8 now dispatcheslogging-initinstead of copying a templateadopt-existing-projectgains Phase 1.8 "logging reality check" (evidence-based gap report) and wires vialogging-initin Phase 4; audit summary shows the classificationkit.yaml+ all five presets get theloggingblock; documented indocs/PROFILE.mdkit-doctorwarns whenlogging.initializedis false, or the recorded library isn't actually in the project's dependenciesusing-the-kittrigger index row (print/console.log logging →logging-init); README tree + catalogkit_version1.2.0 → 1.3.0Spec citation
What was tested
kit.yamland all five presets parse (each shows itsloggingblock), new SKILL.md frontmatter valid with name matching directory.Risk and rollback
Risk: low — new skill + checklist/config additions; no hooks or gate semantics change. The kit repo's own
kit.yamlrecordslogging.initialized: true(accurate: structlog reference setup). Presets shipinitialized: false, which makes kit-doctor nudge newly-bootstrapped projects to run the skill — intended behavior.Rollback: revert the PR.
Docs
releaseskillFollow-ups
🤖 Generated with Claude Code
https://claude.ai/code/session_01LxEwyqF1KjEPpQKqM5tSrv
Generated by Claude Code