RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Copilot instructions/jnPiyush/AgentX

Copilot instructions

.github/instructions/python.instructions.md

Python specific coding instructions for production code.

Copilot instructions

Quality

67/100

Scores the file, not the repository.

Length

189 words

6 headings · 0 code blocks

Repository

14

— · pushed 0 days ago

Last changed

3 days ago

First indexed 3 days ago.
jnPiyush/AgentX/.github/instructions/python.instructions.mdRawGitHub
1---
2description: 'Python specific coding instructions for production code.'
3applyTo: '**.py, **.pyx'
4---
5 
6# Python Instructions
7 
8> Auto-loads when editing Python files. For comprehensive standards, load the skill.
9 
10**Skill**: [.github/skills/languages/python/SKILL.md](../skills/languages/python/SKILL.md)
11 
12## Key Rules
13 
14- Follow PEP 8 style guide
15- Use type hints for all function signatures (PEP 484)
16- Maximum line length: 88 characters (Black formatter)
17- Use `ruff` for linting and formatting
18- Google style docstrings
19- Catch specific exceptions, never bare `except:`
20- pytest for testing, pytest-asyncio for async
21- Name tests: `test_function_name_scenario_expected`
22 
23## Critical Rules (Embedded -- Always Active)
24 
25### Security
26- Validate/sanitize ALL inputs at API boundaries
27- Parameterize SQL via ORM or `cursor.execute(sql, params)` -- NEVER f-strings or `.format()`
28- Secrets in env vars (`os.environ`) or Key Vault -- NEVER hardcode
29- Use `secrets.compare_digest()` for constant-time comparisons
30 
31### Testing
32- 80%+ code coverage required (`pytest --cov`)
33- Pyramid: 70% unit, 20% integration, 10% e2e
34- AAA pattern (Arrange-Act-Assert) in every test
35- No bare `assert True` -- assert specific values
36 
37### Error Handling
38- Catch specific exceptions (`ValueError`, `KeyError`, etc.)
39- Log with context: `logger.error("msg", extra={"agent": ..., "issue": ...})`
40- Retry transient failures with exponential backoff (`tenacity`)
41- Fail fast on invalid input at module boundaries
42 
43 

Commands it names

  • ruff
  • pytest --cov

Sections

  • Python Instructions
  • Key Rules
  • Critical Rules (Embedded -- Always Active)
  • Security
  • Testing
  • Error Handling

What it covers

testlint-formatsecuritydo-notagent-behaviour

Stack — with the evidence

typescript

(1.00)

node

(0.70)

react

(0.70)

eslint

(0.70)

github-actions

(0.60)

vercel

(0.60)

javascript

(0.50)

Glob targeting

  • **.py
  • **.pyx

Format

Copilot instructions

Two layers: one always-on repo file, plus optional glob-scoped instruction files. Lives under .github/ rather than the repo root, which is the tell that it is aimed at the GitHub platform surface as much as the editor.

What the corpus says about it

Repository

Owner
jnPiyush
Language
—
License
—
Archived
no

All configs in this repo

Also in jnPiyush/AgentX

Diff this repo’s formats

One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
jnPiyush/AgentXvscode-extension/.github/AGENTS.md · 14AGENTS.mdtypescriptnode+5lint-formatstylegitsecurity+269/1003 days ago
jnPiyush/AgentX.cursor/rules/000-agentx-core.mdc · 14Cursor rulestypescriptnode+5styleapido-notagent-behaviour55/1003 days ago
jnPiyush/AgentX.cursor/rules/ai.mdc · 14Cursor rulestypescriptnode+5no sections16/1003 days ago
jnPiyush/AgentX.cursor/rules/csharp.mdc · 14Cursor rulestypescriptnode+5no sections16/1003 days ago
jnPiyush/AgentX.cursor/rules/python.mdc · 14Cursor rulestypescriptnode+5testlint-format32/1003 days ago
jnPiyush/AgentX.cursor/rules/react.mdc · 14Cursor rulestypescriptnode+5no sections16/1003 days ago
jnPiyush/AgentX.cursor/rules/typescript.mdc · 14Cursor rulestypescriptnode+5types16/1003 days ago
jnPiyush/AgentX.github/copilot-instructions.md · 14Copilot instructionstypescriptnode+5stylegitdo-notagent-behaviour67/1003 days ago
jnPiyush/AgentX.github/instructions/ai.instructions.md · 14Copilot instructionstypescriptnode+5testing-strategydo-notagent-behaviour50/1003 days ago
jnPiyush/AgentX.github/instructions/csharp.instructions.md · 14Copilot instructionstypescriptnode+5teststylesecuritydo-not+159/1003 days ago
jnPiyush/AgentX.github/instructions/memory.instructions.md · 14Copilot instructionstypescriptnode+5lint-formatperformance54/1003 days ago
jnPiyush/AgentX.github/instructions/project-conventions.instructions.md · 14Copilot instructionstypescriptnode+5styledo-not50/100today
jnPiyush/AgentX.github/instructions/react.instructions.md · 14Copilot instructionstypescriptnode+5testtypessecuritydo-not+163/1003 days ago
jnPiyush/AgentX.github/instructions/typescript.instructions.md · 14Copilot instructionstypescriptnode+5setuptestlint-formatstyle+592/1003 days ago
jnPiyush/AgentXAGENTS.md · 14AGENTS.mdtypescriptnode+5lint-formatstylegitsecurity+269/1003 days ago
jnPiyush/AgentXCLAUDE.md · 14CLAUDE.mdtypescriptnode+5lint-formatstylegitsecurity+281/1003 days ago
Diff against vscode-extension/.github/AGENTS.md Diff against .cursor/rules/000-agentx-core.mdc Diff against .cursor/rules/ai.mdc Diff against .cursor/rules/csharp.mdc Diff against .cursor/rules/python.mdc Diff against .cursor/rules/react.mdc Diff against .cursor/rules/typescript.mdc Diff against .github/copilot-instructions.md Diff against .github/instructions/ai.instructions.md Diff against .github/instructions/csharp.instructions.md Diff against .github/instructions/memory.instructions.md Diff against .github/instructions/project-conventions.instructions.md Diff against .github/instructions/react.instructions.md Diff against .github/instructions/typescript.instructions.md Diff against AGENTS.md Diff against CLAUDE.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
chihebnabil/lovable-boilerplate.github/instructions/global.instructions.md · 63Copilot instructionstypescriptreact+7buildlint-formatstylearch+4100/1003 days ago
HerringtonDarkholme/megarepo.github/copilot-instructions.md · 17Copilot instructionsnodejavascriptsetupbuildtestlint-format+7100/1003 days ago
louislam/uptime-kuma.github/copilot-instructions.md · 90kCopilot instructionstypescriptjavascript+10setupbuildtestlint-format+9100/1003 days ago
JCodesMore/ai-website-cloner-template.github/copilot-instructions.md · 31kCopilot instructionstypescriptnode+7buildlint-formatstylearch+397/1002 days ago
bagisto/bagisto.github/copilot-instructions.md · 28kCopilot instructionsphplaravel+8setupbuildteststyle+597/1003 days ago
darkmatter/nixmac.github/copilot-instructions.md · 24Copilot instructionstypescriptrust+14setupbuildtestlint-format+896/1003 days ago
nerolis-lab/nerolis-lab.github/copilot-instructions.md · 32Copilot instructionstypescriptnode+8setupbuildtestlint-format+1196/1003 days ago
thangaram611/second-brain.github/copilot-instructions.md · 0Copilot instructionstypescriptnode+12setupteststylearch+496/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack