Skip to content
Agentmart
Submit a tool

book-knowledge

Ingest technical sources (PDFs, markdown, papers) into a book workspace and maintain its persistent epistemic state — wiki synthesis, claim ledger with…

Skill by charles-hoskinson

IndexedMIT★ 2
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/charleshoskinson-book-knowledge

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Ingest technical sources (PDFs, markdown, papers) into a book workspace and maintain its persistent epistemic state — wiki synthesis, claim ledger with provenance, RDF graph with SHACL validation. All processing is local — no external APIs. Use when user says "ingest this paper", "add this source to the book", "update the book wiki", "extract claims from this section", "audit the knowledge graph", "validate claims", "find contradictions in the wiki", "check what's stale", or asks to refresh sources for a chapter. Do NOT use for chapter drafting (use book-compose), prose rewrites (use russellian-style), or casual document Q&A.

Use cases: documents, security, research

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/book-knowledge

What's inside

Skill name
book-knowledge
Description
Ingest technical sources (PDFs, markdown, papers) into a book workspace and maintain its persistent epistemic state — wiki synthesis, claim ledger with provenance, RDF graph with SHACL validation. All processing is local — no external APIs. Use when user says "ingest this paper", "add this source to the book", "update the book wiki", "extract claims from this section", "audit the knowledge graph", "validate claims", "find contradictions in the wiki", "check what's stale", or asks to refresh sources for a chapter. Do NOT use for chapter drafting (use book-compose), prose rewrites (use russellian-style), or casual document Q&A.
License
MIT
Metadata
author: charles-hoskinson · version: 0.1.0 · category: writing · workspace-aware: true
Instructions
110 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (198)

  • .gitignore
  • SKILL.md
  • chapter-retrieval-bundle.schema.json · assets/
  • claim-record.schema.json · assets/
  • counter-claim.schema.json · assets/
  • events.schema.json · assets/
  • graph-context.jsonld · assets/
  • ingest-trace.schema.json · assets/
  • _DEFERRED.md · assets/kg-constraints/
  • chapter-cites-verified.edn · assets/kg-constraints/
  • confidence-present.edn · assets/kg-constraints/
  • confidence-range-low.edn · assets/kg-constraints/
  • confidence-range.edn · assets/kg-constraints/
  • source-span-present.edn · assets/kg-constraints/
  • status-enum.edn · assets/kg-constraints/
  • status-present.edn · assets/kg-constraints/
  • text-cardinality.edn · assets/kg-constraints/
  • verified-derives.edn · assets/kg-constraints/
  • kg-prose-side-products.schema.json · assets/
  • _meta.yaml · assets/kg-queries/
  • chapter_evidence_coverage.edn · assets/kg-queries/
  • contested-rebuttal-window.edn · assets/kg-queries/
  • contradiction_scan.edn · assets/kg-queries/
  • orphan_wiki_pages.edn · assets/kg-queries/
  • posterior-floor.edn · assets/kg-queries/
  • rebuttal-presence.edn · assets/kg-queries/
  • stale_after_source_refresh.edn · assets/kg-queries/
  • unsupported_claims.edn · assets/kg-queries/
  • argumentation-grounded.edn · assets/kg-rules/
  • contradiction-workbench.edn · assets/kg-rules/
  • kg-schema.edn · assets/
  • proof-obligation-status-enum.edn · assets/
  • proof-obligation.schema.json · assets/
  • source-manifest.schema.json · assets/
  • status-enum.edn · assets/
  • verification-artifact.schema.json · assets/
  • CLAUDE.md.template · assets/workspace-skeleton/
  • current-status.md.template · assets/workspace-skeleton/wiki/
  • index.md.template · assets/workspace-skeleton/wiki/
  • log.md.template · assets/workspace-skeleton/wiki/
  • pyproject.toml
  • claims-and-provenance.md · references/
  • graph-audit-playbook.md · references/
  • ingest-playbook.md · references/
  • ontology-philosophy.md · references/
  • wiki-operating-model.md · references/
  • worked-example.md · references/
  • __init__.py · scripts/
  • apply_writeback.py · scripts/
  • argumentation.py · scripts/
  • audit_taxonomy.py · scripts/
  • belief_graph.py · scripts/
  • booklogic_kg.py · scripts/
  • build_design_kg_audit.py · scripts/
  • capture_characterization.py · scripts/
  • claim_validator.py · scripts/
  • code_claim_autolink.py · scripts/
  • contradiction_workbench.py · scripts/
  • counter_claims.py · scripts/
  • cozo_store.py · scripts/
  • …and 138 more

SKILL.md (first lines)

# book-knowledge

The epistemic compiler for a book workspace. Turns local sources into a typed, provenance-rich, SHACL-validated knowledge base that downstream skills read as ground truth.

## What it owns

- `raw/` — immutable source files and manifests
- `wiki/` — cumulative synthesis pages, append-only log, current-status
- `claims/` — append-only claim ledger and conflict records
- `graph/` — projected RDF dataset, SHACL shapes, validation and query reports

## What it does NOT own

- `chapters/` — written by book-compose; read-only here
- Prose style, persona review, Q&A — delegated to siblings
- Network I/O — this skill never reaches off-machine

