iurykrieger/claude-bedrock/learn
Claude Code and agent skill by iurykrieger/claude-bedrock
- community
Checking that the SKILL.md file is still in the repository.
Ingests an external data source into the Second Brain. Fetches content from Confluence, Google Docs, GitHub repositories, remote URLs, or any local file format supported by docling (DOCX, PPTX, XLSX, PDF, HTML, EPUB, images, Markdown, CSV, and more), converts non-markdown formats to markdown via docling, runs the /graphify extraction pipeline, and delegates entity persistence (including the graphify-output merge) to /bedrock:preserve. Use when: "bedrock learn", "bedrock-learn", "learn", "ingest source", "import document", "/bedrock:learn", or when the user provides a Confluence, Google Docs, or GitHub URL, a remote file URL, or a local file path to incorporate into the vault.
Install
npx vskill@latest install iurykrieger/claude-bedrock/learnSKILL.md
/bedrock:learn — External Source Ingestion into the Second Brain
Plugin Paths
Entity definitions and templates are in the plugin directory, not at the vault root. Use the "Base directory for this skill" provided at invocation to resolve paths:
- Entity definitions:
<base_dir>/../../entities/ - Templates:
<base_dir>/../../templates/{type}/_template.md - Plugin CLAUDE.md:
<base_dir>/../../CLAUDE.md(already injected automatically into context)
Where <base_dir> is the path provided in "Base directory for this skill".
Vault Resolution
Resolve which vault to learn. This skill can be invoked from any directory.
Step 1 — Parse `--vault` flag: Check if the input arguments include --vault <name>. If found, extract the vault name and remove it from the arguments (the remaining text is the source URL/path).
Step 2 — Resolve vault path:
- If `--vault <name>` was provided:
Read the vault registry at <base_dir>/../../vaults.json. Find the entry matching the name. If not found: error — "Vault <name> is not registered. Run /bedrock:vaults to see available vaults." If found: set VAULT_PATH to the entry's path value. Store the resolved vault name as VAULT_NAME.
- If no `--vault` flag — CWD detection:
Read <base_dir>/../../vaults.json. Check if the current working directory is inside any registered vault path (CWD starts with a registered vault's absolute path). If multiple match, use the longest path (most specific). If found: set VAULT_PATH to the matching vault's path. Store its name as VAULT_NAME.
- If CWD detection fails — default vault:
From the registry, find the vault with "default": true. If found: set VAULT_PATH to the default vault's path. Store its name as VAULT_NAME.
- If no resolution:
Error — "No vault resolved. Available vaults:" followed by the registry listing. "Use --vault <name> to specify, or run /bedrock:setup to register a vault."
Step 3 — Validate vault path:
If missing: error — "Vault path <VAULT_PATH> does not exist on disk. Run /bedrock:setup to re-register."
Step 4 — Read vault config:
Extract language and other relevant fields for use in later phases.
From this point forward, ALL vault file operations use `<VAULT_PATH>` as the root.
- Graphify output:
<VAULT_PATH>/graphify-out/ - When delegating to
/bedrock:preserve, pass--vault <VAULT_NAME>
Overview
This skill receives an external source (URL or local path), fetches its content to a temporary directory, converts non-markdown files to markdown via docling, runs the /graphify extraction pipeline on the tmp content, and delegates entity persistence (plus graphify-output merge) to /bedrock:preserve.
You are a fetcher and orchestrator agent. Your job is to:
- Ensure docling is installed (auto-install if missing)
- Classify the input and fetch content to
/tmp - Convert fetched files to markdown via docling (when applicable)
- Invoke
/graphifyto extract a knowledge graph into a per-run temp directory - Delegate graph merge and entity writes to
/bedrock:preserve - Clean up temporary files
You do NOT classify entities, create vault files, write to the vault directly, or merge graph state. All extraction is done by /graphify. All writes (including the graphify-output merge into the vault's cumulative graphify-out/) are done by /bedrock:preserve.
Follow the phases below in order, without skipping steps.
Phase 0 — Ensure docling is installed
Before any fetch or conversion, verify that the docling CLI is available. If missing, install it silently using the same fallback chain /bedrock:setup uses for graphify, emitting a single status line before proceeding.
Failure mode: If install fails (no pipx/pip, network outage, permission denied), abort the skill with the error above. Do NOT fetch or mutate anything. Direct the user to /bedrock:setup.
No user prompt: this step is silent — one status line on success, one error line on failure.
Phase 1 — Fetch
1.1 Classify the input
The user provides an argument. Classify it in the following priority order. URL-type routing is unchanged; local files no longer have an extension allowlist — any existing file is accepted, and Phase 1.5 decides whether to run docling on it.
| Input | Detected type | Fetch method | |
|---|---|---|---|
URL containing confluence or atlassian.net | confluence | Read skills/confluence-to-markdown/SKILL.md, follow instructions, save output to tmp | |
URL containing docs.google.com | gdoc | Read skills/gdoc-to-markdown/SKILL.md, follow instructions, save output to tmp | |
URL containing github.com | github-repo | git clone --depth 1 to tmp + GitHub MCP enrichment (docling never runs on GitHub repos) | |
URL starting with http:// or https:// (any other) | remote-binary | Download raw bytes to tmp via curl/WebFetch; Phase 1.5 decides conversion | |
| Local file path (any existing file) | local-file | Copy to tmp; Phase 1.5 decides conversion | |
| Local directory path | local-dir | Copy directory to tmp | |
| No match above | manual | Ask the user: "Could not identify the source type. Paste the content or provide a valid URL/path." |
If no argument was provided: ask the user "What source do you want to ingest? Provide a URL (Confluence, Google Docs, GitHub, or any HTTP(S) URL) or a local file path (any file type — docling will convert it to markdown if supported)."
1.2 Create temporary directory
All content is fetched to a temporary directory. This is the single input path for /graphify.
Store the path for use in subsequent phases.
1.3 Fetch content
Execute the fetch strategy for the detected type. All content lands in $LEARN_TMP/.
1.3.1 GitHub repository
For GitHub URLs (e.g.: https://github.com/acme-corp/billing-api):
- Extract
owner/repoandrepo-namefrom the URL - Clone the repository (shallow):
``bash git clone --depth 1 <url> "$LEARN_TMP/<repo-name>" ``
- GitHub MCP enrichment — call directly in main context (NOT via subagent — MCP permissions are not inherited):
mcp__plugin_github_github__get_file_contents→ read the repo's README.mdmcp__plugin_github_github__list_commits→ last 10 commitsmcp__plugin_github_github__list_pull_requests→ last 5 PRs (state=all, sort=updated)
- Compile MCP results into a single markdown file and save as
$LEARN_TMP/<repo-name>/_github_metadata.md
Best-effort: If any MCP call fails, continue with what was obtained. Do NOT block ingestion.
1.3.2 Confluence
For Confluence URLs:
- Read the internal skill at
<base_dir>/../confluence-to-markdown/SKILL.md - Follow its instructions to parse the URL, choose layer (MCP → API → browser), and extract content
- Save the returned Markdown content to
$LEARN_TMP/<slug>.md
<slug>is derived from the page title or URL path (kebab-case, lowercase)
If all three layers (MCP, API, browser) are unavailable: warn the user with the guidance message from the fetcher module and abort this source type.
1.3.3 Google Docs / Sheets
For Google Docs or Sheets URLs:
- Read the internal skill at
<base_dir>/../gdoc-to-markdown/SKILL.md - Follow its instructions to parse the URL, detect document type (Doc vs Sheet), choose layer (MCP → API/public export → browser), and extract content
- The fetcher saves output to
/tmp/gdoc_{docId}.mdor/tmp/gsheet_{docId}.md - Copy the output file to
$LEARN_TMP/<slug>.md
<slug>is derived from the document title or URL path (kebab-case, lowercase)
If all three layers (MCP, API/public export, browser) are unavailable: warn the user with the guidance message from the fetcher module and abort this source type.
1.3.4 Remote URL (generic)
For any other HTTP/HTTPS URL, download the raw bytes so docling can operate on binary formats (PDF, DOCX, PPTX, XLSX, images, etc.) that WebFetch cannot return faithfully as text:
- Try
curlfirst for true binary fidelity:
``bash curl -fsSL -o "$LEARN_TMP/<filename-derived-from-url>" "<url>" ``
<filename-derived-from-url>preserves the URL's basename (including extension) when
available; fall back to <slug>.bin if no extension is present.
- If
curlis unavailable or the URL returns an HTML page (by Content-Type), fall back to
WebFetch and save the response text as $LEARN_TMP/<slug>.md.
If both attempts fail: warn "Could not fetch URL. Check if the URL is accessible." and abort.
Phase 1.5 decides whether the downloaded file goes through docling, based on the file extension.
1.3.5 Local file (any format)
For local files:
- Verify the file exists using Read (or
test -f). - Copy to tmp preserving the filename:
``bash cp "<local-path>" "$LEARN_TMP/" ``
No extension-based filtering — any existing file is accepted. Phase 1.5 decides conversion.
1.3.6 Local directory
For local directories:
- Verify the directory exists
- Copy to tmp (excluding heavy directories):
``bash rsync -a --exclude='.git' --exclude='node_modules' --exclude='bin' --exclude='obj' \ --exclude='.vs' --exclude='TestResults' --exclude='packages' \ "<local-dir>/" "$LEARN_TMP/$(basename <local-dir>)/" ``
1.4 Phase 1 result
At the end of this phase, you should have:
- `$LEARN_TMP`: directory with all fetched content (local path for graphify)
- `source_url`: original URL or file path provided by the user
- `source_type`:
confluence,gdoc,github-repo,remote-binary,local-file,local-dir, ormanual
Report: "Phase 1 complete: Content fetched to $LEARN_TMP. Source type: <source_type>."
Phase 1.5 — Docling Conversion
For every fetched file in $LEARN_TMP that is not a GitHub repo and is not already markdown output from Confluence/GDoc fetchers, check whether docling supports the file type and, if so, convert it to markdown in place. GitHub repos (source_type == "github-repo") skip this phase entirely and flow straight to graphify.
1.5.1 Docling-supported extensions
Docling supports conversion for the following file types (as of the version installed by Phase 0 / /bedrock:setup). Compare by lowercase file extension:
.mdis listed here because docling passes markdown through largely unchanged. In practice,
running docling on .md is a no-op we skip to save time — treat .md as already-markdown.
.txtand.csvare NOT in docling's supported list (they are plain-text already); skip
docling and pass through raw.
1.5.2 Routing and failure rules
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/learn/SKILL.md
Popularity
- Repository stars
- 54
- Repository forks
- 8
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/iurykrieger/claude-bedrock/learn)