obsidian-mcp-server: Skill for Claude Code

.agents/skills/python-patterns/SKILL.md

Python Patterns is a skill for Claude Code, Codex from Vasallo94/obsidian-mcp-server. It costs 29 tokens per session (1,833 once invoked), scanned A, original, MIT.

A set of Python coding conventions and design patterns for an MCP project. Python is a programming language, and MCP is a standard for connecting tools to AI assistants.

In plain words
What is it for?
Writing new Python code, reviewing existing code, choosing program structures, and organizing modules and classes.
Why use it?
It gives developers shared rules for structuring, typing, documenting, and logging Python code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is Vasallo94/obsidian-mcp-server's own configuration. It tells Claude Code and Codex how to work on obsidian-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything obsidian-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Vasallo94/obsidian-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Vasallo94/obsidian-mcp-server/main/.agents/skills/python-patterns/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Vasallo94/obsidian-mcp-server

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 Python Patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/vasallo94/obsidian-mcp-server/python-patterns/github.svg)](https://agentmods.dev/skills/vasallo94/obsidian-mcp-server/python-patterns)
Your own site
<a href="https://agentmods.dev/skills/vasallo94/obsidian-mcp-server/python-patterns"><img src="https://agentmods.dev/badge/skills/vasallo94/obsidian-mcp-server/python-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Python Patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/vasallo94/obsidian-mcp-server/python-patterns"><img src="https://agentmods.dev/badge/skills/vasallo94/obsidian-mcp-server/python-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,833 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 168
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
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.00029 $0.01833
Opus 5.5 $0.00012 $0.00733
Sonnet 5.5 $0.00006 $0.00367
Haiku 4.5 $0.00003 $0.00183

Measured 2mo ago against content hash 15a4aae9d67a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Python Patterns 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 2mo 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.

.agents/skills/python-patterns/SKILL.md · 332 lines

How it starts

The opening of the file, as written. The whole thing — 332 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Python Patterns Skill

Cuándo usar esta skill

  • Al escribir nuevo código Python.
  • Al revisar código existente.
  • Cuando necesites decidir patrones de diseño.
  • Al estructurar módulos y clases.

Patrones Core del Proyecto

1. Estructura de Módulos

"""
Descripción breve del módulo.

Descripción más detallada si es necesario.
"""

# 1. Imports de stdlib primero
from datetime import datetime
from pathlib import Path
from typing import Optional, Tuple, Dict, List

# 2. Imports de terceros
from fastmcp import FastMCP
from pydantic import BaseModel

# 3. Imports locales (relativos)
from ..config import get_vault_path
from ..utils import get_logger

# 4. Logger al inicio
logger = get_logger(__name__)


# 5. Funciones helper (privadas) primero
def _helper_function(data: str) -> str:
    """Helper interno del módulo."""
    return data.strip()


# 6. Funciones/clases públicas después
def public_function(param: str) -> str:
    """
    Función pública del módulo.

    Args:
        param: Descripción del parámetro.

    Returns:
        Descripción del retorno.
    """
    return _helper_function(param)

2. Type Hints (Obligatorio)

# ✅ CORRECTO: Todo tipado
def process_note(
    path: Path,
    options: Optional[Dict[str, Any]] = None,
) -> Tuple[bool, str]:
    ...

# ❌ INCORRECTO: Sin tipos
def process_note(path, options=None):
    ...

Tipos comunes en el proyecto:

from pathlib import Path
from typing import Optional, Tuple, Dict, List, Any, Literal

# Para retornos con error
def operation() -> Tuple[bool, str]:
    """Retorna (success, message)."""
    if error:
        return False, "Error message"
    return True, "Success"

# Para configuración opcional
TransportType = Literal["stdio", "http", "sse"]

3. Patrón de Resultado (Success/Error)

# Patrón estándar del proyecto para operaciones
def operation(param: str) -> str:
    """
    Realiza operación.

    Returns:
        Mensaje con emoji indicando resultado.
    """
    try:
        # Validación temprana
        if not param:
            return "❌ Error: Parámetro requerido"

        vault_path = get_vault_path()
        if not vault_path:
            return "❌ Error: La ruta del vault no está configurada."

        # Lógica principal
        result = do_something(param)

        # Éxito
        return f"✅ Operación completada: {result}"

    except SpecificError as e:
        return f"❌ Error específico: {e}"
    except Exception as e:
        return f"❌ Error inesperado: {e}"

Read the full file on GitHub · 332 lines

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. 2mo ago First seen · 332 lines · 29 tokens per session scan A 15a4aae9d67a

Subscribe to this mod's changes

Python Patterns is a skill published in the GitHub repository Vasallo94/obsidian-mcp-server (11 stars, last pushed 6d ago), licensed MIT. It adds 29 tokens to every session and 1,833 once invoked, about $0.0001 per session on Opus 5.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-08-31.

Related

Other skills, from other repositories

quantum-vqe

A runnable guide to the variational quantum eigensolver (VQE), a quantum algorithm that estimates the lowest energy of a mathematical system by adjusting a parameterized circuit. It uses Pauli Hamiltonians, a specified circuit form, and SciPy optimization.

xi-zhao/OpenQuantum · 53 tokens

quantum-vqls

A runnable guide to the variational quantum linear solver (VQLS), a quantum method that estimates a solution to a system of linear equations by optimizing a parameterized circuit. It uses Qiskit and reports the numerical residual and why optimization stopped.

xi-zhao/OpenQuantum · 56 tokens

style-guide

Dedalus style guide quick reference. Key rules for writing code that lasts. Use when writing or reviewing Python code.

Kevin-Liu-01/Agent-Machines · 26 tokens

column-aligned-fields

Enforce column-aligned inline comments on dataclass and enum fields. Use when writing or reviewing Python dataclasses, enums, TypedDicts, or any structured type with inline field comments.

Kevin-Liu-01/Agent-Machines · 43 tokens

houdini-scripting

Bootstrap skill — controlled Python execution inside Houdini's hython interpreter. Use when no typed Houdini skill covers the task or you need session diagnostics. Not for routine scene edits — prefer houdini-scene or future domain skills.

dcc-mcp/dcc-mcp-houdini · 51 tokens

model-context

MCP (Model Context Protocol) - Build AI-native servers with tools, resources, and prompts. TypeScript/Python SDKs for Claude Desktop integration.

bobmatnyc/claude-mpm-skills · 34 tokens