chain-of-density
Iteratively densify text summaries using Chain-of-Density technique. Use when compressing verbose documentation, condensing requirements, or creating executive summaries while preserving information density.
Why use this skill?
Optimize your documentation and reports with OpenClaw's Chain-of-Density skill. Iteratively densify text to retain maximum information in fewer words.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/killerapp/chain-of-densityWhat This Skill Does
The Chain-of-Density (CoD) skill is a sophisticated text transformation agent designed for OpenClaw. It automates the methodology of iterative densification, a technique derived from academic research into large language model summarization. Unlike standard summarizers that often lose critical details to meet length constraints, CoD systematically compresses source text while injecting new entities. By iteratively refining a summary through five distinct passes, the skill ensures that the final output reaches a maximum information density without sacrificing readability or exceeding word count targets. It functions as a recursive subagent process, tracking missing entities from the source document to incrementally improve the richness of the summary until the limit is reached.
Installation
To begin using this skill, ensure you have the OpenClaw environment properly initialized. Run the following command in your terminal to fetch the package from the official source repository:
clawhub install openclaw/skills/skills/killerapp/chain-of-density
After installation, you can verify the setup by running the associated text metric scripts located in scripts/text_metrics.py to ensure your local word count benchmarks align with the agent's expected output format.
Use Cases
- Technical Documentation Compression: Reduce verbose API documentation or whitepapers into high-density summaries for quick team synchronization.
- Executive Briefing: Convert long-form meeting transcripts or industry reports into concise, information-rich executive summaries that retain all critical key players and milestones.
- Requirements Engineering: Condense extensive user stories or functional requirements documents into high-level specs without losing specific entity identifiers or constraints.
- Content Refinement: Optimize blog drafts or marketing copy to communicate more meaning per word, effectively increasing the 'value-per-character' of your communication.
Example Prompts
- "Chain-of-density summary of the provided Q3 financial report. Keep it under 100 words and ensure all mention of the new operational overhead figures are included."
- "Use the chain-of-density skill to condense this 50-page legal contract into a 5-sentence paragraph that captures all parties and liability clauses."
- "Summarize this research paper using the CoD methodology, focusing specifically on the experimental methodology and hardware entities mentioned in the text."
Tips & Limitations
- Word Count Precision: Always use
scripts/text_metrics.pyto ensure each iteration maintains the target length. Even minor drifts can affect the model's ability to compress entities effectively. - Entity Tracking: Pay close attention to the
Missing_Entities:output. If the agent fails to identify new entities, re-examine the source text or adjust the iteration target words. - Serialization: The skill is designed to be executed serially. Do not attempt to run iterations in parallel, as the process relies on the state produced by the preceding iteration.
- Source Persistence: You must always provide the source text in every iteration, not just the previous summary. This ensures the model has access to the full context for potential entity injection.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-killerapp-chain-of-density": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Related Skills
agentskills-io
Create, validate, and publish Agent Skills following the official open standard from agentskills.io. Use when (1) creating new skills for AI agents, (2) validating skill structure and metadata, (3) understanding the Agent Skills specification, (4) converting existing documentation into portable skills, or (5) ensuring cross-platform compatibility with Claude Code, Cursor, GitHub Copilot, and other tools.
aws-agentcore-langgraph
Deploy production LangGraph agents on AWS Bedrock AgentCore. Use for (1) multi-agent systems with orchestrator and specialist agent patterns, (2) building stateful agents with persistent cross-session memory, (3) connecting external tools via AgentCore Gateway (MCP, Lambda, APIs), (4) managing shared context across distributed agents, or (5) deploying complex agent ecosystems via CLI with production observability and scaling.
baml-codegen
Use when generating BAML code for type-safe LLM extraction, classification, RAG, or agent workflows - creates complete .baml files with types, functions, clients, tests, and framework integrations from natural language requirements. Queries official BoundaryML repositories via MCP for real-time patterns. Supports multimodal inputs (images, audio), Python/TypeScript/Ruby/Go, 10+ frameworks, 50-70% token optimization, 95%+ compilation success.
adversarial-coach
Adversarial implementation review based on Block's g3 dialectical autocoding research. Use when validating implementation completeness against requirements with fresh objectivity.
copywriter
Write compelling UX copy, marketing content, and product messaging. Use when writing button labels, error messages, landing pages, emails, CTAs, empty states, tooltips, or any user-facing text.