repo-maintenance
Maintain GPT-Image2-Skill repository surfaces: prompt/gallery entries, README/docs, plugin metadata, CLI/package flags, release/support/security policy, and offline pre-PR checks.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- repo-maintenance
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Maintain GPT-Image2-Skill repository surfaces: prompt/gallery entries, README/docs, plugin metadata, CLI/package flags, release/support/security policy, and offline pre-PR checks.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/contributor-workflows.md6.0 KB
- 参考文档references/repository-layout.md4.8 KB
- 参考文档references/troubleshooting.md5.1 KB
- 脚本scripts/check_repo_content.py17.4 KB
03 SKILL.md 正文
repo-maintenance
Use this sub-skill when the task is to edit or review GPT-Image2-Skill itself: contributor-facing docs, gallery records, package metadata, CLI flags, plugin metadata, release/support/security policy, or focused checks before opening a PR.
Do not use this sub-skill for ordinary image generation, image editing, prompt selection, or gallery mining. Route those to ../cli-and-api/SKILL.md and ../prompt-gallery/SKILL.md. Import/export or runtime deployment of generated repo skills is out of scope here.
Start here
references/repository-layout.md: repository map, ownership rules, and files to update for each public surface.references/contributor-workflows.md: maintainer workflows for gallery, CLI/package, plugin, policy, release, and PR checks.references/troubleshooting.md: packaging drift, stale gallery indexes, accidental API calls, asset bloat, and runtime-skill path mistakes.scripts/check_repo_content.py: deterministic no-network checker for package entry points, skill frontmatter, gallery links, and image asset inventory.
Maintenance operating loop
- Classify the change: gallery/prompt, README/docs, CLI/package, plugin metadata, release notes, support/security, issue/PR templates, or generated skill maintenance.
- Open the source of truth for that surface before editing. Use
pyproject.tomlfor package identity and entry points;src/gpt_image_cli/for CLI behavior;skills/gpt-image/and its references for the runtime skill; README files for public install/usage/gallery showcase. - Edit the smallest owning surface, then update all public mirrors that describe it.
- Keep bilingual/public docs aligned. User-facing gallery or install changes normally require matching
README.mdandREADME.zh.mdupdates. - Stay offline by default. Maintainer checks must not call OpenAI Images APIs, must not print API keys, and must not create or modify secret files.
- Run focused checks and report what was verified, what was intentionally not verified, and any follow-up needed.
Package and entry-point expectations
The repository is packaged as gpt-image-cli. The public console command is expected to remain:
[project.scripts]
gpt-image = "gpt_image_cli.cli:main"
When CLI flags, defaults, endpoint behavior, exit codes, or dependencies change, update the implementation under src/gpt_image_cli/, pyproject.toml if packaging changed, README usage tables/examples, skills/gpt-image/SKILL.md, and relevant generated-skill references.
Files to update by change type
| Change type | Primary files | Mirrors to check |
|---|---|---|
| New or moved gallery entry | docs/<category-slug>/, README.md, README.zh.md |
skills/gpt-image/references/gallery.md, matching gallery-*.md, community prompt index files when applicable |
| CLI flag/default/behavior | src/gpt_image_cli/cli.py, src/gpt_image_cli/__init__.py |
pyproject.toml, README parameter/examples, skills/gpt-image/SKILL.md, CLI/API sub-skill references |
| Package metadata or entry point | pyproject.toml |
README install/update text, plugin metadata, changelog |
| Plugin metadata | .claude-plugin/plugin.json, .claude-plugin/marketplace.json |
README install text, pyproject.toml keywords/description, changelog |
| Support/security/release policy | SUPPORT.md, SECURITY.md, CHANGELOG.md, CONTRIBUTING.md |
issue templates, PR template, README contribution links |
| Generated runtime skill wording | skills/gpt-image/, skills/disco/gpt-image-cli/ |
repository-relative links, no private paths, no review artifact references |
Safe local checks
Run only checks that do not generate images or contact external APIs unless the maintainer explicitly asks for live runtime validation.
git diff --check
python3 -m py_compile src/gpt_image_cli/cli.py src/gpt_image_cli/__init__.py
python skills/disco/gpt-image-cli/sub-skills/repo-maintenance/scripts/check_repo_content.py .
uv run gpt-image --help
uv run gpt-image --help is suitable for confirming the installed CLI surface after packaging or parser changes; it should not require an API key or make an image request.
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).