Cross-Language Coding Standards
zereight/gitlab-mcp
Shared reference for naming, function size, complexity and error handling rules that reviewer agents apply across TypeScript, Python, Go, Rust, Java, C# and Swift.
Shared Python best practices for LlamaFarm. An agent skill from llama-farm/llamafarm.
$ npx skills add llama-farm/llamafarm --skill python-skills -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install llama-farm/llamafarm python-skills --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/llama-farm/llamafarm.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/python-skills .claude/skills/python-skills && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "python-skills" agent skill from https://github.com/llama-farm/llamafarm/tree/main/.claude/skills/python-skills into .claude/skills/python-skills/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "python-skills", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/llama-farm/llamafarm/tree/main/.claude/skills/python-skillsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add llama-farm/llamafarm --skill python-skills -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install llama-farm/llamafarm python-skills --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/llama-farm/llamafarm.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/python-skills .agents/skills/python-skills && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "python-skills" agent skill from https://github.com/llama-farm/llamafarm/tree/main/.claude/skills/python-skills into .agents/skills/python-skills/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "python-skills", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add llama-farm/llamafarm --skill python-skills -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install llama-farm/llamafarm python-skills --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/llama-farm/llamafarm.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/python-skills .cursor/skills/python-skills && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "python-skills" agent skill from https://github.com/llama-farm/llamafarm/tree/main/.claude/skills/python-skills into .cursor/skills/python-skills/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "python-skills", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/llama-farm/llamafarm.git --path .claude/skills/python-skills--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add llama-farm/llamafarm --skill python-skills -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install llama-farm/llamafarm python-skills --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/llama-farm/llamafarm.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/python-skills .gemini/skills/python-skills && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "python-skills" agent skill from https://github.com/llama-farm/llamafarm/tree/main/.claude/skills/python-skills into .gemini/skills/python-skills/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "python-skills", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install llama-farm/llamafarm python-skillsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add llama-farm/llamafarm --skill python-skills -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/llama-farm/llamafarm.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/python-skills .github/skills/python-skills && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "python-skills" agent skill from https://github.com/llama-farm/llamafarm/tree/main/.claude/skills/python-skills into .github/skills/python-skills/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "python-skills", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add llama-farm/llamafarm --skill python-skills -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install llama-farm/llamafarm python-skills --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/llama-farm/llamafarm.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/python-skills .opencode/skills/python-skills && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "python-skills" agent skill from https://github.com/llama-farm/llamafarm/tree/main/.claude/skills/python-skills into .opencode/skills/python-skills/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "python-skills", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
python-skillsShared Python best practices for LlamaFarm. An agent skill from llama-farm/llamafarm.
Python Skills is an agent skill from llama-farm/llamafarm. Shared Python best practices for LlamaFarm. Covers patterns, async, typing, testing, error handling, and security.
Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files (for example `async.md`, `error-handling.md` and `patterns.md`).
It sits in Development, covering Error handling. It works with Python and Pydantic. The repository describes itself as: Deploy any AI model, agent, database, RAG, and pipeline locally or remotely in minutes. The licence is Apache-2.0.
6 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 6244d46. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
ReadGrepGlobFrom allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python and toml).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Python Skills loads about 1.2k tokens when it runs. Until then it costs about 32 tokens; SKILL.md has 279 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
class Settings(BaseSettings, env_file=".env"):Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from llama-farm/llamafarm at commit 6244d46, republished under its Apache-2.0 licence (© llama-farm). 279 words, ~1,209 tokens.
.claude/skills/python-skills/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.Shared Python best practices and code review checklists for all Python components in the LlamaFarm monorepo.
| Component | Path | Python | Key Dependencies |
|---|---|---|---|
| Server | server/ | 3.12+ | FastAPI, Celery, Pydantic, structlog |
| RAG | rag/ | 3.11+ | LlamaIndex, ChromaDB, Celery |
| Universal Runtime | runtimes/universal/ | 3.11+ | PyTorch, transformers, FastAPI |
| Config | config/ | 3.11+ | Pydantic, JSONSchema |
| Common | common/ | 3.10+ | HuggingFace Hub |
| Topic | File | Key Points |
|---|---|---|
| Patterns | patterns.md | Dataclasses, Pydantic, comprehensions, imports |
| Async | async.md | async/await, asyncio, concurrent execution |
| Typing | typing.md | Type hints, generics, protocols, Pydantic |
| Testing | testing.md | Pytest fixtures, mocking, async tests |
| Errors | error-handling.md | Custom exceptions, logging, context managers |
| Security | security.md | Path traversal, injection, secrets, deserialization |
LlamaFarm uses ruff with shared configuration in ruff.toml:
line-length = 88
target-version = "py311"
select = ["E", "F", "I", "B", "UP", "SIM"]Key rules:
from pydantic_settings import BaseSettings
class Settings(BaseSettings, env_file=".env"):
LOG_LEVEL: str = "INFO"
HOST: str = "0.0.0.0"
PORT: int = 14345
settings = Settings() # Singleton at module levelfrom core.logging import FastAPIStructLogger # Server
from core.logging import RAGStructLogger # RAG
from core.logging import UniversalRuntimeLogger # Runtime
logger = FastAPIStructLogger(__name__)
logger.info("Operation completed", extra={"count": 10, "duration_ms": 150})from abc import ABC, abstractmethod
class Component(ABC):
def __init__(self, name: str, config: dict[str, Any] | None = None):
self.name = name or self.__class__.__name__
self.config = config or {}
@abstractmethod
def process(self, documents: list[Document]) -> ProcessingResult:
passfrom dataclasses import dataclass, field
@dataclass
class Document:
content: str
metadata: dict[str, Any] = field(default_factory=dict)
id: str = field(default_factory=lambda: str(uuid.uuid4()))from pydantic import BaseModel, Field, ConfigDict
class EmbeddingRequest(BaseModel):
model: str
input: str | list[str]
encoding_format: Literal["float", "base64"] | None = "float"
model_config = ConfigDict(str_strip_whitespace=True)Each Python component follows this structure:
component/
├── pyproject.toml # UV-managed dependencies
├── core/ # Core functionality
│ ├── __init__.py
│ ├── settings.py # Pydantic Settings
│ └── logging.py # structlog setup
├── services/ # Business logic (server)
├── models/ # ML models (runtime)
├── tasks/ # Celery tasks (rag)
├── utils/ # Utility functions
└── tests/
├── conftest.py # Shared fixtures
└── test_*.pyWhen reviewing Python code in LlamaFarm:
Patterns (Medium priority)
Async (High priority)
Typing (Medium priority)
Testing (Medium priority)
Errors (High priority)
Security (Critical priority)
See individual topic files for detailed checklists with grep patterns.
© llama-farm, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 6 other files in .claude/skills/python-skills of llama-farm/llamafarm.
Open the folder on GitHubat commit 6244d46
Python Skills next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Python Skills this skillllama-farm/llamafarm | 837 | — | ~1.2k | Automated safety check: Notes | Apache-2.0 | |
| Cross-Language Coding Standardszereight/gitlab-mcp | 2k | 1 repos | ~1.4k | Automated safety check: Pass | MIT | |
| Python Devdatabricks-solutions/ai-dev-kit | 1.9k | — | ~1.6k | Automated safety check: Pass | Custom licence | |
| A2ui Generate Pydantic Modelsa2ui-project/a2ui | 17k | — | ~2.3k | Automated safety check: Pass | Apache-2.0 | |
| Releasezmievsa/cadwyn | 309 | — | ~522 | Automated safety check: Pass | MIT | |
| Python Patternskurealnum/dotfiles | 290 | 8 repos | ~4.1k | Automated safety check: Pass | None |
zereight/gitlab-mcp
Shared reference for naming, function size, complexity and error handling rules that reviewer agents apply across TypeScript, Python, Go, Rust, Java, C# and Swift.
databricks-solutions/ai-dev-kit
Python development guidance with code quality standards, error handling, testing practices, and environment management.
a2ui-project/a2ui
Automated generator for strongly typed Pydantic v2 data models and basic catalogs across any A2UI protocol version (v0.8, v0.9, v0.9.1, v1.0, etc.).
zmievsa/cadwyn
Prepare and publish Cadwyn releases. An agent skill from zmievsa/cadwyn.
kurealnum/dotfiles
Pythonic idioms, PEP 8 standards, type hints, and best practices for building robust, efficient, and maintainable Python applications.
ag2ai/build-with-ag2
Add a custom Python tool to an AG2 beta Agent using the @tool decorator.
llama-farm/llamafarm
Analyze the current session and propose improvements to skills.
llama-farm/llamafarm
RAG-specific best practices for LlamaIndex, ChromaDB, and Celery workers.
llama-farm/llamafarm
Guidelines for creating temporary files in system temp directory.
llama-farm/llamafarm
Universal Runtime best practices for PyTorch inference, Transformers models, and FastAPI serving.
llama-farm/llamafarm
CLI best practices for LlamaFarm. An agent skill from llama-farm/llamafarm.
llama-farm/llamafarm
Comprehensive code review for diffs. An agent skill from llama-farm/llamafarm.
Categories
Shared Python best practices for LlamaFarm. An agent skill from llama-farm/llamafarm. Python Skills is an agent skill from llama-farm/llamafarm. Shared Python best practices for LlamaFarm.
Python Skills fits situations like: tasks that involve Error handling.
Run `npx skills add llama-farm/llamafarm --skill python-skills -a claude-code`. Or copy the skill folder (.claude/skills/python-skills in llama-farm/llamafarm) into .claude/skills/python-skills in your project. Claude Code loads it when a task matches its description.
Run `npx skills add llama-farm/llamafarm --skill python-skills -a codex`. Or copy the skill folder (.claude/skills/python-skills in llama-farm/llamafarm) into .agents/skills/python-skills in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add llama-farm/llamafarm --skill python-skills -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/python-skills, .gemini/skills/python-skills, .github/skills/python-skills and .opencode/skills/python-skills in your project.
SKILL.md names no scripts, command-line tools or credentials: Python Skills is instructions for the agent only. Our summary lists: Python 3. Its frontmatter pre-approves these tools: Read, Grep, Glob.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Python Skills is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Python Skills: Cross-Language Coding Standards (zereight/gitlab-mcp, 2k stars), Python Dev (databricks-solutions/ai-dev-kit, 1.9k stars), A2ui Generate Pydantic Models (a2ui-project/a2ui, 17k stars) and Release (zmievsa/cadwyn, 309 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
llama-farm (a GitHub organization) maintains it in llama-farm/llamafarm, which has 837 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on June 10, 2026.
Source: llama-farm/llamafarm on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.