agentleFS
unisoneunisone/openclaw-config/skills/knowledge-base/SKILL.md

knowledge-base

Skill14 starsChanged 9 months agoMITView on GitHub

Capture, organize, and retrieve operational knowledge + saved web content in a local `knowledge/` directory indexed by QMD. Use for “save this link”, “add to KB”, “remember this”, or “search KB”.

34 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use playwright, code-reviewer and 4 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • OpenAISkill

    playwright

    Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging) via `playwright-cli` or the bundled wrapper script.

    Also in 3 projects that use this

  • GoogleSkill

    code-reviewer

    Also in 4 projects that use this

  • engtySkill

    codex

    Use when the user asks to run Codex CLI (codex exec, codex resume) or references OpenAI Codex for code analysis, refactoring, or automated editing

    Also in 3 projects that use this

  • ElasticSkill

    create-skill

    Interactively create a new Claude Code skill and add it to the elastic-docs-skills catalog. Use when the user wants to generate a new skill, scaffold a slash command, or build automation for docs tasks.

    Also in 3 projects that use this

  • CloudflareSkill

    security-audit

    Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    verify

    End-to-end app testing pipeline for browser-based web apps on cloud browsers via Azure Playwright Workspaces: verify the live app, author tests for working flows, heal failing tests, then re-run with video and produce one consolidated report. Three phases (app verification, test authoring, test healing) plus a scoped final sanity run; each phase emits a sub-report. Use when asked to "verify my app", "make sure my app works and has good test coverage", "do a full QA pass", "add tests where I'm missing coverage", "fix failing tests and add new ones", "smoke test before deploy", "QA my deployment", or any combined verify-and-test ask. Requires Azure CLI (`az login`) and a Playwright Workspace resource ID — bootstraps configs on first invocation. Browser-based web apps with Playwright only — not for unit/API tests, native mobile/desktop, load/perf, or full accessibility audits.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 26 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep secrets out of the KB.

    line 76

“Common” is measured: kept by at least 6 in 10 of the 26 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Knowledge Base

Two overlapping functions:

  1. Operational knowledge — tool quirks, API gotchas, runbooks, decision rationale
  2. URL/content archive — save articles, YouTube transcripts, PDFs, threads

Everything lives in knowledge/ and is indexed by QMD for fast keyword + semantic search.

Routing

  • ✅ Use when the user says: “save this”, “add to KB”, “remember this”, “document this”, “search KB”.
  • ❌ Don’t use for simple web-page extraction if the user just wants the answer now → use web_fetch directly.

Quick start

1) Create the directory scaffold (recommended)

Copy templates into your OpenClaw workspace:

rsync -av templates/knowledge/ ~/.openclaw/workspace/knowledge/

2) Ingest a URL

From your workspace root:

python3 skills/knowledge-base/scripts/ingest.py "https://example.com/article"
python3 skills/knowledge-base/scripts/ingest.py "https://youtube.com/watch?v=..."
python3 skills/knowledge-base/scripts/ingest.py "https://example.com/file.pdf"

Optional metadata (skip LLM calls):

python3 skills/knowledge-base/scripts/ingest.py "<URL>" \
  --title "Readable Title" \
  --tags "rag,openclaw,workflows" \
  --summary "Why this is worth saving"

3) Search

# keyword
qmd search "meta ads" -c knowledge

# semantic
qmd vsearch "how do we authenticate jira" -c knowledge

# best quality (hybrid + rerank, if enabled)
qmd query "slack block streaming" -c knowledge

Notes / Dependencies

  • Works with no extra installs for basic HTML pages (urllib fallback).
  • Better extraction if you install trafilatura.
  • YouTube transcripts: tries youtube-transcript-api, falls back to yt-dlp if available.
  • PDF text extraction: uses pdftotext (Poppler).

Keep secrets out of the KB. For credentials, store them in a password manager / keychain and write where to find them, not the values.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.