Skip to content

feat(repo): add --lang option to repo create - #470

Merged
furedea merged 2 commits into
mainfrom
feat/add-lang-option-to-repo-create
Nov 15, 2026
Merged

furedea merged 2 commits into
mainfrom
feat/add-lang-option-to-repo-create

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

repo create に --lang <language> を追加する.言語から標準テンプレートへの対応表を project-setup スキルの文章から repo に移し,エージェントが型付きの引数でプロジェクトを作れるようにする.

Refs furedea/agent-config#169

変更内容

  • --lang を --template の対応値に展開する(python / typescript / rust / go / tex / minimal → furedea/template-*).展開後は --template を渡した場合と同じ経路(テンプレート待機,apply_template,configure)を通る.
  • --lang <v> と --lang=<v> の両方を受け付ける.
  • --lang と --template/-p の併用は,両方のオプション名を示すエラーにする.
  • 未対応の言語(値の欠落を含む)は,対応する値を列挙したエラーにする.
  • create の usage と例を --lang に更新し,README.md に説明を追加した.
  • 他のオプションの挙動は変えていない.

構成

github/repo.py が file-length の上限(500 行)に達していたため,責務ごとに分割した(別コミット,挙動は不変).

  • refactor(repo): review-token 関連(Reviewer,保管,ローテーション,Actions secret 登録)を github/review_token.py に移動した.repo.py は -I 下でスクリプトのディレクトリが sys.path に入らないため,importlib でパス指定して読み込む.
  • feat(repo): --lang の追加.

検証

  • pytest tests/github: 114 件通過(対応表,両スペル,排他,未知の言語,gh 呼び出しとテンプレート待機を含む).
  • ruff format / ruff check / ty check: 問題なし.
  • python3 -I -B github/repo.py で review-token --help と create --help が動作することを確認した.

🤖 Generated with Claude Code

@furedea

furedea commented Nov 15, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T11:27:20.234329Z c566992 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

Review summary

No blocking findings, and no inline comments.

  • --lang expansion (expand_language): both spellings work. A missing or empty value is rejected with the list of supported languages. Using it together with --template/-p (in either spelling) is rejected before anything is sent to GitHub. After expansion, the existing template path (waiting for the template's default branch, then apply_template) runs unchanged. Unit and CLI tests cover the mapping, both spellings, the mutual exclusion, unknown languages, and that invalid input makes no remote calls.
  • Moving the review-token code into github/review_token.py looks behavior-preserving. Loading it by file path still works under python3 -I, because the Nix wrapper runs repo.py from the dotfiles checkout, so the sibling file is always next to it. The existing CLI-level review-token tests still exercise the moved code.

I couldn't run the test suite in this environment (running it needed approval), so this review comes from reading the code.

🤖 Generated with Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: c566992c45

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@furedea
furedea merged commit 27fc8a6 into main Nov 15, 2026
21 checks passed
@furedea
furedea deleted the feat/add-lang-option-to-repo-create branch November 15, 2026 11:32
furedea added a commit to furedea/agent-config that referenced this pull request Nov 15, 2026
…ent-cycle (#211)

Refs #169

## 概要

- `issue-workflow`,`git-workflow`,`project-setup` を 1 つの
`development-cycle` スキルに統合する(Issue #169 項目 D).内容は移動のみで,ルールは変えない.
- `SKILL.md` は地図(段階,参照への振り分け表,認可ルール).認可ルールの重複記述を 1 箇所にまとめた.
- `tsdd` と `herdr-delegation` は別スキルのまま.理由は ADR-0024 に記録した.

## 構成

```text
development-cycle/
├── SKILL.md
└── references/
    ├── start.md            (project-setup/SKILL.md)
    ├── repository_setup.md (project-setup/references)
    ├── dev_environment.md  (project-setup/references)
    ├── issue_plan.md       (issue-workflow/SKILL.md)
    ├── branches.md  commits.md  delivery.md  stacked_prs.md (git-workflow/references)
```

## ルール変更(許可された 3 点のみ)

- [ ] 認可ルールの重複記述(`git-workflow` の Operating Rules
と要求別の段落,`issue-workflow` の Scope と計画承認)を `SKILL.md` の Authorization に統合
- [ ] 言語とテンプレートの表を `repo create --lang
<python|typescript|rust|go|tex|minimal>`
に置換(furedea/dotfiles#470).言語と公開範囲の判断,private を既定,要件で決まらないことだけ質問,は維持
- [ ] 「リポジトリに `CLAUDE.md` を置かない.既存の `CLAUDE.md` は `AGENTS.md` へ移す」ルールを
`source-of-truth` と `start.md` から削除(ユーザー指示)

## Before / After(description の分析であり,実行の観測ではない)

| 依頼 | Before | After |
| --- | --- | --- |
| 「バグを直して PR を出して」 | `git-workflow`(+ `issue-workflow`,`tsdd`) |
`development-cycle`(+ `tsdd`) |
| 「これをコミットして」 | `git-workflow` | `development-cycle` |
| 「X の Issue を作って」 | `issue-workflow` | `development-cycle` |
| 「X のテスト設計を手伝って」 | `tsdd` | `tsdd`(`development-cycle` は必須でない) |
| 「新しい Python プロジェクトを始めて」 | `project-setup`(description が限定的) |
`development-cycle`(start 段階から) |
| 「このプランを Herdr 経由で Codex セッションでレビューして」 | `herdr-delegation`(+ `herdr`)
| 変更なし |

## 検証

- [x] `tests/test_workflow_skill_layout.py`(claude と codex
のレンダリング,リンクと見出しの整合)
- [x] `uv run pytest tests`: 4879
passed.`test_session_end_skips_a_record_locked_past_its_wait_limit` が 1
回だけ負荷で失敗したが,単独再実行は通過
- [x] ruff check / format,lefthook

<details>

- ADR:
`docs/adr/0024_merge_issue_git_and_setup_workflows_into_one_development_cycle_skill.md`
- 参照更新: `agents/AGENTS.md`(Development Workflow を 1
行に),`herdr-delegation`,`tsdd`,`source-of-truth`,各 style
スキル,`docs/DESIGN*.md`,`tests/`
- ADR-0023 の本文は変更していない

</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: furedea <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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