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.
curl -O https://raw.githubusercontent.com/Vasallo94/obsidian-mcp-server/main/.agents/skills/python-patterns/SKILL.mdgit clone --depth 1 https://github.com/Vasallo94/obsidian-mcp-serverWrote 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.
[](https://agentmods.dev/skills/vasallo94/obsidian-mcp-server/python-patterns)<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.
<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>- NVIDIA SkillSpector warn
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.
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.
| Model | Per session | Once 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 |
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.
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}"
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.
- 2mo ago First seen · 332 lines · 29 tokens per session scan A 15a4aae9d67a
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.
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.
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.
style-guide
Dedalus style guide quick reference. Key rules for writing code that lasts. Use when writing or reviewing Python code.
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.
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.
model-context
MCP (Model Context Protocol) - Build AI-native servers with tools, resources, and prompts. TypeScript/Python SDKs for Claude Desktop integration.