digest

digest is a skill for Claude Code from huytieu/COG-second-brain. It costs 41 tokens per session (127 once invoked), scanned A, original, MIT.

A layered workflow for preparing and summarizing a long Markdown document. It keeps the original text, extracts important passages, and produces summaries in several levels while retaining quotes that scripts can check.

In plain words
What is it for?
Use it to produce raw captures, key passages, a core summary, an executive summary, and a plain-language rewrite of Markdown documents.
Why use it?
It makes long documents easier to understand without losing the source material or making quotations impossible to verify.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; installed under .agents/ (shared by several agents).

Part of the cog-second-brain plugin — 49 skills, 7 commands, 10 agents shipped together

Good fit Use it to produce raw captures, key passages, a core summary, an executive summary, and a plain-language rewrite of Markdown documents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/huytieu/cog-second-brain/digest
About the project

COG is an AI-assisted second brain that stores knowledge in Markdown files and uses agents, skills, and version control to evolve it over time. It helps people manage knowledge and contacts while supporting several coding-agent tools; the catalogue entries are COG’s skills, agents, instructions, rules, and plugin surfaces.

huytieu/COG-second-brain · 1,560 stars · on GitHub

Install

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.

Any agent
npx skills add huytieu/COG-second-brain --skill digest
Clone the repo
git clone --depth 1 https://github.com/huytieu/COG-second-brain

Made for: Claude Code.

Or install cog-second-brain, the plugin that ships this one along with the rest of its 49 skills, 7 commands, 10 agents.

Wrote 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.

agentmods badge for digest

README.md
[![agentmods](https://agentmods.dev/badge/skills/huytieu/cog-second-brain/digest/github.svg)](https://agentmods.dev/skills/huytieu/cog-second-brain/digest)
Your own site
<a href="https://agentmods.dev/skills/huytieu/cog-second-brain/digest"><img src="https://agentmods.dev/badge/skills/huytieu/cog-second-brain/digest/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.

agentmods 80×15 button for digest

Your own site · 80×15
<a href="https://agentmods.dev/skills/huytieu/cog-second-brain/digest"><img src="https://agentmods.dev/badge/skills/huytieu/cog-second-brain/digest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 127 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.00127
Opus 5.5 $0.00016 $0.00051
Sonnet 5.5 $0.00008 $0.00025
Haiku 4.5 $0.00004 $0.00013

Measured yesterday against content hash b59ab3fbeef8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

digest 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 yesterday.

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.

.agents/skills/digest/SKILL.md · 11 lines

What it actually says

Read .claude/skills/digest/SKILL.md and execute it exactly as written. That file is the authoritative playbook. Then follow .agents/rules/cog.md.

Antigravity substitution: where the playbook delegates to a .claude/agents/<name> worker, invoke .agents/agents/<name>.md via invoke_subagent instead.

Changes

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.

  1. yesterday First seen · 11 lines · 41 tokens per session scan A b59ab3fbeef8

Subscribe to this mod's changes

digest is a skill published in the GitHub repository huytieu/COG-second-brain (1,560 stars, last pushed yesterday), licensed MIT. It adds 41 tokens to every session and 127 once invoked, about $0.0002 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-12-04.

Related

digest compared with skills from other repositories

digest next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
digesthuytieu/COG-second-brainSkill1.6kyesterdayMITA41Claude Code
ac-tools-gsuiteWaterplanAI/agentic-configSkill3123d agoMITA33Claude Code
gsuiteWaterplanAI/agentic-configSkill3123d agoMITA31Claude Code
oma-pdffirst-fluke/oh-my-agentSkill1.5ktodayMITA33Claude Code, Codex
craft-data-visualBlackBeltTechnology/pi-agent-dashboardSkill357todayMITA71Claude Code, Codex
honey-pxGreen-PT/honey-for-devsSkill3699d agoMITA18Claude Code
pptxnexus-research-lab/nexusSkill167todayApache-2.0A95Claude Code