# Adding to your knowledgebase

> How to fetch webpages and convert them to markdown to add to your knowledge base

- Skill: `majiayu000/adding-to-your-knowledgebase` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/adding-to-your-knowledgebase`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/adding-to-your-knowledgebase/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/adding-to-your-knowledgebase

---


# Adding to your knowledge base

## Instructions
1. Convert any webpage to markdown and add it to your knowledge base using the helper script:
```bash
sh scripts/helper.sh URL FILENAME.md
```

The script will:
- Convert the URL to markdown and save to `~/.claude/resources/FILENAME.md`
- Prompt you for a category (e.g., Music, Programming, Documentation)
- Prompt you for a brief description
- Automatically update `~/.claude/resources/INDEX.md` with the new entry

## Example
```bash
sh scripts/helper.sh https://example.com/docs my_doc.md
# Category: Documentation
# Description: API reference for example service
```

The INDEX.md follows llms.txt-style formatting with markdown links and descriptions.

