ugrc-python

ugrc-python is a skill for Claude Code, Codex from agrc/agent-skills. It costs 15 tokens per session (237 once invoked), scanned A, original, MIT.

Python coding guidance for writing and reviewing scripts, including recommendations for filesystem paths, Ruff linting, formatting, and Codecov workflows.

In plain words
What is it for?
Use it when changing Python code, configuring Ruff, handling ArcPy paths, or checking that setup, tests, coverage uploads, and repeated CI steps are configured correctly.
Why use it?
It reduces portability and maintenance problems caused by older path handling, inconsistent style settings, or incomplete coverage reporting.

Skill for Claude CodeCodex

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

Good fit Use it when changing Python code, configuring Ruff, handling ArcPy paths, or checking that setup, tests, coverage uploads, and repeated CI steps are configured correctly.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agrc/agent-skills/ugrc-python
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.

Any agent
npx skills add agrc/agent-skills --skill ugrc-python
Clone the repo
git clone --depth 1 https://github.com/agrc/agent-skills

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 ugrc-python

README.md
[![agentmods](https://agentmods.dev/badge/skills/agrc/agent-skills/ugrc-python/github.svg)](https://agentmods.dev/skills/agrc/agent-skills/ugrc-python)
Your own site
<a href="https://agentmods.dev/skills/agrc/agent-skills/ugrc-python"><img src="https://agentmods.dev/badge/skills/agrc/agent-skills/ugrc-python/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 ugrc-python

Your own site · 80×15
<a href="https://agentmods.dev/skills/agrc/agent-skills/ugrc-python"><img src="https://agentmods.dev/badge/skills/agrc/agent-skills/ugrc-python.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 237 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.
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.00015 $0.00237
Opus 5.5 $0.00006 $0.00095
Sonnet 5.5 $0.00003 $0.00047
Haiku 4.5 $0.00002 $0.00024

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

Security

Grade A, and why

ugrc-python 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 1mo 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.

skills/ugrc-python/SKILL.md · 30 lines

What it actually says

Prefer the pathlib library over the older os.path module for handling filesystem paths. Be aware that the arcpy library does not support pathlib.Path objects directly prior to version 3.7; you will need to convert them to strings using str(path). In version 3.7 and later, arcpy can handle pathlib.Path objects directly and can even be set to return them by default using this ArcPy environment setting:

arcpy.env.returnPathlib = True

Linting and Formatting

Use ruff for linting and formatting with the following configuration:

[tool.ruff.lint]
extend-select = ["I"]

If the current project does not implement this exact configuration, offer to migrate it and fix any resulting issues.

Test Coverage

For Python test coverage and Codecov CI guidance, use ugrc-python-code-coverage.

Packaging

For Python packaging migration guidance, use ugrc-python-packaging.

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. 1mo ago Changed · -8 lines 6f75ae0f947d
  2. 1mo ago First seen · 38 lines · 15 tokens per session scan A 8a49dcedb69f

Subscribe to this mod's changes

ugrc-python is a skill published in the GitHub repository agrc/agent-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 15 tokens to every session and 237 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

cardputer-buddy

Iterate on the Cardputer-Adv MicroPython app bundle (Claude Buddy, Snake, Hello) after the device is already provisioned via m5-onboard. Use when the user wants to add a new app, push a single changed .py without re-flashing, watch device serial logs, or run a one-shot REPL command. Trigger on "add an app", "push to…

anthropics/claude-plugins-official · 109 tokens

developing-genkit-python

Develop AI-powered applications using Genkit in Python. Use when the user asks about Genkit, AI agents, flows, or tools in Python, or when encountering Genkit errors, import issues, or API problems.

google/skills · 49 tokens

hypothesis-testing

Property-based testing with Hypothesis for discovering edge cases and validating invariants. Use when implementing comprehensive test coverage, testing complex logic with many inputs, or validating mathematical properties and invariants across input domains. Triggered by: hypothesis, property-based testing, @given…

foryourhealth111-pixel/Vibe-Skills · 62 tokens

gh-address-comments

Help address review/issue comments on the open GitHub PR for the current branch using gh CLI; verify gh auth first and prompt the user to authenticate if not logged in.

foryourhealth111-pixel/Vibe-Skills · 39 tokens

authoring-dags

Workflow and best practices for writing Apache Airflow DAGs. Use when creating a new DAG, write pipeline code, handling questions about DAG patterns and conventions or extending an existing DAG with a follow-up/downstream task. ANY request shaped like 'add a DAG named X', 'write a pipeline', 'add a task that runs…

astronomer/agents · 93 tokens

test-harness

Generates pytest test suites with happy path, edge cases, error conditions, fixture scaffolding, mocks, async patterns. Triggers on: "generate tests", "write tests for", "test this function", "create test suite", "pytest for", "unit tests for", "mock strategy for".

Mathews-Tom/armory · 65 tokens