From b974350d8bf40b03e55df893520c2f4de4cb578a Mon Sep 17 00:00:00 2001 From: azizur100389 Date: Thu, 1 Oct 2026 19:39:01 +0100 Subject: [PATCH] fix(skills): explain outputs written inside a Git working tree Co-Authored-By: OpenAI Codex --- graphify/skill-agents.md | 2 ++ graphify/skill-aider.md | 2 ++ graphify/skill-amp.md | 2 ++ graphify/skill-claw.md | 2 ++ graphify/skill-codex.md | 2 ++ graphify/skill-copilot.md | 2 ++ graphify/skill-devin.md | 2 ++ graphify/skill-droid.md | 2 ++ graphify/skill-kilo.md | 2 ++ graphify/skill-kiro.md | 2 ++ graphify/skill-opencode.md | 2 ++ graphify/skill-pi.md | 2 ++ graphify/skill-trae.md | 2 ++ graphify/skill-vscode.md | 2 ++ graphify/skill-windows.md | 2 ++ graphify/skill.md | 2 ++ tests/test_skillgen.py | 15 +++++++++++++++ tools/skillgen/expected/graphify__skill-agents.md | 2 ++ tools/skillgen/expected/graphify__skill-aider.md | 2 ++ tools/skillgen/expected/graphify__skill-amp.md | 2 ++ tools/skillgen/expected/graphify__skill-claw.md | 2 ++ tools/skillgen/expected/graphify__skill-codex.md | 2 ++ .../skillgen/expected/graphify__skill-copilot.md | 2 ++ tools/skillgen/expected/graphify__skill-devin.md | 2 ++ tools/skillgen/expected/graphify__skill-droid.md | 2 ++ tools/skillgen/expected/graphify__skill-kilo.md | 2 ++ tools/skillgen/expected/graphify__skill-kiro.md | 2 ++ .../skillgen/expected/graphify__skill-opencode.md | 2 ++ tools/skillgen/expected/graphify__skill-pi.md | 2 ++ tools/skillgen/expected/graphify__skill-trae.md | 2 ++ tools/skillgen/expected/graphify__skill-vscode.md | 2 ++ .../skillgen/expected/graphify__skill-windows.md | 2 ++ tools/skillgen/expected/graphify__skill.md | 2 ++ tools/skillgen/fragments/core/aider.md | 2 ++ tools/skillgen/fragments/core/core.md | 2 ++ tools/skillgen/fragments/core/devin.md | 2 ++ tools/skillgen/gen.py | 8 ++++++++ 37 files changed, 93 insertions(+) diff --git a/graphify/skill-agents.md b/graphify/skill-agents.md index 3f7fade81..78a6d6ee1 100644 --- a/graphify/skill-agents.md +++ b/graphify/skill-agents.md @@ -642,6 +642,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/graphify/skill-aider.md b/graphify/skill-aider.md index 6e459945a..178a1e204 100644 --- a/graphify/skill-aider.md +++ b/graphify/skill-aider.md @@ -745,6 +745,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/graphify/skill-amp.md b/graphify/skill-amp.md index 3f7fade81..78a6d6ee1 100644 --- a/graphify/skill-amp.md +++ b/graphify/skill-amp.md @@ -642,6 +642,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/graphify/skill-claw.md b/graphify/skill-claw.md index 2eca2a295..e7cfa902e 100644 --- a/graphify/skill-claw.md +++ b/graphify/skill-claw.md @@ -645,6 +645,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/graphify/skill-codex.md b/graphify/skill-codex.md index a126527fd..ec0e937a2 100644 --- a/graphify/skill-codex.md +++ b/graphify/skill-codex.md @@ -642,6 +642,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/graphify/skill-copilot.md b/graphify/skill-copilot.md index 2eca2a295..e7cfa902e 100644 --- a/graphify/skill-copilot.md +++ b/graphify/skill-copilot.md @@ -645,6 +645,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/graphify/skill-devin.md b/graphify/skill-devin.md index 9bd1f0dc7..f6ad58b65 100644 --- a/graphify/skill-devin.md +++ b/graphify/skill-devin.md @@ -864,6 +864,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/graphify/skill-droid.md b/graphify/skill-droid.md index b1eeb4925..2a4607384 100644 --- a/graphify/skill-droid.md +++ b/graphify/skill-droid.md @@ -642,6 +642,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/graphify/skill-kilo.md b/graphify/skill-kilo.md index 387563de4..3ea95479d 100644 --- a/graphify/skill-kilo.md +++ b/graphify/skill-kilo.md @@ -645,6 +645,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/graphify/skill-kiro.md b/graphify/skill-kiro.md index 2eca2a295..e7cfa902e 100644 --- a/graphify/skill-kiro.md +++ b/graphify/skill-kiro.md @@ -645,6 +645,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/graphify/skill-opencode.md b/graphify/skill-opencode.md index 144378e65..dfe5dd9e5 100644 --- a/graphify/skill-opencode.md +++ b/graphify/skill-opencode.md @@ -637,6 +637,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/graphify/skill-pi.md b/graphify/skill-pi.md index 2eca2a295..e7cfa902e 100644 --- a/graphify/skill-pi.md +++ b/graphify/skill-pi.md @@ -645,6 +645,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/graphify/skill-trae.md b/graphify/skill-trae.md index 36706e3d7..c3598bcbc 100644 --- a/graphify/skill-trae.md +++ b/graphify/skill-trae.md @@ -643,6 +643,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/graphify/skill-vscode.md b/graphify/skill-vscode.md index 6191a4ca6..4c28b6d68 100644 --- a/graphify/skill-vscode.md +++ b/graphify/skill-vscode.md @@ -641,6 +641,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/graphify/skill-windows.md b/graphify/skill-windows.md index 456244a24..138bdef01 100644 --- a/graphify/skill-windows.md +++ b/graphify/skill-windows.md @@ -673,6 +673,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/graphify/skill.md b/graphify/skill.md index 2eca2a295..e7cfa902e 100644 --- a/graphify/skill.md +++ b/graphify/skill.md @@ -645,6 +645,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/tests/test_skillgen.py b/tests/test_skillgen.py index ab6f94474..0666ad9cc 100644 --- a/tests/test_skillgen.py +++ b/tests/test_skillgen.py @@ -1115,3 +1115,18 @@ def test_windows_skill_writes_marker_files_without_a_bom(): ) assert "New-Object System.Text.UTF8Encoding $false" in core, \ "the BOM-less encoding object must be constructed in the windows render" + + +def test_output_notice_links_team_setup_in_every_host(): + """An in-repository output directory is explained before the final report.""" + for key in gen.load_platforms(): + core, _ = _platform_artifacts(key) + step9 = core.split("## Step 9", 1)[1].split("## ", 1)[0] + assert "inside a Git working tree" in step9, key + assert "https://github.com/Graphify-Labs/graphify#team-setup" in step9, key + assert "Do not stage outputs or change ignore rules automatically." in step9, key + + +def test_output_notice_roundtrip_allowance_is_exact(): + assert gen._is_sanctioned_monolith_diff(gen._OUTPUT_NOTICE_LINE) + assert not gen._is_sanctioned_monolith_diff("Automatically stage all graphify-out files.") diff --git a/tools/skillgen/expected/graphify__skill-agents.md b/tools/skillgen/expected/graphify__skill-agents.md index 3f7fade81..78a6d6ee1 100644 --- a/tools/skillgen/expected/graphify__skill-agents.md +++ b/tools/skillgen/expected/graphify__skill-agents.md @@ -642,6 +642,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/tools/skillgen/expected/graphify__skill-aider.md b/tools/skillgen/expected/graphify__skill-aider.md index 6e459945a..178a1e204 100644 --- a/tools/skillgen/expected/graphify__skill-aider.md +++ b/tools/skillgen/expected/graphify__skill-aider.md @@ -745,6 +745,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/tools/skillgen/expected/graphify__skill-amp.md b/tools/skillgen/expected/graphify__skill-amp.md index 3f7fade81..78a6d6ee1 100644 --- a/tools/skillgen/expected/graphify__skill-amp.md +++ b/tools/skillgen/expected/graphify__skill-amp.md @@ -642,6 +642,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/tools/skillgen/expected/graphify__skill-claw.md b/tools/skillgen/expected/graphify__skill-claw.md index 2eca2a295..e7cfa902e 100644 --- a/tools/skillgen/expected/graphify__skill-claw.md +++ b/tools/skillgen/expected/graphify__skill-claw.md @@ -645,6 +645,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/tools/skillgen/expected/graphify__skill-codex.md b/tools/skillgen/expected/graphify__skill-codex.md index a126527fd..ec0e937a2 100644 --- a/tools/skillgen/expected/graphify__skill-codex.md +++ b/tools/skillgen/expected/graphify__skill-codex.md @@ -642,6 +642,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/tools/skillgen/expected/graphify__skill-copilot.md b/tools/skillgen/expected/graphify__skill-copilot.md index 2eca2a295..e7cfa902e 100644 --- a/tools/skillgen/expected/graphify__skill-copilot.md +++ b/tools/skillgen/expected/graphify__skill-copilot.md @@ -645,6 +645,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/tools/skillgen/expected/graphify__skill-devin.md b/tools/skillgen/expected/graphify__skill-devin.md index 9bd1f0dc7..f6ad58b65 100644 --- a/tools/skillgen/expected/graphify__skill-devin.md +++ b/tools/skillgen/expected/graphify__skill-devin.md @@ -864,6 +864,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/tools/skillgen/expected/graphify__skill-droid.md b/tools/skillgen/expected/graphify__skill-droid.md index b1eeb4925..2a4607384 100644 --- a/tools/skillgen/expected/graphify__skill-droid.md +++ b/tools/skillgen/expected/graphify__skill-droid.md @@ -642,6 +642,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/tools/skillgen/expected/graphify__skill-kilo.md b/tools/skillgen/expected/graphify__skill-kilo.md index 387563de4..3ea95479d 100644 --- a/tools/skillgen/expected/graphify__skill-kilo.md +++ b/tools/skillgen/expected/graphify__skill-kilo.md @@ -645,6 +645,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/tools/skillgen/expected/graphify__skill-kiro.md b/tools/skillgen/expected/graphify__skill-kiro.md index 2eca2a295..e7cfa902e 100644 --- a/tools/skillgen/expected/graphify__skill-kiro.md +++ b/tools/skillgen/expected/graphify__skill-kiro.md @@ -645,6 +645,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/tools/skillgen/expected/graphify__skill-opencode.md b/tools/skillgen/expected/graphify__skill-opencode.md index 144378e65..dfe5dd9e5 100644 --- a/tools/skillgen/expected/graphify__skill-opencode.md +++ b/tools/skillgen/expected/graphify__skill-opencode.md @@ -637,6 +637,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/tools/skillgen/expected/graphify__skill-pi.md b/tools/skillgen/expected/graphify__skill-pi.md index 2eca2a295..e7cfa902e 100644 --- a/tools/skillgen/expected/graphify__skill-pi.md +++ b/tools/skillgen/expected/graphify__skill-pi.md @@ -645,6 +645,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/tools/skillgen/expected/graphify__skill-trae.md b/tools/skillgen/expected/graphify__skill-trae.md index 36706e3d7..c3598bcbc 100644 --- a/tools/skillgen/expected/graphify__skill-trae.md +++ b/tools/skillgen/expected/graphify__skill-trae.md @@ -643,6 +643,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/tools/skillgen/expected/graphify__skill-vscode.md b/tools/skillgen/expected/graphify__skill-vscode.md index 6191a4ca6..4c28b6d68 100644 --- a/tools/skillgen/expected/graphify__skill-vscode.md +++ b/tools/skillgen/expected/graphify__skill-vscode.md @@ -641,6 +641,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/tools/skillgen/expected/graphify__skill-windows.md b/tools/skillgen/expected/graphify__skill-windows.md index 456244a24..138bdef01 100644 --- a/tools/skillgen/expected/graphify__skill-windows.md +++ b/tools/skillgen/expected/graphify__skill-windows.md @@ -673,6 +673,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/tools/skillgen/expected/graphify__skill.md b/tools/skillgen/expected/graphify__skill.md index 2eca2a295..e7cfa902e 100644 --- a/tools/skillgen/expected/graphify__skill.md +++ b/tools/skillgen/expected/graphify__skill.md @@ -645,6 +645,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/tools/skillgen/fragments/core/aider.md b/tools/skillgen/fragments/core/aider.md index 6e459945a..178a1e204 100644 --- a/tools/skillgen/fragments/core/aider.md +++ b/tools/skillgen/fragments/core/aider.md @@ -745,6 +745,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/tools/skillgen/fragments/core/core.md b/tools/skillgen/fragments/core/core.md index c527a1256..8361c4a7e 100644 --- a/tools/skillgen/fragments/core/core.md +++ b/tools/skillgen/fragments/core/core.md @@ -574,6 +574,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/tools/skillgen/fragments/core/devin.md b/tools/skillgen/fragments/core/devin.md index 9bd1f0dc7..f6ad58b65 100644 --- a/tools/skillgen/fragments/core/devin.md +++ b/tools/skillgen/fragments/core/devin.md @@ -864,6 +864,8 @@ If graphify saved you time, consider supporting it: https://github.com/sponsors/ Replace PATH_TO_DIR with the actual absolute path of the directory that was processed. +If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically. + Then paste these sections from GRAPH_REPORT.md directly into the chat: - God Nodes - Surprising Connections diff --git a/tools/skillgen/gen.py b/tools/skillgen/gen.py index 6c30a0847..51d3ed0f1 100644 --- a/tools/skillgen/gen.py +++ b/tools/skillgen/gen.py @@ -1180,6 +1180,13 @@ def _is_watch_injection_fix_line(line: str) -> bool: ) +_OUTPUT_NOTICE_LINE = 'If the actual output directory is inside a Git working tree, tell the user that Graphify created or updated the output directory at its actual absolute path and link to [Team setup](https://github.com/Graphify-Labs/graphify#team-setup) for sharing outputs or keeping them local. Verify the working-tree boundary using the actual output directory when composing the notice. Do not stage outputs or change ignore rules automatically.' + +def _is_output_notice_line(line: str) -> bool: + """Allow only the output-directory notice added for #3941.""" + return line.strip() == _OUTPUT_NOTICE_LINE + + # Every line that may differ between a rendered monolith and its pristine v8 # baseline. Each predicate documents one sanctioned change-class; a blank line is # allowed because the multi-line fix blocks insert spacing. Anything else failing @@ -1203,6 +1210,7 @@ def _is_watch_injection_fix_line(line: str) -> bool: _is_community_label_export_fix_line, _is_step1_root_marker_fix_line, _is_watch_injection_fix_line, + _is_output_notice_line, )