python-foundational
Skill1.5k starsChanged 2 months agoMITView on GitHub
Foundational Python best practices, idioms, and code quality fundamentals
Trending
Less talk lately.about the whole repository
Who's talking about microsoft/hve-core
- A Hacker News story“Microsoft/Hve-Core”Hacker News · Mar 8, 2026 · 3 points
- @github-trending.bsky.social“📦 microsoft / hve-core ⭐ 169 (+6) 🗒 PowerShell A refined collection of Hypervelocity Engineering …”Bluesky · Mar 5, 2026 · 1 likes
- A Hacker News story“A refined collection of Hypervelocity Engineering components”Hacker News · Feb 20, 2026 · 1 points
- sudosubin/agents.nix“agent-skills.github.microsoft.hve-core: init at 3.3.101”GitHub · Oct 3, 2026
- nayounsang/younsang-codex-plugin“strict-review 보강”GitHub · Sep 26, 2026
The biggest 5 of 21 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 21
Talked about on GitHub, Hacker News and Bluesky (21 times).
On GitHub · 18
- Oct 3, 2026agent-skills.github.microsoft.hve-core: init at 3.3.101 — sudosubin/agents.nix0 reactions
- Sep 26, 2026strict-review 보강 — nayounsang/younsang-codex-plugin0 reactions
- Jul 22, 2026chore: add Copilot cloud-sandbox and dev container with hve-core-all — JoshLuedeman/fabric-worldcup0 reactions
- Jul 22, 2026chore: Copilot cloud-sandbox setup + dev container with hve-core-all — JoshLuedeman/vCamService0 reactions
- Jul 22, 2026chore: add Copilot cloud-sandbox setup + dev container (hve-core-all plugin) — JoshLuedeman/cosmosdb-to-sql-migration-tool0 reactions
13 more on GitHub
- Jul 22, 2026chore: add Copilot cloud-sandbox setup + dev container with hve-core-all plugin — JoshLuedeman/my-scripts0 reactions
- Jul 20, 2026security: hve-core freshness needs attention (6 drifted, 0 check errors) — microsoft/physical-ai-toolchain0 reactions · 10 comments
- May 4, 2026feat(agents): thin GHCP cloud-agent wrapper exposing hve-core RPI — microsoft/physical-ai-toolchain0 reactions
- Apr 14, 2026Spec driven development — devndive/links0 reactions
- Apr 11, 2026Chore releases — googleapis/release-please0 reactions
- Mar 29, 2026Test: performance issues with many custom agents registered — microsoft/vscode0 reactions · 2 comments
- Mar 25, 2026Support git symlinks in plugin install on Windows — github/copilot-cli0 reactions · 3 comments
- Mar 21, 2026chore(submodules): bump external/microsoft-hve-core from `e49a1b5` to `0fbd111` — Anselmoo/copilot-plugin-manager0 reactions · 3 comments
- Mar 9, 2026feat(ai-rules): added Copilot generation, external agent fetch, and AI workflows cookbook — rios0rios0/guide0 reactions
- Feb 28, 2026mar 2026 — kimtth/azure-openai-llm-notes0 reactions
- Feb 12, 2026docs(community): document GitHub Discussions usage and create welcome post — microsoft/edge-ai0 reactions
- Feb 12, 2026fix(docs): replace Azure DevOps references in CONTRIBUTING.md with GitHub equivalents — microsoft/edge-ai0 reactions
- Feb 6, 2026chore: migrate CODEOWNERS to team-based fallback pattern — microsoft/edge-ai0 reactions
On Hacker News · 2
- Mar 8, 2026Microsoft/Hve-Core3 points
- Feb 20, 2026A refined collection of Hypervelocity Engineering components1 point
On Bluesky · 1
- Mar 5, 2026📦 microsoft / hve-core ⭐ 169 (+6) 🗒 PowerShell A refined collection of Hypervelocity Engineering components (instructions, prompts,… — @github-trending.bsky.social1 likes and repost
In this repository81 other files it gives its agents.
- .github/skills/hve-core/vally-tests/references/agents.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- accessibilitySkill
- code-reviewSkill
- hve-artifact-authoringSkill
- analysis-authoringSkill
- data-catalogSkill
- dataopsSkill
- data-science-engineering-foundationSkill
- evaluation-designSkill
- feasibilitySkill
- ml-experimentationSkill
- demo-setupSkill
- dt-coaching-foundationSkill
- dt-curriculumSkill
- dt-methodsSkill
- dt-rpi-integrationSkill
- ux-artifactsSkill
- ux-coachingSkill
- engagement-reportingSkill
- cavemanSkill
- copilot-otel-metricsSkill
- customer-card-renderSkill
- demo-videoSkill
- hve-demo-materialSkill
- muralSkill
- powerpointSkill
- tts-voiceoverSkill
- video-to-gifSkill
- vscode-playwrightSkill
- architecture-diagramsSkill
- c4-architectureSkill
- documentationSkill
- hve-builderSkill
- prompt-analyzeSkill
- prompt-builderSkill
- prompt-refactorSkill
- pull-requestSkill
- vally-testsSkill
- hve-slidesSkill
- hve-core-installerSkill
- adr-authorSkill
- architecture-reviewSkill
- backlog-executeSkill
- backlog-managementSkill
- backlog-planSkill
- experiment-designSkill
- functional-plannerSkill
- gitlabSkill
- jiraSkill
- outcome-hypothesisSkill
- performance-slo-plannerSkill
- privacy-standardsSkill
- proposal-responseSkill
- rai-plannerSkill
- requirements-authorSkill
- security-planningSkill
- rai-standardsSkill
- rpi-challengerSkill
- rpi-implementSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
22 rules. About 0 are common, 12 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Use Python naming: PascalCase classes, snake_case functions/variables, UPPER_SNAKE_CASE constants, _ private members.
- Distinctive: line 29
Prefer comprehensions for simple transforms.
- Very specific: line 30
Always use with for files, locks, DB connections.
- Very specific: line 31
Prefer dataclass / NamedTuple / Enum for data holders.
- Very specific: line 32
Use pathlib over os.path; timezone-aware datetime when relevant.
- Very specific: line 33
Use * keyword-only arguments for multi-optional functions.
- Very specific: line 34
Never use mutable defaults or global/nonlocal unless strictly required.
- Distinctive: line 38
Keep functions small and single-responsibility.
- Distinctive: line 39
Add docstrings to all public APIs (follow repo style).
- Distinctive: line 41
Follow codebase’s class-member ordering (if defined).
- Distinctive: line 45
Add type hints to all public APIs, module vars, and class attributes.
- Very specific: line 46
Use PEP 695 (3.12+) or TypeVar for generics.
- Very specific: line 47
Avoid Any except in thin wrappers.
- Distinctive: line 52
No silent failures or generic error messages.
- Very specific: line 57
Never use eval, exec, or pickle on untrusted data.
- Distinctive: line 62
Prefer self-documenting code.
- Very specific: line 63
Use structured logging instead of print.
- Distinctive: line 69
Place code in the correct module/package.
- Distinctive: line 74
Prefer the simplest implementation that satisfies current requirements.
- Distinctive: line 76
Before flagging seemingly unused code, verify it is not a protocol implementation, framework hook, public API, or entry point invoked …
- Distinctive: line 104
Follow these conventions when extending this skill:
- Distinctive: line 108
Before adding a new checklist item, confirm it does not duplicate an existing bullet in any section.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Python Foundational Coding Standards Skill
Overview
Foundational Python excellence that every diff must satisfy. This skill is loaded first for any .py change. All higher-order skills build on it.
This content is a skill rather than an instructions file for three reasons: skills are distributed through the CLI plugin and VS Code extension without requiring consumers to copy files into their repo; new language skills can be added without modifying the review agent itself; and skills are loaded on demand, keeping the context window small when the diff contains no Python.
Core Checklist
1. Readability & Style
- Use Python naming:
PascalCaseclasses,snake_casefunctions/variables,UPPER_SNAKE_CASEconstants,_private members. - Group imports: stdlib → third-party → local (blank line between groups, no trailing whitespace).
2. Pythonic Idioms
- Prefer comprehensions for simple transforms; use explicit loops for complex logic/side-effects.
- Always use
withfor files, locks, DB connections. - Prefer
dataclass/NamedTuple/Enumfor data holders. - Use
pathliboveros.path; timezone-awaredatetimewhen relevant. - Use
*keyword-only arguments for multi-optional functions. - Never use mutable defaults or
global/nonlocalunless strictly required.
3. Function & Class Design
- Keep functions small and single-responsibility.
- Add docstrings to all public APIs (follow repo style).
- Document unavoidable side-effects.
- Follow codebase’s class-member ordering (if defined).
4. Type Safety Foundations
- Add type hints to all public APIs, module vars, and class attributes.
- Use PEP 695 (3.12+) or
TypeVarfor generics. - Avoid
Anyexcept in thin wrappers.
5. Error Handling
- Raise specific exceptions; never bare
except:(broadexcept Exception:only at app boundaries with logging). - No silent failures or generic error messages.
- Provide context, expected state, and guidance in every exception.
6. Anti-Patterns to Avoid
- Never use
eval,exec, orpickleon untrusted data. - Never hard-code secrets.
7. Maintainability
- Prefer self-documenting code; comments only for "why".
- Use structured logging instead of
print. - Flag overly long/complex functions that resist testing.
8. Architectural Fit
- Align with existing patterns; do not re-implement shared functionality or bypass established layers.
- Place code in the correct module/package.
9. Design Principles
- Eliminate duplication: extract repeated logic into a shared helper so fixes propagate automatically.
- Prefer the simplest implementation that satisfies current requirements. Introduce abstractions only when a second concrete use case appears.
- Limit change breadth: every modified line should trace to the stated purpose of the change.
- Before flagging seemingly unused code, verify it is not a protocol implementation, framework hook, public API, or entry point invoked externally.
- Match solution complexity to problem complexity. A duplicated function warrants a shared helper, not an event-driven architecture.
References
| File | Covers | Purpose |
| design-principles.md | Section 9 | Rationale and examples for the design principles |
| code-style-patterns.md | Sections 1–5 | Concrete code examples for style, idioms, type safety, class design, and error handling |
Severity Rubric
| Severity | Definition |
| High | Causes incorrect behavior, data loss, or security exposure at runtime |
| Medium | Degrades maintainability, readability, or violates a project convention with no immediate runtime impact |
| Low | Cosmetic, stylistic, or minor improvement opportunity |
Troubleshooting
| Symptom | Check |
| Skill not loaded | Confirm the diff contains .py files. The agent selects skills by matching file types in the changed files against skill descriptions. |
| No findings generated | Verify the Skills Loaded footer in the review output lists python-foundational. If listed but no findings appear, the diff may already satisfy the checklist. |
| Severity seems miscalibrated | Compare against the Severity Rubric above. High requires runtime impact; medium is maintainability-only. |
Contributing
Follow these conventions when extending this skill:
- Checklist items belong in SKILL.md. Each bullet is a single, actionable check an agent or reviewer can apply to a diff. Keep bullets concise: one sentence, no code.
- Reference files live in
references/and provide examples or rationale for the covered checklist items. Each reference file covers a contiguous range of sections. Update the References table when adding a new file. - Before adding a new checklist item, confirm it does not duplicate an existing bullet in any section. Place it in the section that matches its primary concern. If it spans concerns, prefer the more specific section.
- Name new reference files after the topic they cover (e.g.,
async-patterns.md). Include a frontmatterdescriptionthat states which sections the file supports. Add a row to the References table in SKILL.md. - Checklist items and examples must be portable across codebases. Use generic module names and describe anti-patterns by their behavior, not by specific directory or file names.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

