Turn a real problem-solving process into reusable knowledge documentation and maintain a knowledge index.
A natural-language request is sufficient to trigger this Skill; no legacy slash path, argument interpolation, or designated assistant is required. Explicitly parse the project, target file, options, and output location from the current request; use the file, search, CLI, and browser capabilities actually provided by the current host.
Verify project dependency versions and external APIs at execution time; do not assume that examples represent current configurations. Resolve packaged scripts from the Skill root and business files from the target project root. Read the current state first, protecting existing uncommitted content and staging areas belonging to other tasks.
Keep analysis and preview requests read-only; perform modifications, commits, pushes, deployments, and publications only within the explicit scope of the current request. Do not bypass safeguards, automatically send messages, force-terminate user processes, or take over the foreground. On failure, preserve the original diagnostic errors.
-
Extract the problem, root cause, effective solution, and applicability boundaries from the current task and any evidence specified by the user. Unresolved problems must not be documented as validated lessons.
-
Parse the knowledge directory from the Profile or current request, remaining compatible with the existing distill layout. Name Markdown files by date and topic, retaining the problem, cause, solution, lesson, and source.
-
Take session ID, turn count, and elapsed time only from data actually provided by the host. Do not scan sessions from other projects or infer the current session from recently modified files; omit these fields when unavailable.
-
Maintain the date, file, title, tags, source, and available session fields in index.jsonl. Use JSON encoding to prevent escaping errors and deduplicate records by source file.
-
Blog synchronization is an optional, independent publishing action. Only when the request explicitly includes public synchronization and the content has passed privacy review, provide the exact Markdown path to an available publishing capability. Do not automatically publish the five most recent entries or fabricate official website links.
-
A commit must cover only the files confirmed for this run; --no-commit, --no-publish, and private must always be honored. Read back the document and index, and separately verify the actual URL when publishing.
Before execution, read this package's
and
Profile Contract. The priority order is the current request, project context, this Skill's records, shared preferences, Brand/User Profile, and security defaults.
Read only declared fields. Hosts without a dedicated runtime may use
to read the shared Profile. If a configuration is missing, ask only one question that affects the result. Values that the user explicitly requests to store long-term must be written atomically through this script, and the actual path must be reported. Do not store inferred information, credentials, or materials from other tasks.