Skip to content

0.1.29: every ck page names its project - #68

Merged
d6veteran merged 1 commit into
mainfrom
d6-agent/ck-0-1-29-project-name-1ced59
Nov 7, 2026
Merged

d6veteran merged 1 commit into
mainfrom
d6-agent/ck-0-1-29-project-name-1ced59

Conversation

@d6veteran

Copy link
Copy Markdown
Contributor

A d20mob staged plan was published as https://claude.ai/artifact/4g7KdMYiykorn35HJjmVR1, titled "Phase 9, the ten: staged plan" under the banner line "Code Katz · review page". Nothing on the page said d20mob, so it could not be told apart in the artifact list. The review page skill asked callers for --title "<product>: <document>", but nothing enforced it, and /ck:plan passed a title with no product.

What changes

  • Review pages. scripts/render-review.py finds the project's name itself and shows it in the banner line ("d20mob · review page") and at the front of the <title> and heading ("d20mob: Phase 9, the ten: staged plan"). It skips the prefix when the title already starts with the name, so /ck:claude-md's ": How we work" is unchanged. The name is the main checkout's folder of the git repository that holds --in (git rev-parse --path-format=absolute --git-common-dir, then its parent), so a page built in a worktree still says d20mob; outside a repository it is the file's folder. --project overrides it. No caller changes.
  • What the grep found. One git grep across skills/, workflows/ and scripts/ found two other ways ck publishes a page:
    • scripts/render-gallery.py, for brand galleries, design galleries and chosen.html, had "Code Katz · gallery review" and "Code Katz · chosen design". It now names the project the same way, from the repository that holds the variants JSON, with the same --project flag. The gallery contract says so. workflows/brand.js and workflows/design-round.js call it and need no change.
    • The /ck:do mockup, which a persona writes by hand and the session publishes. Its rules now ask for the <title> <project>: <what you drew> and one line above the mockup, <project> · mockup, with the session filling in the name.
    • Nothing else publishes a page. Kai's own mockups are shared as file links, not published.
  • scripts/project_name.py holds the lookup both renderers use.

Tests

  • tests/run.sh: 505 passed, 0 failed. One new test renders a page from a file in a temporary repository named demo and finds demo in its title and banner, then x with --project x.
  • Checked by hand: a page built from a worktree of demo says demo; the gallery fixture rendered here says ck.

🤖 Generated with Claude Code

A d20mob staged plan was published as "Phase 9, the ten: staged plan"
under the banner line "Code Katz · review page", so nothing on the page
said d20mob and Will could not tell it apart in his artifact list.

render-review.py now finds the project's name itself: the main
checkout's folder of the git repository that holds --in (from
--git-common-dir, so a worktree still names the project), or the file's
folder outside a repository. The name leads the banner line and the
title, unless the title already starts with it. --project overrides it.
Callers need no change.

A git grep across skills/, workflows/ and scripts/ found two other ways
a page is published: render-gallery.py (brand and design galleries and
chosen.html), which now names the project the same way, and the /ck:do
mockup, whose rules now ask for the project's name in its title and in
one line above the mockup. scripts/project_name.py holds the lookup.
One test renders from a temporary repository named demo, then with
--project x.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@d6veteran
d6veteran merged commit f616371 into main Nov 7, 2026
1 check passed
@d6veteran

Copy link
Copy Markdown
Contributor Author

ck cost for this pull request: $1.87, built by 0.1.29: every ck page names its project.

0.1.29: every ck page names its project cost summary

Lane Model Input Output Cache write Cache read Total
main opus-5-5 60 · $0.00 18k · $0.35 102k · $0.81 3.5M · $0.70 3.6M · $1.87
All 60 · $0.00 18k · $0.35 102k · $0.81 3.5M · $0.70 3.6M · $1.87

Prices from https://platform.claude.com/docs/en/about-claude/pricing.md, as of 2026-11-06.
Claude Code wrote no cost record for this session, so background calls are not counted.

@d6veteran
d6veteran deleted the d6-agent/ck-0-1-29-project-name-1ced59 branch November 7, 2026 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant