[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FZBN1JGCM0GYQKP8F5PQXE":3,"skill-same:01M6FZBN1JGCM0GYQKP8F5PQXE":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":35,"linkOnly":36,"markdownContent":37,"markdownBody":38,"frontMatter":39,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":47,"ownerHtmlUrl":48,"ownerBlogUrl":49,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M6FZBN1JGCM0GYQKP8F5PQXE","prompt-history-backfill",null,"Scan Claude and Codex conversation history for skill invocation prompts missing from repo prompt history and report or backfill them safely","GeorgeQLe\u002Fagentic-skills","GeorgeQLe","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F21134126?v=4","01M6D2JP418S0VGJGF8M93EC3H","George Le","01M6D2JPBAKYD82TA5FS6HKQ3D",1,"MIT","https:\u002F\u002Fgithub.com\u002FGeorgeQLe\u002Fagentic-skills\u002Fblob\u002Fmaster\u002Fpacks\u002Fsession-analytics\u002Fclaude\u002Fprompt-history-backfill\u002Farchive\u002Fv0.0\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34],"history","prompt","prompt history backfill","codex","report","dd","analysis","repo","v0","export","prompts","conversation","scan","missing","paths","mm","2026-11-10 10:12:30",false,"---\nname: prompt-history-backfill\ndescription: Scan Claude and Codex conversation history for skill invocation prompts missing from repo prompt history and report or backfill them safely\ntype: analysis\nversion: v0.0\nargument-hint: \"[--repo \u003Cpath>] [--skill \u003Cslug>] [--since YYYY-MM-DD] [--until YYYY-MM-DD] [--apply] [history\u002Fexport paths...]\"\n---\n\n# Prompt History Backfill\n\nInvoke as `\u002Fprompt-history-backfill`.\n\nUse this skill when the user wants to audit or backfill `prompts\u002F\u003Cskill-slug>\u002F` prompt-history artifacts from local Claude Code and Codex conversation history. The skill identifies visible user prompts that invoked skills, compares them with the target repository's prompt-history convention, and produces a reviewable report by default.\n\n## Inputs\n\n- Default target repository: current working directory.\n- Optional `--repo \u003Cpath>` to target another repository.\n- Optional `--skill \u003Cslug>` to limit detection and output to one skill.\n- Optional `--since YYYY-MM-DD` and `--until YYYY-MM-DD` filters.\n- Optional user-provided history files, exported logs, or session directories.\n- Default Claude history file: `~\u002F.claude\u002Fhistory.jsonl`.\n- Default Codex prompt history file: `~\u002F.codex\u002Fhistory.jsonl`.\n- Default Codex rich session root: `~\u002F.codex\u002Fsessions\u002F**\u002F*.jsonl`.\n\n## Process\n\n1. Resolve arguments and mode:\n   - Default mode is report-only.\n   - Do not create, modify, or remove prompt files unless the visible invocation includes explicit `--apply`.\n   - In report-only mode, prompt backfill candidates are reviewed but no files under `prompts\u002F\u003Cskill-slug>\u002F` are created.\n\n2. Resolve known skills in the target repo:\n   - Read active non-archive `SKILL.md` files under `global\u002F`, `packs\u002F`, `.claude\u002Fskills\u002F`, and `.codex\u002Fskills\u002F` when present.\n   - Include existing `prompts\u002F\u003Cskill-slug>\u002F` directories as known prompt-history targets.\n   - Apply `--skill \u003Cslug>` before writing or reporting candidate rows when provided.\n\n3. Read conversation history:\n   - Read all existing default sources for the selected date range: `~\u002F.claude\u002Fhistory.jsonl`, `~\u002F.codex\u002Fhistory.jsonl`, and `~\u002F.codex\u002Fsessions\u002F**\u002F*.jsonl`.\n   - Read optional user-provided history\u002Fexport paths in addition to the defaults unless the user explicitly says to use only those paths.\n   - If a source is missing or unreadable, report it and continue with available sources.\n\n4. Normalize records into visible user prompt candidates only:\n   - Claude compact history: use visible user-facing fields such as `display`, timestamp, project, session ID, and directly pasted visible context such as `pastedContents`.\n   - Codex compact history: use prompt `text`, timestamp, session ID, and cwd\u002Fproject metadata when available.\n   - Codex rich session JSONL: include user `response_item` records only when they are user-authored messages.\n   - Exclude hidden system instructions, hidden developer instructions, base prompts, tool output, tool arguments, assistant messages, unavailable model context, and generated summaries.\n\n5. Classify candidate confidence:\n   - High confidence: the visible user prompt begins with or clearly invokes `\u002Fskill-name`, `$skill-name`, or `You have the \u003Cskill> skill installed`.\n   - Medium confidence: the visible user prompt names a known skill and asks the agent to use it, but does not use command syntax.\n   - Low confidence: the prompt only loosely mentions a skill or workflow. Include it in the report, but never write it even when `--apply` is present.\n\n6. Compare against existing prompt history:\n   - For each high- or medium-confidence candidate, inspect `prompts\u002F\u003Cskill-slug>\u002F`.\n   - Skip an existing identical prompt file when the preserved visible prompt text and required frontmatter already match.\n   - When a timestamp filename collides with different content, add a deterministic short session suffix while preserving the base `skill-prompt-YYYYMMDD-HHMMSS-\u003Cshort-topic>` filename shape.\n\n7. Block likely secrets before writing:\n   - Before any `--apply` write, scan candidate prompt text for likely secrets such as API keys, bearer tokens, private keys, cookie\u002Fsession tokens, password assignments, credential-bearing URLs, database URLs, and common provider token prefixes.\n   - If a candidate contains a likely secret, do not write it. Mark it as blocked in the report and ask the user for a sanitized prompt.\n\n8. Write outputs:\n   - In report-only mode, write a review artifact at `alignment\u002Fprompt-history-backfill-{topic}.html` following `ALIGNMENT-PAGE.md`, plus a concise chat summary.\n   - In `--apply` mode, create missing prompt files only under `prompts\u002F\u003Cskill-slug>\u002F`.\n   - Use this YAML frontmatter exactly for every backfilled prompt file: `skill`, `agent`, `captured_at`, `source`, and `prompt_scope: visible-user-invocation`.\n   - Use `source: user-invocation` unless the user explicitly requests a more specific visible source label; put history file paths and session IDs in the report, not in prompt frontmatter.\n   - Preserve the exact visible user prompt content after frontmatter without summarizing, redacting, or truncating.\n\n## Output\n\nThe report should include:\n\n- Scope: repository, filters, sources read, sources missing, and mode.\n- Candidate summary by confidence, skill slug, source agent, timestamp, session ID, and status.\n- Missing prompt files that would be created in report-only mode.\n- Prompt files created in `--apply` mode.\n- Existing identical prompt files skipped.\n- Filename collisions and deterministic suffixes used.\n- Low-confidence candidates excluded from writes.\n- Likely-secret candidates blocked, with a sanitized-prompt request.\n- Verification notes proving no hidden system\u002Fdeveloper\u002Ftool output was used and all prompt writes stayed under `prompts\u002F\u003Cskill-slug>\u002F`.\n\n## Constraints\n\n- Report-only is the safe default; `--apply` is the only write mode for prompt files.\n- Never write low-confidence candidates.\n- Never write likely-secret candidates.\n- Never write prompt files outside `prompts\u002F\u003Cskill-slug>\u002F`.\n- Do not summarize, redact, or truncate the visible prompt body in backfilled prompt files.\n- Do not include hidden system\u002Fdeveloper instructions, tool output, assistant messages, or unavailable model context in prompt files.\n- Do not create or modify GitHub Actions workflows.\n\n## Alignment Page\n\nWhen this skill produces durable deliverables (research, specs, plans, reports, prototypes, or any document output), build a full-depth HTML alignment page following `ALIGNMENT-PAGE.md` in this skill's directory. Output: `alignment\u002Fprompt-history-backfill-{topic}.html`.\n\n## Default Shipping Contract\n\nFollow the shared shipping contract convention in CLAUDE.md.\n","# Prompt History Backfill\n\nInvoke as `\u002Fprompt-history-backfill`.\n\nUse this skill when the user wants to audit or backfill `prompts\u002F\u003Cskill-slug>\u002F` prompt-history artifacts from local Claude Code and Codex conversation history. The skill identifies visible user prompts that invoked skills, compares them with the target repository's prompt-history convention, and produces a reviewable report by default.\n\n## Inputs\n\n- Default target repository: current working directory.\n- Optional `--repo \u003Cpath>` to target another repository.\n- Optional `--skill \u003Cslug>` to limit detection and output to one skill.\n- Optional `--since YYYY-MM-DD` and `--until YYYY-MM-DD` filters.\n- Optional user-provided history files, exported logs, or session directories.\n- Default Claude history file: `~\u002F.claude\u002Fhistory.jsonl`.\n- Default Codex prompt history file: `~\u002F.codex\u002Fhistory.jsonl`.\n- Default Codex rich session root: `~\u002F.codex\u002Fsessions\u002F**\u002F*.jsonl`.\n\n## Process\n\n1. Resolve arguments and mode:\n   - Default mode is report-only.\n   - Do not create, modify, or remove prompt files unless the visible invocation includes explicit `--apply`.\n   - In report-only mode, prompt backfill candidates are reviewed but no files under `prompts\u002F\u003Cskill-slug>\u002F` are created.\n\n2. Resolve known skills in the target repo:\n   - Read active non-archive `SKILL.md` files under `global\u002F`, `packs\u002F`, `.claude\u002Fskills\u002F`, and `.codex\u002Fskills\u002F` when present.\n   - Include existing `prompts\u002F\u003Cskill-slug>\u002F` directories as known prompt-history targets.\n   - Apply `--skill \u003Cslug>` before writing or reporting candidate rows when provided.\n\n3. Read conversation history:\n   - Read all existing default sources for the selected date range: `~\u002F.claude\u002Fhistory.jsonl`, `~\u002F.codex\u002Fhistory.jsonl`, and `~\u002F.codex\u002Fsessions\u002F**\u002F*.jsonl`.\n   - Read optional user-provided history\u002Fexport paths in addition to the defaults unless the user explicitly says to use only those paths.\n   - If a source is missing or unreadable, report it and continue with available sources.\n\n4. Normalize records into visible user prompt candidates only:\n   - Claude compact history: use visible user-facing fields such as `display`, timestamp, project, session ID, and directly pasted visible context such as `pastedContents`.\n   - Codex compact history: use prompt `text`, timestamp, session ID, and cwd\u002Fproject metadata when available.\n   - Codex rich session JSONL: include user `response_item` records only when they are user-authored messages.\n   - Exclude hidden system instructions, hidden developer instructions, base prompts, tool output, tool arguments, assistant messages, unavailable model context, and generated summaries.\n\n5. Classify candidate confidence:\n   - High confidence: the visible user prompt begins with or clearly invokes `\u002Fskill-name`, `$skill-name`, or `You have the \u003Cskill> skill installed`.\n   - Medium confidence: the visible user prompt names a known skill and asks the agent to use it, but does not use command syntax.\n   - Low confidence: the prompt only loosely mentions a skill or workflow. Include it in the report, but never write it even when `--apply` is present.\n\n6. Compare against existing prompt history:\n   - For each high- or medium-confidence candidate, inspect `prompts\u002F\u003Cskill-slug>\u002F`.\n   - Skip an existing identical prompt file when the preserved visible prompt text and required frontmatter already match.\n   - When a timestamp filename collides with different content, add a deterministic short session suffix while preserving the base `skill-prompt-YYYYMMDD-HHMMSS-\u003Cshort-topic>` filename shape.\n\n7. Block likely secrets before writing:\n   - Before any `--apply` write, scan candidate prompt text for likely secrets such as API keys, bearer tokens, private keys, cookie\u002Fsession tokens, password assignments, credential-bearing URLs, database URLs, and common provider token prefixes.\n   - If a candidate contains a likely secret, do not write it. Mark it as blocked in the report and ask the user for a sanitized prompt.\n\n8. Write outputs:\n   - In report-only mode, write a review artifact at `alignment\u002Fprompt-history-backfill-{topic}.html` following `ALIGNMENT-PAGE.md`, plus a concise chat summary.\n   - In `--apply` mode, create missing prompt files only under `prompts\u002F\u003Cskill-slug>\u002F`.\n   - Use this YAML frontmatter exactly for every backfilled prompt file: `skill`, `agent`, `captured_at`, `source`, and `prompt_scope: visible-user-invocation`.\n   - Use `source: user-invocation` unless the user explicitly requests a more specific visible source label; put history file paths and session IDs in the report, not in prompt frontmatter.\n   - Preserve the exact visible user prompt content after frontmatter without summarizing, redacting, or truncating.\n\n## Output\n\nThe report should include:\n\n- Scope: repository, filters, sources read, sources missing, and mode.\n- Candidate summary by confidence, skill slug, source agent, timestamp, session ID, and status.\n- Missing prompt files that would be created in report-only mode.\n- Prompt files created in `--apply` mode.\n- Existing identical prompt files skipped.\n- Filename collisions and deterministic suffixes used.\n- Low-confidence candidates excluded from writes.\n- Likely-secret candidates blocked, with a sanitized-prompt request.\n- Verification notes proving no hidden system\u002Fdeveloper\u002Ftool output was used and all prompt writes stayed under `prompts\u002F\u003Cskill-slug>\u002F`.\n\n## Constraints\n\n- Report-only is the safe default; `--apply` is the only write mode for prompt files.\n- Never write low-confidence candidates.\n- Never write likely-secret candidates.\n- Never write prompt files outside `prompts\u002F\u003Cskill-slug>\u002F`.\n- Do not summarize, redact, or truncate the visible prompt body in backfilled prompt files.\n- Do not include hidden system\u002Fdeveloper instructions, tool output, assistant messages, or unavailable model context in prompt files.\n- Do not create or modify GitHub Actions workflows.\n\n## Alignment Page\n\nWhen this skill produces durable deliverables (research, specs, plans, reports, prototypes, or any document output), build a full-depth HTML alignment page following `ALIGNMENT-PAGE.md` in this skill's directory. Output: `alignment\u002Fprompt-history-backfill-{topic}.html`.\n\n## Default Shipping Contract\n\nFollow the shared shipping contract convention in CLAUDE.md.\n",{"name":5,"type":25,"version":40,"description":7,"argument-hint":41},"v0.0","[--repo \u003Cpath>] [--skill \u003Cslug>] [--since YYYY-MM-DD] [--until YYYY-MM-DD] [--apply] [history\u002Fexport paths...]","master","96e2912af886dd1606b1b97df707715aef062b02","packs\u002Fsession-analytics\u002Fclaude\u002Fprompt-history-backfill\u002Farchive\u002Fv0.0",0,"https:\u002F\u002Fgithub.com\u002FGeorgeQLe\u002Fagentic-skills","https:\u002F\u002Fagentic-skills-blush.vercel.app","https:\u002F\u002Fgithub.com\u002FGeorgeQLe","georgeqle.com","George Le is a futurist and serial tech entrepreneur who wants to work toward a world where humanity is free from robotic tasks.","2026-11-10 04:07:24",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add GeorgeQLe\u002Fagentic-skills --skill prompt-history-backfill",{"tool":58,"command":59},"bunx","bunx skills add GeorgeQLe\u002Fagentic-skills --skill prompt-history-backfill",{"tool":61,"command":62},"pnpm","pnpm dlx skills add GeorgeQLe\u002Fagentic-skills --skill prompt-history-backfill","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FGeorgeQLe\u002Fagentic-skills\u002Fblob\u002Fmaster\u002Fpacks\u002Fsession-analytics\u002Fclaude\u002Fprompt-history-backfill\u002Farchive\u002Fv0.0\u002FSKILL.md",true,[],[67,79,89,100,109,119],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":35},"01M6G0NJES15RJKZE6YZ0TSYGF","source-checkout-allowed","Valid source-checkout-only fixture.","https:\u002F\u002Fgithub.com\u002FGeorgeQLe\u002Fagentic-skills\u002Fblob\u002Fmaster\u002Ftests\u002Ffixtures\u002Fskill-install-routing\u002Fvalid\u002Fsource-checkout-allowed\u002FSKILL.md",[],[74,75,76,77,27,78],"source checkout allowed","checkout","fixture","only","valid",{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":35},"01M6G0NFZ3R1MNB1E3DVTM0WB7","deck-install-valid","Valid deck install fixture.","https:\u002F\u002Fgithub.com\u002FGeorgeQLe\u002Fagentic-skills\u002Fblob\u002Fmaster\u002Ftests\u002Ffixtures\u002Fskill-install-routing\u002Fvalid\u002Fdeck-install\u002FSKILL.md",[],[86,87,88,78,76,27],"deck install valid","deck","install",{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":35},"01M6G0ND3QZQC4MDZ9NVB97PT2","codex-pack-guard-valid","Valid Codex Pack Availability Guard fixture.","https:\u002F\u002Fgithub.com\u002FGeorgeQLe\u002Fagentic-skills\u002Fblob\u002Fmaster\u002Ftests\u002Ffixtures\u002Fskill-install-routing\u002Fvalid\u002Fcodex-pack-guard\u002FSKILL.md",[],[96,97,98,78,22,99,76,27],"codex pack guard valid","pack","guard","availability",{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":35},"01M6G0NA9YB3NKGZKD3S96JMNB","codex-missing-skill-valid","Valid Codex missing skill fallback fixture.","https:\u002F\u002Fgithub.com\u002FGeorgeQLe\u002Fagentic-skills\u002Fblob\u002Fmaster\u002Ftests\u002Ffixtures\u002Fskill-install-routing\u002Fvalid\u002Fcodex-missing-skill-fallback\u002FSKILL.md",[],[107,32,78,22,27,108,76],"codex missing skill valid","fallback",{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":35},"01M6G0N7PC0EKFD40ZWQAXSAQ9","codex-base-skill-fallback-valid","Valid Codex base skill fallback fixture.","https:\u002F\u002Fgithub.com\u002FGeorgeQLe\u002Fagentic-skills\u002Fblob\u002Fmaster\u002Ftests\u002Ffixtures\u002Fskill-install-routing\u002Fvalid\u002Fcodex-base-skill-fallback\u002FSKILL.md",[],[78,22,108,116,117,118,27,76],"base skill","codex base skill fallback valid","base",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":35},"01M6G0N4VRR2YKZQ6N3Y6S2BQA","claude-pack-guard-valid","Valid Claude Pack Availability Guard fixture.","https:\u002F\u002Fgithub.com\u002FGeorgeQLe\u002Fagentic-skills\u002Fblob\u002Fmaster\u002Ftests\u002Ffixtures\u002Fskill-install-routing\u002Fvalid\u002Fclaude-pack-guard\u002FSKILL.md",[],[78,98,97,126,99,27,76],"claude pack guard valid"]