@blackbelt-technology/pi-dashboard-authoring-toolkit 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,6 @@
1
1
  ---
2
2
  name: faq-mine
3
- description: >-
4
- Mine docs/faq.md from README.md, docs/*.md, AND the pi-hermes memory stores
5
- (project MEMORY.md + global failures.md). Dispatches @fast subagents per source
6
- to extract recurring how-to / what-is questions and runtime-problem fixes,
7
- dedupes against existing FAQ, and merges entries in caveman style. Use when the
8
- user asks to "build / regenerate / extend the FAQ", "mine docs into FAQ", "mine
9
- hermes memory into FAQ", "surface runtime problems in the FAQ", "create FAQ from
10
- README + docs", or "process knowledge into faq.md".
3
+ description: 'Mine docs/faq.md from README.md, docs/*.md, and the pi-hermes memory stores. Dispatches @fast subagents per source, dedupes against the existing FAQ, and merges entries in caveman style. Use when asked to "build / regenerate / extend the FAQ", "mine docs into FAQ", "mine hermes memory into FAQ", "surface runtime problems in the FAQ", or "create FAQ from README + docs".'
11
4
  license: MIT
12
5
  compatibility: Requires @fast subagents (general-purpose) + write access to docs/ + read access to ~/.pi/agent hermes stores.
13
6
  metadata:
@@ -1,15 +1,6 @@
1
1
  ---
2
2
  name: session-to-guideline
3
- description: >
4
- Turn a pi session into a Markdown "how-we-did-it" collaboration guideline. Reads a
5
- session's JSONL transcript, extracts the user's goal, every steering/correction turn,
6
- the tools/files/searches used, and any skills or memories created — then synthesizes a
7
- reusable playbook explaining how the task was performed WITH the AI: which prompts
8
- worked, what had to be steered, which skills were created and why they're effective,
9
- and how to reproduce the result faster.
10
- Use when: "document this session", "write up how we did X with the AI", "make a
11
- guideline from this session", "turn this session into a playbook/tutorial",
12
- "summarize what we built and how I steered it".
3
+ description: 'Turn a pi session into a Markdown "how-we-did-it" collaboration guideline: reads the session''s JSONL transcript and synthesizes a reusable playbook of which prompts worked, what had to be steered, and how to reproduce the result faster. Use when: "document this session", "write up how we did X with the AI", "make a guideline from this session", "turn this session into a playbook/tutorial".'
13
4
  ---
14
5
 
15
6
  # Session → Collaboration Guideline
@@ -0,0 +1,35 @@
1
+ # SKILL.md — index
2
+
3
+ Pull-only condensed map. Source: packages/authoring-toolkit/.pi/skills/skill-creator/SKILL.md. Trigger → principle → anatomy → creation step.
4
+
5
+ ## Meta
6
+ - Skill name — `skill-creator`. Guide for creating effective skills (new or update existing) that extend Claude's capabilities.
7
+ - Trigger — user wants to create a skill / extend capabilities with specialized knowledge, workflows, tool integrations.
8
+
9
+ ## About Skills
10
+ - Skills — modular self-contained packages; "onboarding guides" for domains. Provide: specialized workflows, tool integrations, domain expertise, bundled resources.
11
+
12
+ ## Core Principles
13
+ - Concise is key — context window is public good; Claude already smart; add only missing context; concise examples > verbose explanations.
14
+ - Degrees of freedom — high (text instructions, heuristics) for non-fragile tasks; medium (pseudocode/scripts w/ params); low (specific scripts) for fragile/error-prone ops needing exact sequence.
15
+
16
+ ## Anatomy of a Skill
17
+ - Layout — `skill-name/SKILL.md` (required: frontmatter `name`+`description` + markdown body) + optional `scripts/`, `references/`, `assets/`.
18
+ - scripts/ — executable code, deterministic, repeatedly rewritten. Token-efficient, run without loading into context. Example `scripts/rotate_pdf.py`.
19
+ - references/ — docs loaded into context as needed; schemas/API docs/policies. >10k words → include grep patterns in SKILL.md. Avoid duplication: info lives in SKILL.md OR references, prefer references for detail.
20
+ - assets/ — output files (templates, icons, fonts, boilerplate); not loaded into context.
21
+ - Do NOT include — README.md, INSTALLATION_GUIDE.md, QUICK_REFERENCE.md, CHANGELOG.md, etc. Clutter.
22
+
23
+ ## Progressive Disclosure
24
+ - 3 levels — metadata (always, ~100 words) → SKILL.md body (on trigger, <5k words) → bundled resources (as needed, unlimited). Keep body <500 lines.
25
+ - Patterns — 1 high-level guide w/ reference links (load refs only when needed); 2 domain organization (per-domain files, e.g. bigquery-skill/reference/finance.md); 3 conditional details (link advanced content).
26
+ - Guidelines — references one level deep from SKILL.md; refs >100 lines → table of contents.
27
+
28
+ ## Skill Creation Process
29
+ - Steps in order, skip only with clear reason — understand → plan → init → edit → package → iterate.
30
+ - Step 1 understand — concrete examples; ask functionality/use-cases/trigger phrases; avoid many questions at once.
31
+ - Step 2 plan — analyze each example → list reusable scripts/references/assets.
32
+ - Step 3 init — `scripts/init_skill.py <skill-name> --path <output-directory>`; creates template SKILL.md + scripts/references/assets w/ examples.
33
+ - Step 4 edit — write for another Claude instance; include beneficial non-obvious info. Consult references/workflows.md (multi-step) + references/output-patterns.md (output formats). Test scripts by running; delete unneeded examples. Imperative form. Frontmatter: only `name` + `description`; description = primary trigger, include what + all when-to-use (NOT in body). Quote description if contains `colon-space` (`Triggers: "..."`) — unquoted parses nested YAML, loader silently drops skill. Enforced: scripts/__tests__/skill-frontmatter.test.mjs.
34
+ - Step 5 package — `scripts/package_skill.py <path/to/skill-folder>` (optional output dir, e.g. ./dist). Validates: frontmatter, naming, directory structure, description quality, file organization. Creates `<name>.skill` (zip). Validation fails → errors, no package.
35
+ - Step 6 iterate — use on real tasks → notice struggles → update SKILL.md/resources → test again.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: skill-to-subagent
3
- description: "Turn an existing pi skill into an isolated subagent and wire it into a project's implementation pipeline. Use on triggers like \"wrap this skill as a subagent\", \"turn X into a subagent\", \"create a subagent from a skill\", \"should this be a subagent or a skill\", \"subagentize this\", \"isolate this into its own context\", \"add a subagent to the pipeline\". Tech-stack independent (works for any target project) but pi-platform-specific: relies on pi's .pi/agents/*.md, the Agent tool, role aliases, and inherit_context. Decides fitness first (coherence-critical work stays an inline skill), then writes the bridge agent, routes the model by function, tunes context inheritance, and wires a spawn checkpoint. Not a skill-authoring workflow (that's skill-creator) and not a feature-build workflow."
3
+ description: 'Turn an existing pi skill into an isolated subagent and wire it into a project''s implementation pipeline. Decides fitness first, writes the bridge agent, routes the model, tunes context inheritance, and wires a spawn checkpoint. Use on "wrap this skill as a subagent", "turn X into a subagent", "should this be a subagent or a skill", "subagentize this", "add a subagent to the pipeline".'
4
4
  related_skills: skill-creator
5
5
  ---
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blackbelt-technology/pi-dashboard-authoring-toolkit",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "General-purpose authoring skills for pi sessions — skill-creator (author/update skills), skill-to-subagent (wrap a skill as a subagent), session-to-guideline (turn a pi session JSONL transcript into a how-we-did-it Markdown playbook), and faq-mine (mine docs + memory stores into a FAQ). Pure-skill package, no extension.ts. skill-creator adapted from Anthropic's skill-creator (MIT).",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -23,7 +23,9 @@
23
23
  "files": [
24
24
  ".pi/skills/",
25
25
  "README.md",
26
- "NOTICE"
26
+ "NOTICE",
27
+ "!**/AGENTS.md",
28
+ "!**/*.AGENTS.md"
27
29
  ],
