Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add aiya000/dotfiles --skill resume-from-chat-historygit clone --depth 1 https://github.com/aiya000/dotfilesWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/aiya000/dotfiles/resume-from-chat-history)<a href="https://agentmods.dev/skills/aiya000/dotfiles/resume-from-chat-history"><img src="https://agentmods.dev/badge/skills/aiya000/dotfiles/resume-from-chat-history/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/aiya000/dotfiles/resume-from-chat-history"><img src="https://agentmods.dev/badge/skills/aiya000/dotfiles/resume-from-chat-history.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00112 | $0.02451 |
| Opus 5.5 | $0.00045 | $0.00980 |
| Sonnet 5.5 | $0.00022 | $0.00490 |
| Haiku 4.5 | $0.00011 | $0.00245 |
Grade A, and why
resume-from-chat-history scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 184 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Resume from chat history
Rebuild the context of a broken or lost Kiro chat from the auto-saved session files on disk, then hand off cleanly so work continues without losing decisions or the mid-task position.
Background: where Kiro keeps chat history
Kiro CLI auto-saves every conversation turn to per-directory session files under:
~/.kiro/sessions/cli/
├── {session_id}.json # metadata: cwd, title, created_at, updated_at, session_state
├── {session_id}.jsonl # append-only conversation log (one JSON object per line)
├── {session_id}.history # prompt history
└── {session_id}.lock # present ONLY while that session is actively running
Key facts this skill relies on:
- Sessions are keyed by working directory (
cwdfield in the.json). - The currently running session has a
.lockfile; a broken/ended one does not (a stale lock can remain after a crash, so also useupdated_atandcwdto disambiguate). - The
.jsonllog holds the real content. Each line is one JSON object with akindfield:kind: "Prompt"→ a user message. Text lives indata.content[]items wherekind == "text"(fielddata).kind: "AssistantMessage"→ an assistant message (itsdata.contentmay be a plain string or a list).kind: "ToolResults"→ tool outputs (usually skip when reconstructing intent).
- There is no built-in content search; use
rgover the.jsonlfiles.
When to use
- The user reports the previous chat broke or was lost: "壊れた", "落ちた", "また壊れた", "the chat broke".
- The user asks to hand off / resume: "引き継いで", "続きから", "内容読んで引き継げる", "resume the prior work".
- The current session clearly lacks context for work already in progress — e.g. a feature branch is checked out with many uncommitted changes, but nothing in this session explains them.
If the user instead wants to re-run a stalled tool call inside the same live session, that is the next skill, not this one.
Workflow
1. Establish the current working directory and in-progress work
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 15d ago First seen · 184 lines · 112 tokens per session scan A 7b98dd6ddec2
resume-from-chat-history is a skill published in the GitHub repository aiya000/dotfiles (21 stars, last pushed 2d ago), licensed MIT. It adds 112 tokens to every session and 2,451 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-01.
Other skills, from other repositories
use-notion
Reference for using the Notion API via the notion-agent subagent. Use to expore and update Notion workspace content.
restart__pull_request
A pull-request restart workflow for replacing a messy review with a new pull request containing one clean commit and a summary of the earlier discussion.
rescue__pull_request_review
An automated workflow for handling GitHub pull-request review comments, applying requested code changes, committing them, and pushing them back.
submit__pull_request
An automated pull-request submission workflow. A pull request is a request for a code change to be reviewed and merged; this workflow writes its explanation, creates it, watches its automated checks, and fixes failed checks.
write__pull_request
A workflow for writing a pull request description, the explanation attached to a proposed code change for review. It analyses the changes and commit history.
monitor__ci_status
An automated monitor for GitHub Actions, the service that runs checks such as tests after code changes. It watches all checks after a pull request or a push to a pull-request branch and can invoke a failure-recovery process.