Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问clear审计通过

ebook-analysis电子书分析

Agent Skill

ebook-analysis 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

6,677

周安装

281

GitHub Stars

67

下载量

2,338
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ebook-analysis(电子书分析)
来源仓库:https://github.com/jwynia/agent-skills
仓库路径:skills/ebook-analysis
安装命令:
npx skills add https://github.com/jwynia/agent-skills --skill ebook-analysis
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/jwynia/agent-skills --skill ebook-analysis

简介

ebook-analysis 从非虚构电子书提取结构化知识与实体信息。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 中的文献分析场景。
  • 支持概念与实体的双层级抽取,强调来源可追溯性。
  • 采用纯文本处理技术,不依赖 LLM 调用。
  • 提取结果需绑定原始出处,确保引用完整性。ebook-analysis 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Ebook Analysis: Non-Fiction Knowledge Extraction

You analyze ebooks to extract knowledge with full citation traceability. This skill supports two complementary extraction modes:

  1. Concept Extraction - Extract ideas classified by abstraction (principle → tactic)
  2. Entity Extraction - Extract named things (studies, researchers, frameworks, anecdotes) that persist across books

Core Principle

Every extraction must be traceable to its exact source. Citation traceability is non-negotiable. Extract less with full provenance rather than more without it.


Two Extraction Modes

Mode 1: Concept Extraction

For extracting IDEAS organized by abstraction level.

Use when: Analyzing a book for transferable ideas, building a concept taxonomy, understanding how abstract principles relate to concrete tactics.

Output: JSON files (analysis.json, concepts.json)

Example: "Spaced repetition improves retention" is a MECHANISM at Layer 2.

Mode 2: Entity Extraction

For extracting NAMED THINGS that can be cross-referenced across books.

Use when: Building a knowledge base where the same study, researcher, or framework appears in multiple books. The goal is entity resolution—recognizing that "Hogarth's framework" in Range is the same as "kind/wicked environments" mentioned elsewhere.

Output: Markdown files in knowledge base structure

Example: "Kind vs Wicked Environments" is a FRAMEWORK by Robin Hogarth.

Choosing a Mode

If you want to...Use Mode
Understand a book's argument structureConcept Extraction
Build a reference library across booksEntity Extraction
Create actionable takeawaysConcept Extraction
Track what researchers say across sourcesEntity Extraction
BothRun both modes sequentially

Entity Extraction Mode (Detailed)

Entity Types

TypeWhat It CapturesExample
studyResearch findings, experiments, dataFlynn Effect, Marshmallow Test
researcherPeople and their contributionsAnders Ericsson, Robin Hogarth
frameworkMental models, taxonomies, systemsKind vs Wicked, Desirable Difficulties
anecdoteStories used to illustrate pointsTiger vs Roger, Challenger Disaster
conceptIdeas that aren't frameworksCognitive entrenchment, Match quality

Extended Entity Type Guidance

Some entities don't fit cleanly into the five types. Guidelines:

Entity KindUse TypeRationale
Simulations/Games (Superstruct, EVOKE)anecdoteIllustrative events, even if hypothetical
Institutions (IFTF, WEF)researcherOrganizations contribute ideas like individuals
Historical events (Challenger disaster)anecdoteStories that illustrate principles
Hypothetical scenariosanecdoteFuture scenarios from books like Imaginable
Thought experimentsframeworkIf systematic; otherwise concept

When uncertain: Default to anecdote for narratives/events, concept for ideas, framework for systematic methods.

Author-as-Subject Pattern

When the book's author is also a significant entity (e.g., Jane McGonigal in Imaginable):

Create a researcher entity if:

  • Author has notable prior work or institutional affiliation
  • Author appears in Wikipedia or other reference sources
  • Author's background/credentials are relevant to understanding the book
  • Other books in your collection might reference them

Skip if:

  • Author is primarily known only for this book
  • No external sources to verify/enrich the entity

Template addition for author-subjects:

## Note
This researcher is the author of [Book] in our collection. Their frameworks and concepts are documented separately.

Entity File Template

# [Entity Name]
**Type:** study | researcher | framework | anecdote | concept
**Status:** stub | partial | solid | authoritative
**Last Updated:** YYYY-MM-DD
**Aliases:** alias1, alias2, alias3

## Summary
[2-3 sentence synthesized understanding]

## Key Findings / What It Illustrates
1. [Claim or finding with source]
   — Source: [Book], Ch.[X]

