Skip to content
Agentmart
Submit a tool

add-knowledge

Add knowledge to OpenKnowledge base.

Skill by ansidev

IndexedMIT
Write a review

Chalk Labs

Need help deploying add-knowledge?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/ansidev-add-knowledge

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Add knowledge to OpenKnowledge base. Use this skill to add new knowledge or update existing knowledge in the OpenKnowledge base.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Nov 2, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/add-knowledge

What's inside

Skill name
add-knowledge
Description
Add knowledge to OpenKnowledge base. Use this skill to add new knowledge or update existing knowledge in the OpenKnowledge base.
License
MIT
Instructions
25 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • body: contains an absolute path from the author's machine

Files (1)

  • SKILL.md

SKILL.md (first lines)

# add-knowledge

## When to use

When the user asks to save, remember, document, or add knowledge to the second brain.

## Rules

1. You MUST use the MCP called `kb-okf`.
2. MUST pass `"cwd": "/Users/ansidev/projects/kb"` explicitly on EVERY `kb-okf` tool call (`ok_skills`, `ok_exec`, `search`, write/edit/move, etc.). No exceptions, even if the call seems not to need it.
   - NEVER rely on the current working directory or the MCP client root; they may point at another project (e.g. `/Users/ansidev/projects/personal/kanpal/knowledge`).
   - `ok_exec` commands run relative to `cwd`, and `cwd` must be inside an OpenKnowledge project (contain `.ok/config.yml`).
3. MUST preserve the existing OpenKnowledge structure and conventions.
4. DO NOT create knowledge inside the current coding project unless explicitly requested.
5. Add links to related knowledge when useful.
6. After writing, verify the result.
7. Document paths passed to `kb-okf` write/edit/move tools are relative to the KB content dir (`knowledge/`, see `area_ok_config` key `content`). NEVER prefix them with `knowledge/` (wrong: `knowledge/projects/x`, right: `projects/x`). Search results and `exec` output show on-disk paths that include `knowledge/`; strip that prefix before writing. Do not copy the path of an existing doc under `knowledge/knowledge/...` — that is a misplaced doc, not a convention.
8. Resolve the KB project slug from the current coding repository/name (`agent-skills`), not from an issue prefix/tracker project. If an issue key maps to a tracker project different from the repository, still use the repository slug for KB paths. First run `exec ls knowledge/projects` and choose the existing slug matching the repository basename. If no slug matches, ask the user for the KB project slug before writing.
9. Before creating a doc, `exec ls` the target folder (e.g. `ls knowledge/projects/<project>`) to confirm sibling naming and location, and check the written path has no doubled `knowledge/`.

## Workflow

1. Search existing knowledge before creating a new document. Use tool `kb-okf__search` with following parameters: `cwd` (always `/Users/ansidev/projects/kb`), `limit` (set to 1), `query`.

   ```json
   {"cwd": "/Users/ansidev/projects/kb", "limit": 1, "query": "<topic>"}
   ```
2. If `resultCount` is 0, create a new document.
3. Otherwise, update the existing document.
   1. Get the document path from the search result: `results[0].path`.

## Examples (every call includes `cwd`)

```json
// ok_skills
{"cwd": "/Users/ansidev/projects/kb"}

// ok_exec
{"cwd": "/Users/ansidev/projects/kb", "command": "ls knowledge/projects/<project>"}
```

## Troubleshooting

Both errors below mean `cwd` was omitted or wrong. Retry the same call with `"cwd": "/Users/ansidev/projects/kb"`.

- `Error: cwd is required for tool calls against the global MCP server...` (e.g. `ok_skills`): `cwd` was not passed. Add it.
- `exec failed: No OpenKnowledge project found at or above <path>...` (e.g. `ok_exec`): `cwd` was missing and a different working directory was inherited, or points outside an OK project. Set `cwd` to `/Users/ansidev/projects/kb`, which contains `.ok/config.yml`.

From ansidev/skills, MIT.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Oct 10, 2026 (25 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from ansidev

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get add-knowledge running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying add-knowledge?

CallGet help
Cite this page

add-knowledge skill. Agent Mart. https://agentmart.dev/skills/ansidev-add-knowledge (last updated 2026-10-24)