account-research
Research a company or person and get actionable sales intel. Works standalone with web search, supercharged when you connect enrichment tools or your CRM.…
\"Implement text summarization using extractive and abstractive approaches. Use this skill when the user needs to condense long documents, build an automatic summarization pipeline, or compare summarization strategies — even if they say 'summarize this document', 'TLDR', or 'key
$ npx -y skills add charlieviettq/awesome-agent-skill --skill algo-nlp-summarization --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/algo-nlp-summarizationContext preview
The summary Claude sees to decide when to auto-load this skill.
\"Implement text summarization using extractive and abstractive approaches. Use this skill when the user needs to condense long documents, build an automatic summarization pipeline, or compare summarization strategies — even if they say 'summarize this document', 'TLDR', or 'key
name: "\"algo-nlp-summarization\"" description: "\"Implement text summarization using extractive and abstractive approaches. Use this skill when the user needs to condense long documents, build an automatic summarization pipeline, or compare summarization strategies — even if they say 'summarize this document', 'TLDR', or 'key points extraction'.\"." allowed-tools: Read, Glob, Grep
Text summarization condenses documents while preserving key information. Extractive: selects and concatenates important sentences from the original. Abstractive: generates new text that paraphrases the content. Extractive is simpler and more faithful; abstractive is more fluent but may hallucinate.
**Trigger conditions:**
**When NOT to use:**
IRON LAW: Abstractive Summarization Can HALLUCINATE Abstractive models may generate fluent text containing facts NOT in the source. Always verify key claims in abstractive summaries against the original document. For high-stakes use cases (legal, medical), prefer extractive or use abstractive with factual consistency checking.
Determine: input length, target summary length (ratio or word count), single-doc vs multi-doc, domain. **Gate:** Input text available, target length defined.
**Extractive (TextRank/LexRank):** 1. Split document into sentences 2. Build similarity graph (sentence nodes, cosine similarity edges) 3. Run PageRank on sentence graph 4. Select top-k sentences by rank, reorder by original position
**Abstractive (transformer-based):** 1. Use pre-trained model (BART, T5, Pegasus) 2. Encode input document (handle length limits with chunking if needed) 3. Generate summary with beam search 4. Post-process: check for repetition, factual consistency
Evaluate: ROUGE scores (ROUGE-1, ROUGE-2, ROUGE-L) against reference summaries. Manual check for factual accuracy and coherence. **Gate:** ROUGE scores reasonable for domain, no hallucinations in spot-check.
Return summary with metadata.
{
"summary": "The company reported Q4 revenue of...",
"method": "extractive_textrank",
"metadata": {"input_words": 2000, "summary_words": 200, "compression_ratio": 0.10, "sentences_selected": 5}
}**Input:** 2000-word news article about quarterly earnings **Expected:** 200-word summary covering: revenue, profit, guidance, key highlights. Extractive: 5-6 selected sentences. Abstractive: coherent paragraph.
| Input | Expected | Why | |-------|----------|-----| | Very short input (< 100 words) | Return as-is or minimal trimming | Already concise | | Multiple contradicting sections | Summary may miss nuance | Summarization favors dominant theme | | Technical jargon | Extractive preserves, abstractive may simplify | Domain expertise affects quality |
Curated skill pack for LLM agents in engineer and science workflow (Cursor & Claude ready).
Research a company or person and get actionable sales intel. Works standalone with web search, supercharged when you connect enrichment tools or your CRM.…
Evaluate LLM agents and tool-using workflows—task success, tool accuracy, latency/cost, safety, and regression suites. Use when shipping agent features,…
Design agent tools and CLI surfaces—schemas, naming, errors, idempotency, and discoverability for LLM callers. Use when defining tools for agents, SDKs, or…
\"Implement and select ad bidding strategies from manual CPC to automated target-CPA and target-ROAS. Use this skill when the user needs to choose a bidding…
\"Optimize advertising budget allocation across campaigns using marginal returns analysis. Use this skill when the user needs to distribute budget across…
\"Build CTR prediction models for estimating ad click-through rates from features. Use this skill when the user needs to predict click probability, build an ad…