thoughtbox:knowledge-query-d068c3 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited thoughtbox:knowledge-query-d068c3 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
The knowledge graph accumulates insights across sessions. This skill retrieves and synthesizes that accumulated knowledge so you don't rediscover what's already known.
Cast a wide net across both sessions and the knowledge graph:
// Search sessions by keyword
async () => {
const sessions = await tb.session.search("authentication", 10);
return sessions;
}// Search entities by name pattern and type
async () => {
const entities = await tb.knowledge.listEntities({
name_pattern: "auth",
types: ["Concept", "Insight"],
limit: 20
});
return entities;
}// Get graph statistics for context
async () => tb.knowledge.stats()For relevant entities, explore their neighborhood in the graph:
async () => {
return await tb.knowledge.queryGraph({
start_entity_id: "entity-uuid-here",
max_depth: 2,
relation_types: ["BUILDS_ON", "DEPENDS_ON", "RELATES_TO"]
});
}
// Returns: connected entities and relations within 2 hopsCheck observations for temporal context:
async () => {
return await tb.knowledge.getEntity("entity-uuid-here");
// Includes observations array with timestamps and content
}For deep dives, retrieve the full session that produced an insight. Use the subagent-summarize pattern to avoid context pollution:
Spawn a subagent with:
"Retrieve and summarize Thoughtbox session [ID].
Call: async () => tb.session.get('[ID]')
Extract only information about [TOPIC].
Return a 3-5 sentence summary. No raw thoughts."This keeps the full session (~800 tokens) in the subagent's context and returns only ~80 tokens to yours. 10x context reduction.
Combine findings from entities, relations, observations, and sessions into a coherent answer:
## Knowledge Query: "[topic]"
### Entities Found
- [Concept] "entity-name" — summary from properties
- Observation (date): "..."
- Related to: entity-B (BUILDS_ON), entity-C (DEPENDS_ON)
### Session Context
- Session "title" (date, N thoughts): [summary from subagent]
### Gaps
- No entities found for [sub-topic] — consider creating one
- Session from [date] may be outdated — verify current stateIf this query reveals connections not yet in the graph, create them:
async () => {
// New relation discovered during query
await tb.knowledge.createRelation({
from_id: "entity-a-uuid",
to_id: "entity-b-uuid",
relation_type: "RELATES_TO",
properties: { discovered_via: "knowledge-query", context: "both relate to session management" }
});
}Types: Concept (technical idea), Insight (learned truth), Workflow (process)
Relations: BUILDS_ON (extends), DEPENDS_ON (requires), RELATES_TO (connected)
types filter when you know you're looking for a decision (Insight) vs a concept (Concept)~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.