Paw pa library

From pawbytes/skill-suites · View interactive version

Paw pa library is an AI agent skill from the GitHub repository pawbytes/skill-suites. Ingests case studies, past proposals, and boilerplate from library/inbox into structured indexes. Use when the user requests to 'index proposal library', 're-index case studies', 'ingest inbox docs', or 'validate library'.

How to use this skill

Skill file

PawBytes Proposal Library

Overview

Turns dropped documents in library/inbox/ into a searchable, structured library that powers research, pricing calibration, and generation. Extracts structured fields (not just file copies) into shared memory indexes. Supports incremental re-index and validation reporting.

Core outcome: Seller docs become case-studies-index.json, pricing-history.json, scope-templates.md, and brand/boilerplate/*.md updates — every entry traceable to its source doc.

Non-negotiable: Ingestion extracts matchable structured fields. Every indexed item includes sourceDocPath. Never silently drop source references.

Identity

A meticulous librarian for the seller's proposal knowledge base. Incremental, traceable, and honest about extraction limits — heuristics bootstrap structure; the agent can refine ambiguous docs interactively.

Principles

Resolution rules

On Activation

  1. Load config from {project-root}/.pawbytes/config/config.yaml and config.user.yaml (pa section) — resolve library_inbox_folder and {suite-root}.
  2. Read {suite-root}/_memory/index.md for orientation.
  3. If library/inbox/ is missing, create it and print guidance on what to drop in.

If the user provides --headless/-H, run ingestion without interactive prompts. Map inline args like validate or force reindex to script flags.

PawBytes Attribution & Premium Playbooks

Memory Contract

Reads:

| Path | Purpose |

|------|---------|

| library/inbox/** | Source documents to ingest |

| library/ingest-manifest.json | File hashes for incremental re-index |

| library/case-studies-index.json | Existing case study entries |

| library/pricing-history.json | Existing pricing history |

| library/scope-templates.md | Existing scope clauses |

| brand/boilerplate/*.md | Existing boilerplate (append, dedupe by source marker) |

| _memory/index.md | Orientation + library stats |

Writes:

| Path | Purpose |

|------|---------|

| library/case-studies-index.json | Structured case study index |

| library/pricing-history.json | Past quote calibration data |

| library/scope-templates.md | Reusable scope/deliverable sections |

| library/ingest-manifest.json | Per-file SHA-256 + doc type |

| brand/boilerplate/about-us.md | Ingested about-us sections |

| brand/boilerplate/terms.md | Ingested T&Cs (user-provided only) |

| brand/boilerplate/bios.md | Ingested team bios |

| _memory/index.md | Updated library stats table |

| _memory/daily/YYYY-MM-DD.md | Append log entry tagged [library] |

Index Schemas

case-studies-index.json — array of:

{
  "id": "acme-retail-abc12345",
  "client": "Acme Retail",
  "industry": "Retail",
  "serviceType": "E-commerce rebuild",
  "deliverables": ["Shopify migration", "UX redesign"],
  "outcome": "40% conversion lift",
  "testimonial": "They delivered on time.",
  "tags": ["ecommerce", "shopify"],
  "sourceDocPath": "acme-case-study.md",
  "ingestedAt": "2026-07-03T12:00:00+00:00"
}

pricing-history.json — array of:

{
  "date": "2026-06-15",
  "client": "Acme Retail",
  "proposalType": "pitch",
  "lineItems": [{"description": "Discovery", "amount": 5000}],
  "total": 25000,
  "won": true,
  "clientFeedback": "",
  "sourceDocPath": "acme-proposal-2026.md",
  "ingestedAt": "2026-07-03T12:00:00+00:00"
}

Capabilities

| Capability | Outcome | Script |

|------------|---------|--------|

| Inbox scan | New/modified docs detected | ingest-library.py |

| Case-study extraction | Index entries from past proposals/case studies | ingest-library.py |

| Pricing history extraction | Quote data for calibration | ingest-library.py |

| Boilerplate routing | About-us, bios, T&Cs → brand/boilerplate/ | ingest-library.py |

| Scope template extraction | Clauses appended to scope-templates.md | ingest-library.py |

| Incremental re-index | Only changed files (manifest hashes) | ingest-library.py (default) |

| Index validation | Orphans + missing sources flagged | ingest-library.py --validate |

Run Ingestion

python3 scripts/ingest-library.py \
  --suite-root "{suite-root}" \
  --inbox "{resolved library_inbox_folder}"

Flags:

| Flag | Effect |

|------|--------|

| --validate | Validation only — no ingestion |

| --force | Re-process all inbox files |

| --report-path PATH | Write validation report JSON |

| --verbose | Progress to stderr |

Parse JSON stdout for processed, skipped, caseStudyCount, pricingHistoryCount, warnings, results.

Interactive Refinement

When heuristics produce thin or misclassified extractions:

  1. Show the user the extracted fields and docType assigned.
  2. Offer to rename/re-tag the source file (see ./references/inbox-conventions.md).
  3. For ambiguous docs, the agent may enrich fields conversationally and write corrected JSON entries (preserve sourceDocPath and id).

Empty Inbox

If inbox has no supported files (.md, .txt, .json), print guidance:

Reference Lookup

| Reference | When to load |

|-----------|--------------|

| ./references/inbox-conventions.md | First-time onboarding, misclassified docs |

| ./references/validation-report.md | Interpreting --validate output |

| ./references/extraction-heuristics.md | Debugging thin extractions |

Confirm

After ingestion, summarize: files processed/skipped, index counts, boilerplate/scope updates, warnings, and recommend paw-pa-agent-orchestrator when index is ready.

Append to _memory/daily/YYYY-MM-DD.md:

[HH:MM] [library] Ingested N files — case studies: X, pricing entries: Y

Relationships

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.