2. [Another claim]
   — Source: [Book], Ch.[X]

## Key Quotes
> "Quotable text here."

> "Another memorable quote."

## Sources in Collection
| Book | Author | How It's Used | Citation |
|------|--------|---------------|----------|
| Range | Epstein | [Role in book] | Ch.X |

## Sources NOT in Collection
- [Book that would enrich this entity]

## Related Entities
- [Other Entity](../type/other-entity.md) - Relationship description

## Open Questions
- [What we don't yet know]

Knowledge Base Structure

/knowledge/
├── _index.md                    # Master registry
├── _entities.json               # Searchable index (generated)
│
├── nonfiction/
│   ├── _index.md                # Domain index
│   ├── _[book]-quotes.md        # Book-specific quotes file
│   ├── studies/
│   │   ├── flynn-effect.md
│   │   └── chase-simon-chunking.md
│   ├── researchers/
│   │   ├── hogarth-robin.md
│   │   └── tetlock-philip.md
│   ├── frameworks/
│   │   ├── kind-vs-wicked-environments.md
│   │   └── desirable-difficulties.md
│   ├── anecdotes/
│   │   ├── tiger-vs-roger.md
│   │   └── challenger-disaster.md
│   └── concepts/
│       ├── cognitive-entrenchment.md
│       └── match-quality.md
│
├── cooking/                     # Domain-specific structure
│   ├── techniques/
│   ├── ingredients/
│   └── equipment/
│
└── technical/
    ├── patterns/
    └── technologies/

Quotes Extraction

Quotable quotes are a distinct extraction type. For each book, create a quotes file:

File: _[book-slug]-quotes.md

Structure:

# Quotable Quotes from [Book Title]
**Author:** [Author]
**Last Updated:** YYYY-MM-DD

## On [Theme 1]
> "Quote text here."

> "Another quote on same theme."

## On [Theme 2]
> "Quote on different theme."

What makes a good quote:

  • Memorable phrasing that captures a key insight
  • Self-contained (understandable without context)
  • Surprising or counterintuitive formulation
  • Useful for presentations, writing, or reference

Entity Extraction Workflow

  1. Scan book - Read through identifying named studies, researchers, frameworks, illustrative stories
  2. Check existing entities - Use kb-resolve-entity.ts to see if entity already exists
  3. Create or update - New entity → create file; existing → add as source
  4. Add quotes - Extract memorable quotes to quotes file
  5. Cross-link - Add Related Entities sections
  6. Regenerate index - Run kb-generate-index.ts

Entity Extraction States (KB0-KB5)

StateSymptomsIntervention
KB0No knowledge baseCreate directory structure
KB1Structure exists, no entitiesBegin extraction
KB2Extracting from bookCreate entity files
KB3Entities created, not linkedAdd Related Entities
KB4Linked, no indexRun kb-generate-index.ts
KB5Complete for this bookProceed to next book

Cross-Book Synthesis Workflow

Triggered when: 2+ books have been extracted to the knowledge base.

Goals:

  1. Find entities that appear in multiple books
  2. Identify conceptual connections between books
  3. Surface contradictions or complementary perspectives
  4. Update entity files with multi-source synthesis

Process:

  1. Entity overlap detection # Find entities with 2+ sources grep -l "Sources in Collection" knowledge/nonfiction/**/*.md | \ xargs grep -l "|.* |.* |" | head -20 Or manually review entities updated with new source.
  2. Conceptual connection mapping

- Compare frameworks across books (e.g., Range's "wicked environments" ↔ Imaginable's "futures thinking") - Identify shared researchers (e.g., Tetlock appears in both Range and Imaginable) - Look for complementary themes (prediction failure → preparation despite uncertainty)

  1. Synthesis documentation For entities appearing in 2+ books, update the Summary section: ## Summary [Synthesized understanding from BOTH sources, noting agreements and differences]
  2. Cross-book insights Document thematic connections in context/insights/cross-book-{theme}.md: # Cross-Book Insight: [Theme] ## Books Contributing - Range (Epstein) - [perspective] - Imaginable (McGonigal) - [perspective] ## Synthesis [How the books complement or contradict each other]

Concept Extraction Mode (Detailed)

Concept Types (Abstract → Concrete)

TypeDefinitionExample
PrincipleFoundational truth or axiom"Communities form around shared identity"
MechanismHow something works"Reciprocity creates social bonds"
PatternRecurring structure or approach"The community lifecycle pattern"
StrategyHigh-level approach to achieve goals"Build trust before asking for contribution"
TacticSpecific actionable technique"Send welcome emails within 24 hours"

Abstraction Layers

LayerNameAbstractionExample
0FoundationalUniversal principles"Humans seek belonging"
1TheoreticalDomain-specific theory"Community requires shared purpose"
2StrategicApproaches and frameworks"The funnel model of engagement"
3TacticalSpecific methods"Onboarding sequences"
4SpecificConcrete implementations"Use Discourse for forums"

Relationship Types

RelationshipMeaningWhen to Use
INFLUENCESA affects BCausal or correlational connection
SUPPORTSA provides evidence for BCitation, example, validation
CONTRADICTSA conflicts with BOpposing claims
COMPOSED_OFA contains BPart-whole relationships
DERIVES_FROMA is derived from BLogical conclusions

Concept Extraction States (EA0-EA7)

StateSymptomsIntervention
EA0No input fileGuide file preparation
EA1Raw file, not parsedRun ea-parse.ts
EA2Parsed, not extractedLLM extracts concepts
EA3Extracted, not classifiedAssign types and layers
EA4Classified, not annotatedAdd themes, relationships
EA5Single book completeExport or proceed to synthesis
EA6Multi-book readyCross-book synthesis
EA7Analysis completeGenerate reports

Concept Extraction Workflow

  1. Parse - Run ea-parse.ts to chunk book with position tracking
  2. Extract - Present chunks to LLM for concept identification with exact quotes
  3. Classify - Assign type (principle→tactic) and layer (0-4)
  4. Annotate - Add themes and functional analysis
  5. Link - Connect related concepts
  6. Export - Generate analysis.json, concepts.json, report.md

Available Tools

Parsing Tools

ea-parse.ts

Parse ebook files into chunks with metadata and position tracking.

deno run --allow-read scripts/ea-parse.ts path/to/book.txt
deno run --allow-read scripts/ea-parse.ts path/to/book.epub --format epub
deno run --allow-read scripts/ea-parse.ts book.txt --chunk-size 1500 --overlap 150

Output: JSON with metadata, chapters (if detected), and chunks with positions.

Knowledge Base Tools

kb-generate-index.ts

Scan knowledge base and generate searchable entity index.

deno run --allow-read --allow-write scripts/kb-generate-index.ts /path/to/knowledge

Output: Creates _entities.json with all entities, aliases, and metadata.

kb-resolve-entity.ts

Search for existing entities before creating duplicates.

deno run --allow-read scripts/kb-resolve-entity.ts "Flynn Effect"
deno run --allow-read scripts/kb-resolve-entity.ts "Hogarth" --threshold 0.5
deno run --allow-read scripts/kb-resolve-entity.ts "kind learning" --json

Options:

  • --threshold <0-1> - Minimum match score (default: 0.3)
  • --limit <n> - Maximum results (default: 5)
  • --json - Output as JSON

Validation Tools

ea-validate.ts

Validate analysis output for citation accuracy and schema completeness.

deno run --allow-read scripts/ea-validate.ts analysis.json --report

Anti-Patterns

The Extraction Flood

Pattern: Extracting every potentially interesting phrase. Fix: Ask "Would I cite this?" before extracting. Quality over quantity.

The Citation Black Hole

Pattern: Extracting without preserving exact quotes or positions. Fix: Always capture: exact quote, chapter reference, context.

The Duplicate Entity

Pattern: Creating new entity without checking if it exists. Fix: Always run kb-resolve-entity.ts first.

The Orphan Entity

Pattern: Entities without Related Entities links. Fix: Every entity should connect to at least 2 others.

The Quote-Free Entity

Pattern: Entity captures ideas but no memorable phrasing. Fix: Include Key Quotes section with author's exact words.

The Single-Book Silo

Pattern: Analyzing books without cross-referencing. Fix: After 2+ books, run synthesis to find connections.


Example Workflows

Full Entity Extraction (Range Example)

1. Scan book chapter by chapter
2. Identify all named studies, researchers, frameworks, anecdotes
3. Create inventory document listing all potential entities
4. For each entity:
   a. kb-resolve-entity.ts "[entity name]" to check existence
   b. Create markdown file in appropriate type directory
   c. Fill in template with findings and citations
   d. Add Key Quotes section
5. Create _range-quotes.md with all memorable quotes
6. Update _index.md with new entities
7. kb-generate-index.ts to rebuild _entities.json

Quick Concept Scan

1. ea-parse.ts book.txt --chunk-size 2000
2. For each chunk, extract top 3-5 concepts
3. Classify by type and layer
4. Generate concepts.json and report.md

Output Persistence

Entity Extraction Output

FileLocation
Entity filesknowledge/{domain}/{type}/{entity-slug}.md
Quotes fileknowledge/{domain}/_[book]-quotes.md
Entity indexknowledge/_entities.json
Domain indexknowledge/{domain}/_index.md

Concept Extraction Output

FileLocation
Full analysisebook-analysis/{author}-{title}/analysis.json
Concepts onlyebook-analysis/{author}-{title}/concepts.json
Citationsebook-analysis/{author}-{title}/citations.json
Reportebook-analysis/{author}-{title}/report.md

Verification (Oracle)

What This Skill Can Verify

  • Citation positions exist - Validate quoted text appears at claimed position
  • Schema completeness - Required fields present
  • Cross-reference integrity - Referenced entities exist
  • Duplicate detection - Entity doesn't already exist (via kb-resolve-entity.ts)

What Requires Human Judgment

  • Significance - Is this worth extracting?
  • Classification - Is this really a "framework" vs "concept"?
  • Relationship validity - Does A really influence B?
  • Quote quality - Is this actually memorable?

Integration Graph

Inbound (From Other Skills)

SourceLeads to
researchMulti-book synthesis ready
reverse-outlinerStructural data for concept extraction

Outbound (To Other Skills)

From StateLeads to
Entity extraction completedna-extraction (deep functional analysis)
Concept extraction completemedia-meta-analysis (cross-source synthesis)

Complementary Skills

SkillRelationship
dna-extraction6-axis functional analysis for annotation
reverse-outlinerStructural approach for fiction
voice-analysisAuthor style fingerprinting
context-networkKnowledge base maintenance

Calibration Data (from Range + Imaginable extractions)

By Book Density

Book TypeExpected EntitiesEstimated Effort
Dense non-fiction (Range, Thinking Fast & Slow)60-1004-6 hours
Moderate non-fiction (most business books)30-502-3 hours
Light non-fiction (popular science)15-301-2 hours
Technical books20-402-3 hours

By Book Subtype

Different non-fiction subtypes yield different entity profiles:

SubtypeExampleEntity ProfileExpected Count
Research synthesisRangeMany studies, researchers, frameworks60-100
Methodological/How-toImaginableMany frameworks, few studies30-50
Memoir/NarrativeEducatedFew frameworks, many anecdotes20-40
ReferenceTechnical manualsMany concepts, few anecdotesVariable

Research synthesis books cite many studies and researchers, connecting ideas across domains. Methodological books teach techniques and frameworks but cite fewer external sources. Memoir/narrative books use personal stories to illustrate points rather than research.

Metadata Reliability Warning

Book classification metadata (Calibre tags, library categories) is often:

  • Wrong - Fiction/non-fiction misclassified
  • Generic - "General Fiction" or "Self-Help" applied broadly
  • Inconsistent - Same book categorized differently across sources

Always verify classification makes sense before extraction. A "fiction" tag on a methodology book like Imaginable is a metadata error.


Reasoning Requirements

Standard Reasoning

  • Single chunk concept extraction
  • Type/layer classification
  • Simple relationship identification
  • Individual entity creation

Extended Reasoning (ultrathink)

Use extended thinking for:

  • Multi-book synthesis - requires holding multiple networks simultaneously
  • Contradiction detection - semantic comparison across sources
  • Theme emergence - identifying patterns across large sets
  • Knowledge gap identification - reasoning about what's missing

Trigger phrases: "synthesize across books", "find contradictions", "identify gaps", "comprehensive analysis"


What You Do NOT Do

  • Extract without citation traceability
  • Create entities without checking for duplicates
  • Skip the linking phase (orphan entities are not useful)
  • Leave entities without quotes
  • Treat fiction as non-fiction
  • Use regex for semantic analysis (LLM judgment only)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

30.82%
按下载量换算721

OpenCode

21.72%
按下载量换算508

Antigravity

16.78%
按下载量换算392

Codex

12.37%
按下载量换算289

Gemini CLI

7.17%
按下载量换算168

windsurf

3.37%
按下载量换算79

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills