Data & Databaselow risk

vault-fetch

Fetch a URL, extract its text content, and persist it as a semantic memory tagged with the source URL for future retrieval. Use when the user shares a link to documentation, a GitHub issue, a blog post, or any reference material that should be available across sessions without re-fetching.

pantheon-org/tekhne·skills/agentic-harness/vault-fetch/SKILL.md
85/ 100质量分

导入这个 Skill

选择你的 coding agent,复制项目级或个人级安装命令。

固定到平台收录的 commit
导入当前项目.agents/skills/vault-fetch
npx skills add https://github.com/pantheon-org/tekhne/tree/4a79b500f771a61b6b4bf63751e038649d6535bc/skills/agentic-harness/vault-fetch -a codex -y
导入个人环境~/.agents/skills/vault-fetch
npx skills add https://github.com/pantheon-org/tekhne/tree/4a79b500f771a61b6b4bf63751e038649d6535bc/skills/agentic-harness/vault-fetch -a codex -g -y
手动放置目录.agents/skills/vault-fetchOfficial docs ↗
导入当前项目.claude/skills/vault-fetch
npx skills add https://github.com/pantheon-org/tekhne/tree/4a79b500f771a61b6b4bf63751e038649d6535bc/skills/agentic-harness/vault-fetch -a claude-code -y
导入个人环境~/.claude/skills/vault-fetch
npx skills add https://github.com/pantheon-org/tekhne/tree/4a79b500f771a61b6b4bf63751e038649d6535bc/skills/agentic-harness/vault-fetch -a claude-code -g -y
手动放置目录.claude/skills/vault-fetchOfficial docs ↗
导入当前项目.agents/skills/vault-fetch
npx skills add https://github.com/pantheon-org/tekhne/tree/4a79b500f771a61b6b4bf63751e038649d6535bc/skills/agentic-harness/vault-fetch -a github-copilot -y
导入个人环境~/.copilot/skills/vault-fetch
npx skills add https://github.com/pantheon-org/tekhne/tree/4a79b500f771a61b6b4bf63751e038649d6535bc/skills/agentic-harness/vault-fetch -a github-copilot -g -y
手动放置目录.agents/skills/vault-fetchOfficial docs ↗
导入当前项目.agents/skills/vault-fetch
npx skills add https://github.com/pantheon-org/tekhne/tree/4a79b500f771a61b6b4bf63751e038649d6535bc/skills/agentic-harness/vault-fetch -a cursor -y
导入个人环境~/.cursor/skills/vault-fetch
npx skills add https://github.com/pantheon-org/tekhne/tree/4a79b500f771a61b6b4bf63751e038649d6535bc/skills/agentic-harness/vault-fetch -a cursor -g -y
手动放置目录.agents/skills/vault-fetchOfficial docs ↗
导入当前项目.agents/skills/vault-fetch
npx skills add https://github.com/pantheon-org/tekhne/tree/4a79b500f771a61b6b4bf63751e038649d6535bc/skills/agentic-harness/vault-fetch -a gemini-cli -y
导入个人环境~/.gemini/skills/vault-fetch
npx skills add https://github.com/pantheon-org/tekhne/tree/4a79b500f771a61b6b4bf63751e038649d6535bc/skills/agentic-harness/vault-fetch -a gemini-cli -g -y
Native Gemini CLIgemini skills install https://github.com/pantheon-org/tekhne.git --scope workspace --path skills/agentic-harness/vault-fetch
手动放置目录.agents/skills/vault-fetchOfficial docs ↗
⚠ 安装命令使用开源 skills CLI。执行前请检查来源、脚本和权限。
# vault-fetch

Fetch a URL, extract its text content, and persist it as a semantic memory.

## Mindset

Any URL the user pastes that represents reference material — documentation, an
issue, an RFC, a blog post — should be fetched proactively without waiting to be
asked. If the URL will be useful in more than the current message, persist it.

## When to use

- User shares a documentation link to consult during the project
- A GitHub issue or PR contains important context
- External reference material needs to be available across sessions

## How to use

```bash
vault-cli fetch "<url>" [--project <id>]
```

The content is automatically:
- Captured with `tier: semantic` and `forceCapture: true`
- Truncated to 4000 characters
- Tagged with the source URL

No `--tier` flag is needed or accepted — tier is set automatically.

## Error handling

If the fetch fails (non-2xx response, timeout, or auth-gated page), fall back to
capturing the URL and title manually:

```bash
vault-cli capture --text "Reference: <title> — <url>" --tier semantic --tags reference,<topic>
```

## Examples

```bash
vault-cli fetch "https://bun.sh/docs/api/sqlite"
vault-cli fetch "https://github.com/org/repo/issues/42" --project my-app
vault-cli fetch "https://datatracker.ietf.org/doc/html/rfc9457" --project api
```

## Never

- **Never add `--tier`** — tier is set automatically to `semantic`; passing it will cause an error
- **Never fetch auth-gated URLs** (e.g. private GitHub repos, internal wikis behind SSO) — they return 401/403 and capture an error page instead of useful content; use the manual capture fallback instead
- **Never fetch `file://` or `localhost` URLs** — these are local paths unavailable to the fetch command
- **Never wait to be asked** when the user pastes a reference URL — fetch it proactively