Community图像github.com

kwhi6693-web/photographic-studio

独立的非人像摄影后期工作流,面向任何能看图的 agent。用户发来一张或多张照片并要求修图(例如“修”“修一下这张”“修成成片”“精修”)时使用,适用于建筑、街景、风光、园林、夜景、室内、静物、展品等非人像照片。自动读片、写导演单、指挥生成式光色与确定性调色、检查是否符合自然光的物理规律和用户偏好的力度,直接交付一张成片;按宿主实际具备的工具分级执行。

photographic-studio 是什么?

photographic-studio is a Claude Code agent skill that 独立的非人像摄影后期工作流,面向任何能看图的 agent。用户发来一张或多张照片并要求修图(例如“修”“修一下这张”“修成成片”“精修”)时使用,适用于建筑、街景、风光、园林、夜景、室内、静物、展品等非人像照片。自动读片、写导演单、指挥生成式光色与确定性调色、检查是否符合自然光的物理规律和用户偏好的力度,直接交付一张成片;按宿主实际具备的工具分级执行。.

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/kwhi6693-web/Photographic-studio/tree/HEAD/photographic-studio

Installed? Explore more 图像 skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Photographic Studio v1.0

When a user sends a photo and says "edit", this agent produces the best possible finished image. The final image must have strong photographic expression, still closely resemble the original, conform to the physical laws of real light, and show no AI traces. Expression comes first; the other three are simultaneous constraints.

This file is the sole execution guide. references/principles.md is the general principle; other reference files provide details. Reference files retain version numbers and dates only to indicate where a rule originated; in case of conflict with this file or the general principles, this file and the general principles take precedence.

1. Boundaries

  • Non-portrait only. Incidental human figures in the frame are left untouched: no beautification, no reshaping, no identity inference. If the subject is a portrait, do not edit and explain in one sentence.
  • Standalone product: Does not call, depend on, or modify any other photography Skill.
  • User sending a photo with an editing request is deemed authorization for that one-time edit. If only analysis is requested, do not edit. If strict fidelity or non-generative output is specified, skip G and use N direct output.
  • Photos are not retained for style libraries or training material; not forwarded to third-party services.
  • Cannot guarantee reaching the quality of reference samples every time; the user retains the final acceptance right.

2. Terminology

  • G: The host's built-in image editing tool that accepts the original image as input (vendor-agnostic). The default route only takes light and color from G, not the pixels it paints.
  • N: Deterministic tools in optional/ that do not generate content.
  • Output Label: Original pixels + G light/color → N polish (default) | N direct output (no G, G fails, or user requests non-generative) | G + detail restore (upgrade route). May append +Restructure or +Anti-overshoot.

3. Default Execution (do not ask questions, do not create tickets; process multiple images one by one)

Eyes and Brain

  1. Self-check & tier assignment: Run optional/selfcheck.py, then confirm whether G is available and assign tier per references/capability_tiers.md (T1: has G and can run code; T2: can only run code; T3: has G only; T4: none). Install missing dependencies if the host allows, then recheck once. Write the tier in the receipt.
  2. Measurement: optional/measure.py original.
  3. Image reading: Story, mood, subject, style direction (references/story_style.md); light, color, tonality, guidance, space (references/craft_reading.md); read only the relevant genre page (references/genres/); glance at taste reference (references/taste_profile.md).
  4. Write director's brief: Six lines (references/director_brief.md), translate into G prompt and N parameters using references/craft_prescriptions.md. Numerical targets go only in the director's brief and N parameters; do not write numerical values into G's prompt.

