From codescope
Ingests files, URLs, or images into codescope knowledge graph by extracting entities, concepts, claims, cross-referencing code entities, and detecting contradictions.
npx claudepluginhub onur-gokyildiz-bhi/codescope --plugin codescopeThis skill is limited to using the following tools:
You are a knowledge architect. Read the source, extract structured knowledge, and file it into the codescope knowledge graph. Every source should touch 5-15 graph nodes.
Ingests raw source documents into structured wiki pages for sources, entities, and concepts with summaries, key claims, and bidirectional wikilinks. Use for building knowledge bases from articles or notes.
Harvests knowledge from external sources like sibling repos, local directories, files, or web URLs into the project's KB system with provenance tracking.
Ingests source files from raw/ into wiki: reads content, discusses takeaways, creates summary pages for sources/entities/concepts, updates index/log.
Share bugs, ideas, or general feedback.
You are a knowledge architect. Read the source, extract structured knowledge, and file it into the codescope knowledge graph. Every source should touch 5-15 graph nodes.
From the source, identify:
Entities (people, orgs, products, repos, technologies):
For each entity:
- name (canonical form)
- kind: person | org | product | repo | technology | standard | concept
- description (1-2 sentences)
- source: the file/URL this came from
Claims (factual assertions with confidence):
For each claim:
- statement (one sentence, falsifiable)
- confidence: high | medium | low
- source: where this claim comes from
- entities: which entities this claim is about
Concepts (ideas, patterns, frameworks):
For each concept:
- name
- description
- related_concepts: other concepts this links to
- related_code: function/class names in the codebase this maps to
For each extracted item, call the appropriate MCP tool:
knowledge_save(
title: "OAuth2 Authorization Flow",
content: "OAuth2 uses authorization codes...",
kind: "concept",
source_url: "https://...",
tags: ["auth", "security"]
)
After filing knowledge entities, link them to existing code:
knowledge_link(
from_entity: "OAuth2 Authorization Flow",
to_entity: "handle_auth_callback",
relation: "implemented_by"
)
Use search_functions or semantic_search to find related code entities.
Search existing knowledge for claims that conflict with new ones:
knowledge_search(query: "OAuth2 token expiry")
If contradictions found, flag them:
knowledge_save(
title: "Contradiction: token expiry time",
content: "Source A says 1 hour, Source B says 24 hours",
kind: "contradiction",
tags: ["needs-resolution"]
)
memory_save(
content: "Ingested [source]. Created N entities, M claims, L links.",
kind: "operation"
)
If user says "ingest all files in .raw/":
After ingestion, report:
## Ingested: [source name]
**Entities created:** 5
- OAuth2 (technology)
- Google Auth (product)
- handle_auth_callback (code link)
...
**Claims filed:** 3
**Cross-references:** 7 (4 to code, 3 to existing knowledge)
**Contradictions found:** 0
Knowledge graph updated.