setup-environment

setup-environment is a skill for Claude Code, Codex from hyh0620/mcp-knowledge-service. It costs 16 tokens per session (221 once invoked), scanned A, original, MIT.

A local setup procedure for the Python-based MCP Knowledge Service. It creates an isolated Python environment, installs the project, and prepares local configuration files.

In plain words
What is it for?
Use it to create or reuse a Python 3.11 virtual environment, install development dependencies, copy example configuration, and check installed packages.
Why use it?
It reduces setup mistakes before you ingest documents or test real queries, while keeping credentials and machine-specific settings out of the project.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/hyh0620/mcp-knowledge-service/setup-environment
Any agent
npx skills add hyh0620/mcp-knowledge-service --skill setup-environment
Clone the repo
git clone --depth 1 https://github.com/hyh0620/mcp-knowledge-service

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup-environment

README.md
[![agentmods](https://agentmods.dev/badge/skills/hyh0620/mcp-knowledge-service/setup-environment.svg)](https://agentmods.dev/skills/hyh0620/mcp-knowledge-service/setup-environment)
Your own site
<a href="https://agentmods.dev/skills/hyh0620/mcp-knowledge-service/setup-environment"><img src="https://agentmods.dev/badge/skills/hyh0620/mcp-knowledge-service/setup-environment.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 221 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.00221
Opus 5 $0.00008 $0.00111
Sonnet 5 $0.00003 $0.00044
Haiku 4.5 $0.00002 $0.00022

Measured 5d ago against content hash 6a80a6049a37, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

setup-environment scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/skills/setup-environment/SKILL.md · 43 lines

What it actually says

Setup Environment

Pipeline

  1. Check Python:
    python3.11 --version
    
  2. Create or reuse .venv:
    python3.11 -m venv .venv
    source .venv/bin/activate
    
  3. Install:
    pip install -e '.[dev]'
    
  4. Create local config:
    test -f .env || cp .env.example .env
    test -f config/settings.yaml || cp config/settings.example.yaml config/settings.yaml
    
  5. Run:
    .venv/bin/python -m pip check
    

Output

  • Local .venv.
  • Ignored local .env.
  • Ignored local config/settings.yaml.

Failure Handling

  • Do not print API keys.
  • If provider credentials are missing, stop before ingestion or real query verification.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 43 lines · 16 tokens per session scan A 6a80a6049a37

Subscribe to this mod's changes

setup-environment is a skill published in the GitHub repository hyh0620/mcp-knowledge-service (0 stars, last pushed 1mo ago), licensed MIT. It adds 16 tokens to every session and 221 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.

Related

Other skills, from other repositories

cortex-broadcast

Propagate insights from a distilled Raw into related existing Notes/Projects pages through conversational per-page edits.

XBlueSky/cortexes · 81 tokens

cortex-distill

Distill raw session records into refined Notes and Projects. Use when the user says "提煉", "整理 raw", "distill", or "distill raw records".

XBlueSky/cortexes · 41 tokens

cortex-query

Search and retrieve content from the cortexes vault — the user's external memory. Use when the user explicitly asks to search or recall the vault ("查 cortex", "之前有記過", "cortex 裡有沒有", "check my notes", "what did I write about", /cortexes:query), or when the using-cortex skill routes a request here after one of its four…

XBlueSky/cortexes · 125 tokens

cortex-evolve

Save knowledge to the cortex vault. Use when the user says "存到 cortex", "記一下", "save to cortex", "記到筆記", "cortex evolve", or when the session-suggest hook recommends saving content. Handles Notes and Projects.

XBlueSky/cortexes · 58 tokens

vector-hybrid-search

Retrieve knowledge from a vector-store collection via the vector-mcp MCP server's vectorsearch tool — semantic (ANN) search, lexical BM25 search, or a hybrid of the two fused with Reciprocal Rank Fusion. Use when the agent must answer a question from an indexed corpus, pull top-k relevant chunks for RAG context, or…

Knuckles-Team/vector-mcp · 113 tokens

using-cortex

Use when the user asks to check the cortex vault, refers to earlier work ("last time", "that project", "we discussed", "之前那個", "上次的"), asks to resume something from a previous session, or names a topic the SessionStart hook listed for this vault. Routes the request to the cortex-query skill so the answer is grounded…

XBlueSky/cortexes · 113 tokens