## Components

Deterministic helpers in `scripts/`. Invoke via `.venv\Scripts\python.exe -m scripts.<name>`, or import directly.

Workspace and ingest:
- `workspace.py` — `init_workspace`, `find_workspace_root`, `WorkspaceLayout`
- `ingest_pdf.py`, `ingest_markdown.py`, `ingest_common.py` — pdfplumber and markdown-it-py source ingest
- `source_manifest.py` — sha256, doc_id, manifest schema

Claim ledger:
- `claim_validator.py` — schema plus five-state machine (proposed, verified, disputed, superseded, refuted; superseded and refuted terminal)
- `ledger.py` — append-only claim ledger
- `verify_claim.py` — locator-text cross-check; promotes proposed to verified
- `detect_conflicts.py` — antonym-pair contradiction scan
- `propagate_belief.py` — Bayesian belief propagation over PROV-O; writes p_posterior records, snapshot, report
- `counter_claims.py` — schema + I/O for counter-claims.jsonl
- `generate_counter_claims.py` — abductive counter-claim generator (LLM-call parameterized)
- `promote_addressed.py` — promote counter-claims to addressed after chapter draft check
- `apply_writeback.py` — applies QA-proposed ledger transitions; default propose-only, --auto-apply for critical D11 (unsupported_claim) tickets
- `events_log.py` — append-only state-transition log (claims/events.jsonl)

RDF graph, SHACL, SPARQL:
- `project_graph.py` — ledger to TriG with PROV-O
- `validate_shacl.py` — pyshacl wrapper; writes `graph/reports/shacl-latest.txt`
- `audit_taxonomy.py` — OntoClean role-as-subclass detector
- `run_competency_queries.py` — runs queries from coverage/, consistency/, and defeasible/ (defeasible queries emit warnings; gated by BLOCKING_DEFEASIBLE for hard-gate promotion)

Wiki:
- `wiki_index_regen.py` — rebuilds `wiki/index.md` from page front-matter

Schemas, SHACL shapes, and SPARQL queries ship in `assets/`. Progressive-disclosure docs in `references/`: `ingest-playbook.md`, `wiki-operating-model.md`, `claims-and-provenance.md`, `graph-audit-playbook.md`, `ontology-philosophy.md`, `worked-example.md`.

## Workspace layout

```
<workspace>/
  CLAUDE.md                    # workspace marker
  raw/{pdf,markdown,manifests}/
  wiki/
    index.md  log.md  current-status.md
    sources/  concepts/  entities/  chapters/
  claims/
    ledger.jsonl  conflicts.jsonl  verification/
    snapshots/                                # NEW — Bundle C
    counter-claims.jsonl                      # NEW — Bundle C
    address-checks/                           # NEW — Bundle C
    events.jsonl                              # NEW — Bundle C
  qa/
    proposed-transitions.jsonl                # book-qa writes; apply_writeback consumes (moved from claims/ in S2)
  graph/
    dataset.trig  shapes.ttl
    imports/  reports/
  chapters/{contracts,drafts,releases}/    # owned by book-compose
  reports/
```

## Composes with

- **russellian-style** — invoked by book-compose on drafted prose; never from here
- **book-compose** — consumes verified claims and SHACL reports to draft chapters
- **book-review** — runs persona passes against drafted chapters
- **book-qa** — final mechanical and editorial gate over built artefacts

## Usage

```bash
.venv\Scripts\python.exe -m scripts.workspace init <workspace>
.venv\Scripts\python.exe -m scripts.ingest_pdf <source.pdf> <workspace>
.venv\Scripts\python.exe -m scripts.verify_claim <workspace>
.venv\Scripts\python.exe -m scripts.project_graph <workspace>
.venv\Scripts\python.exe -m scripts.validate_shacl <workspace>
.venv\Scripts\python.exe -m scripts.run_competency_queries <workspace>
.venv\Scripts\python.exe -m scripts.propagate_belief <workspace>
.venv\Scripts\python.exe -m scripts.generate_counter_claims <workspace>  # prints abduction prompts for pending load-bearing claims
```

Release gate: SHACL conforms, `unsupported_claims` returns zero, `contradiction_scan` returns zero for chapters under release, and each contract meets its `minimum_verified_claims`. On failure, write `graph/reports/release-gate-<run>.md` and stop.

After writeback proposals from book-qa, run:
```
.venv\Scripts\python.exe -m scripts.apply_writeback <workspace> --auto-apply
```
to commit deterministic critical transitions; review qa/ledger-writeback-<version>.md before applying others.

## Tests

```bash
.venv\Scripts\python.exe -m pytest tests/
```

`tests/` covers every script plus integration, Anthropic compliance, and trigger calibration. Smoke results in `tests/smoke-results.md`.

From CharlesHoskinson/russellian-book-suite, MIT.

More from CharlesHoskinson/russellian-book-suite

Signals

Stars
2
Forks
0
Open issues
4
Last commit (this folder)
Jun 20, 2026 (4 months ago)
Last release
May 17, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
0.1.0
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from charles-hoskinson

Cite this page

book-knowledge skill. Agent Mart. https://agentmart.dev/skills/charleshoskinson-book-knowledge (last updated 2026-10-24)