28
30
  "keywords": [
29
31
  "pi-package",
@@ -1,3 +0,0 @@
1
- # faq-mine/SKILL.md — index
2
-
3
- Skill (v2.0): mine `docs/faq.md` from TWO source classes — docs (README.md + evergreen `docs/*.md`) AND pi-hermes memory stores (project `~/.pi/agent/projects-memory/<proj>/MEMORY.md` + global `~/.pi/agent/pi-hermes-memory/failures.md`, `MEMORY.md`). Memory source surfaces runtime problems (tool-quirks/failures/insights) that never reach docs. Inputs `--memory <off|project|failures|all>` (default `failures`), `--docs <list|skip>` (`skip` = memory-only). Passing both `--docs` + `--memory` skips Phase 1 prompt (headless `--docs skip --memory failures` = the ship-change step-10.5 harvest). Phase 0 dedupe existing `## ` headings + enumerate stores; Phase 1 `ask_user` multiselect (docs + stores); Phase 2A doc-mining subagents, Phase 2B memory-mining subagents (symptom-first Q&A, global stores get repo-relevance filter), each writes own `docs/.faq-draft-*.md`; Phase 3 cross-draft + cross-store + doc-vs-memory dedupe; Phase 4 `cat >> faq.md` + rm drafts + refresh condensed `docs/faq.agent.md` via subagent. Caveman style, `Cross-refs:` blocks (memory entries cross-ref store path). READ-ONLY on `~/.pi/agent/**`. Never rename existing faq.md headings (install-hints.test.ts asserts `docsAnchor`→heading). Excludes `AGENTS.md`, `docs/faq.agent.md`, `session-knowledge-*.md`, `spec-gap-analysis.md`.