python-mini-project
Route and safely maintain the ndleah Python Mini Projects collection of standalone beginner Python scripts, games, web apps, automation tools, data/media demos, and ML/CV examples.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- python-mini-project
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Route and safely maintain the ndleah Python Mini Projects collection of standalone beginner Python scripts, games, web apps, automation tools, data/media demos, and ML/CV examples.
- disable-model-invocation
- true
02 资源文件 7
- 参考文档references/dependency-and-safety-map.md5.4 KB
- 参考文档references/project-catalog.md6.6 KB
- 参考文档references/repo-provenance.md2.3 KB
- 参考文档references/repo-routing-metadata.json509 B
- 参考文档references/troubleshooting.md3.5 KB
- 脚本scripts/check_project_static.py6.9 KB
- 脚本scripts/inventory_mini_projects.py10.7 KB
03 SKILL.md 正文
Python Mini Projects repo skill
Use this skill when the task is about the python-mini-project repository, its top-level mini-project folders, adding/reviewing a project contribution, or safely running/checking one of the standalone Python examples.
This repository is not one importable package. It is a gallery of independent project folders. Start by identifying the target folder and execution surface, then load the matching sub-skill.
First steps
- If the user names a folder, locate it in
references/project-catalog.md. - If the user describes a task instead of a folder, route by execution surface in the table below.
- Use static checks before running project code:
scripts/inventory_mini_projects.pyscans a checkout and categorizes folders.scripts/check_project_static.pyparses one or more folders and reports import/runtime hazards.
- Install dependencies only for the selected project folder and verification target. Do not install root-wide requirements blindly.
- Execute live code only after display, network, credential, model, OS, and destructive side-effect constraints are explicit.
Route map
| Task or signal | Read next | Why |
|---|---|---|
| Add a new mini-project, review a PR, fix README/requirements/style, remove cache files | sub-skills/contribution-and-project-maintenance/SKILL.md |
Covers repository conventions, README template, PR checklist, and project skeleton generation. |
| Pure Python CLI utilities, algorithms, data structures, text/file transforms, safe tiny checks | sub-skills/cli-algorithms-and-utilities/SKILL.md |
Covers stdlib-heavy scripts and the only default native smoke checks. |
| Tkinter, pygame, turtle, curses, GUI calculators, desktop apps, audio/game loops | sub-skills/games-gui-and-desktop/SKILL.md |
Covers display/audio/assets/event-loop hazards. |
| Flask/FastAPI apps, HTTP/socket servers, email/WhatsApp/bot automation, credentials, host automation | sub-skills/web-network-and-automation/SKILL.md |
Covers services, ports, DB setup, API keys, credentialed/network/destructive work. |
| Scraping, PDF/image/audio conversion, notebooks, OpenCV, TensorFlow/Keras, Ultralytics/YOLO, plotting | sub-skills/data-media-ml-and-vision/SKILL.md |
Covers data/media/CV/ML dependencies, fixtures, backends, and safe skip rules. |
Root references
references/project-catalog.mdlists known mini-project folders by route and gives the long-tail routing rule.references/dependency-and-safety-map.mdexplains per-project dependency selection, optional backends, and safety classes.references/troubleshooting.mdcovers cross-cutting setup, cwd, dependency, display, network, credential, and unsafe-script failures.references/repo-provenance.mdrecords the source snapshot and refresh baseline.references/repo-routing-metadata.jsoncontains structured router metadata for managed import tooling.
Root scripts
scripts/inventory_mini_projects.py --root <checkout> --format markdownscans top-level project folders without importing or executing them.scripts/check_project_static.py --root <checkout> <project-folder> [...]statically reports syntax, imports, notebooks, requirements files, and common runtime hazards.
Both scripts are safe by default. They inspect text and AST only; they do not start servers, GUI loops, network calls, model loads, email sends, port scans, or host commands.
Dependency posture
- The root
requirements.txtis historical and not a clean universal lockfile. - Prefer the target folder's
requirements.txtorpyproject.tomlwhen present. - For folders with no dependency file, statically inspect imports first and install only what the selected task needs.
- Treat GUI/display, audio, network/API, credentials, camera, model downloads, GPU/CUDA, Windows COM, and host-destructive operations as optional prepared scopes, not mandatory baseline verification.
Verification posture
The mandatory baseline for this skill is CPU-only static inspection plus curated safe stdlib checks. Optional projects are still documented, but they are not considered live-verified unless a future task prepares their exact environment and authorizes required side effects.
Default safe native candidates are owned by cli-algorithms-and-utilities:
Cat_commandfixture-based output check.Execute Shell Commandunittest with a fixedechocommand.
Do not run by default:
Smart_Calculatortests, because the module opens Tk at import time.- GUI/game projects without a display/audio-capable session.
- services or sockets without isolated ports and timeouts.
- network/API/email/WhatsApp/Firebase/Spotify flows without disposable credentials.
- OpenCV/TensorFlow/YOLO/camera/model workflows without a prepared project-specific environment.
- shutdown, spam, port scanning, database dumping, or other destructive/unauthorized automation.
Refresh rule
If a future checkout has new project folders, changed contribution rules, normalized dependency files, or new safe tests/examples, refresh the project catalog, safety map, sub-skill route lists, and native candidate map together.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).