AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Kb Maintenance

skill-chuongdlb-agent-skills-kb-maintenance · by chuongdlb

>

No reviews yet
0 installs
32 views
0.0% view→install

Install

$ agentstack add skill-chuongdlb-agent-skills-kb-maintenance

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-chuongdlb-agent-skills-kb-maintenance)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Kb Maintenance? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

KB Maintenance — Full Update Cycle Orchestrator

Purpose

Run a complete knowledge base update cycle by orchestrating the four component skills:

  1. paper-discoverer — find new papers
  2. paper-extractor — extract paper cards
  3. kb-integrator — classify and integrate
  4. kb-query — health check queries

When to Use

Invoke this skill when:

  • Running a scheduled daily update (via launchd or manual trigger)
  • The user asks to "update the KB" or "check for new papers"
  • New PDFs have been added to pdf/ and need processing

Not for: Individual paper extraction or one-off queries.

Full Cycle Steps

Step 1: Pre-Flight Check

  1. Read kb/registry.json — get current paper count and existing IDs
  2. Read kb/stats.md — get last update date
  3. Check pdf/ for any new PDFs not in the registry (compare filenames)
  4. Check pdf/downloads/ for PDFs the user has moved to pdf/ since last cycle
  5. Report: "Starting cycle. KB has N papers. Found M new PDFs to process."

Step 2: Discovery (5-10 min)

Invoke the paper-discoverer skill:

  • Run all standing queries from kb/config/search-queries.md
  • Download available PDFs for auto-accepted candidates
  • Write candidate report

Skip this step if invoked with --skip-discovery or if the user only wants to process existing PDFs.

Step 3: Process New PDFs

Identify PDFs to process:

  • PDFs in pdf/ that are not in kb/registry.json (match by filename)
  • PDFs recently moved from pdf/downloads/ to pdf/

For each new PDF, invoke paper-extractor:

  • Parallelize using the Agent tool: launch one agent per PDF (up to 5 concurrent)
  • Each agent runs the paper-extractor skill independently
  • Wait for all agents to complete

Agent prompt template:

You are a paper extraction agent. Read the PDF at  and create a paper card following the paper-extractor skill format.

Read the taxonomy at kb/config/taxonomy.md for domain tags.

Save the card to kb/papers/.md

Follow the paper card format exactly as specified in the paper-extractor skill.

Step 4: Integration (Sequential)

For each new paper card in kb/papers/ with novelty: pending:

Invoke kb-integrator sequentially (one at a time):

  1. Classify novelty
  2. Update topic files
  3. Update index, timeline, registry

Order: Process papers chronologically (oldest first) so SoTA classifications are stable.

Step 5: Health Check + Lint

Run the kb-lint mechanical checks via Python script, then semantic checks via LLM:

  1. Execute uv run scripts/kb_lint.py — produces kb/reports/lint-findings.json
  2. Read the findings JSON — check the summary for error/warning/info counts
  3. Run semantic checks S1 (stale SoTA) and S2 (missing cross-references) on flagged items
  4. Append the lint summary to the cycle report (see Health Check section in report template)
  5. If errors > 0, warn the user before proceeding to git commit

This replaces the previous manual health checks (registry integrity, index completeness, orphan detection) — the lint script covers all of them (M4, M5, M10).

Step 6: Write Cycle Report

Write kb/reports/YYYY-MM-DD-cycle.md:

# KB Update Cycle — YYYY-MM-DD

## Summary

- Cycle started: HH:MM
- Cycle completed: HH:MM
- Papers before: N
- Papers after: M
- New papers added: M-N
- Topics updated: K
- Candidates discovered: L
- PDFs downloaded: P

## Papers Added

| Paper | Novelty | Topics Updated |
|-------|---------|---------------|
|  | sota | drone-simulation |
|  | incremental | rl-for-flight |

## Discovery Results

- Queries executed: N
- Auto-accepted: M
- Pending review: K
- Discarded: L

## Health Check (kb-lint)

- Errors: N | Warnings: M | Info: K
- [ ] No errors (M1-M6): YES/NO
- [ ] No stale SoTA (S1): YES/NO
- [ ] Full lint report: `kb/reports/lint-YYYY-MM-DD.md`

## Errors

Step 7: Git Commit (if changes)

If any KB files changed:

git add kb/
git commit -m "kb: daily update YYYY-MM-DD — N papers added, M topics updated"

Do NOT commit PDFs in pdf/downloads/ (large binaries).

Error Recovery

Failed extraction

  • Log the error in the cycle report
  • Skip the paper and continue with the next
  • Do NOT update the registry for failed extractions

Failed integration

  • Log the error
  • The paper card exists but registry is not updated
  • Next cycle will retry (card has novelty: pending)

API failures during discovery

  • Log which APIs failed
  • Continue with available sources
  • Note in cycle report for manual retry

Running Modes

Full cycle (default)

All steps: discovery → extraction → integration → health check → report

Process-only (--skip-discovery)

Skip step 2. Only process new PDFs already in pdf/.

Discovery-only (--discovery-only)

Only run step 2 (discovery). No extraction or integration.

Health-check-only (--health-check)

Only run step 5 (health check) and report.

Automated Execution

For daily automated runs via launchd, use:

claude --print --dangerously-skip-permissions "Run the kb-maintenance skill with a full cycle"

The launchd plist at ~/Library/LaunchAgents/com.papers.kb-update.plist handles scheduling.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.