Hands 5. Produce image (T1):

  • Call G once. The original must be in the most recent user message; follow references/g_prompt_template.md for the prompt, must include the two physics clauses from references/physics.md Section 2. After the call, use optional/check_g_output.py to verify scene correspondence (references/g_post_check.md); discard this version if it fails.
  • Run optional/finish.py original G_parameters.json output.png receipt.json; for museum, display case, or quiet still life add --genre=museum. It sequentially applies light/color transfer (look_transfer.py: each pixel of the output comes from the original, carrying only G's light and color, blocking G's artificially added or deleted lights), polish (grade.py), physics check, and intensity check. Pass physics check, remain within intensity range, and show visible change to qualify; otherwise, auto-escalate in steps: original parameters → museum intensity (museum only) → remove positive area highlights and vignette → --local=0 → N direct output → N direct output + museum intensity. Deliver the first qualifying result; if none qualify, deliver the least problematic one and list issues in the receipt. Do not stop to ask the user.
  • T2: No G, run finish.py original original parameters.json … (equivalent to N direct output, references/n_grade.md). T3: G only, deliver G's output and honestly note no checks were performed. T4: Only provide reading and recommendations.
  1. Review (mandatory, write into receipt, do not display by default): Compare the output line by line against the director's brief, applying Section 4 of director_brief.md to write seven conclusions (Story/Style | Subject | Tonality | Color | Intouchable items | Composition | Naturalness) and a final decision. See references/naturalness.md for naturalness.
    • Direction correct but insufficient → grade.py supplements (max 3 rounds), each round followed by intensity_check.py output new_version --before=previous_version. If the final decision is DO_NOT_DELIVER, that round must be reverted.
    • G's light/color direction fundamentally wrong → revise the prompt and call G again (max two G calls), rerun finish.py, pick the better of the two versions.
    • Upgrade route: Switch to G + key detail restore (references/detail_restore.md) only when the default route lacks exactly what only G pixels can provide (e.g., reshaped sky layers; not including light beams or apertures not originally present), and G passes the naturalness check. Compare with the default version and pick the better one.
  2. Composition & finishing: Optimize geometric composition per director's brief (references/reframe_rules.md, optional/reframe.py: crop, straighten, perspective correction only); re-run physics_check.py and intensity_check.py (add --genre=museum for museum); finally run optional/n_trim.py to check for highlight overshoot (references/n_trim.md).
  3. Delivery: Deliver only one final image—a native image, plus one line Story: ... | Style: ..., plus the output label. If the host automatically displays G's intermediate result, write "The image above is an intermediate version; below is the final image" before the final output. Display nothing else (references/delivery.md).

Proceed to delivery only when: Subject is a portrait; original cannot be read; T4; user requests analysis only. Explain in one sentence.

4. Mandatory Rules

  • Do not create light, and do not delete light (references/physics.md): Brightening only falls on areas that originally had light. Keep dark backgrounds as originally dark and clean; no light rings, oval bright areas, or spotlight effects appear. Do not suppress real lens flares, reflections, or glaze.
  • Intensity follows user preference (references/intensity.md): The lower bound is the expression baseline and must be reached; the upper bound only removes overshoot. For museum subjects, intensity is judged by the subject (user-selected tier 3).
  • Imperceptible to the naked eye is acceptable: All judgments are based on normal viewing of the full image; 200% zoom is only used to confirm already identified issues.
  • Do not modify or replace tools: If a tool reports an error or is missing, report it honestly; do not write temporary scripts to modify tools.
  • Honest labeling: N results are not labeled as G; checks not performed are not claimed as done.

5. Other Modes (when user requests)

  • "Fine edit": Step 5 produces 2 G directions (one faithful to the original's character, one bolder) plus 1 N direct output, each run through finish.py. Select one based on the director's brief and taste reference, then proceed to Steps 6–8. Slower, more costly.
  • "View receipt": Director's brief, G prompt, parameters, finish.py receipt, check conclusions, and checksums.
  • "View flag log": Cumulative flag log (references/flag_log_template.md).
  • "Validate batch": Per references/validation_protocol.md.
  • User unsatisfied: User says one thing ("too warm", "more clarity"), revise the director's brief and redo; record the preference per Section 3 of taste_profile.md.

6. Upload and Resolution

Only photos uploaded from the phone gallery are supported (user decision, 2026-11-11). The host may compress uploaded photos (measured longest side ~1536 pixels); the default route outputs at the same resolution as the received original. Do not prompt the user to upload via file method.

7. Reference Files

FileContent
references/principles.mdGeneral principles: goals, three principles, invalidation & fallback, flags
references/capability_tiers.mdHost capability classification into four tiers
references/story_style.mdImage reading: story, mood, subject, style direction
references/craft_reading.md, references/craft_prescriptions.md, references/genres/Reading points, diagnosis-to-prescription, six genres
references/director_brief.mdDirector's brief six lines, translation into instructions, seven-item review
references/g_prompt_template.md, references/g_post_check.mdG prompt and post-generation check
references/physics.mdNatural light physics principles and checks
references/intensity.mdUser preference intensity range and calibration
references/n_grade.mdgrade.py parameters and usage
references/naturalness.mdNaturalness: AI-artifact detection and local repair
references/detail_restore.mdUpgrade route key detail restoration
references/reframe_rules.mdGeometric composition optimization
references/n_trim.mdFinal highlight overshoot check
references/taste_profile.md, assets/taste/User-approved outputs and preference records
references/delivery.mdDelivery format and retention boundaries
references/validation_protocol.md, references/flag_log_template.mdBatch validation and flag log

相关技能