[PR #2423] [CLOSED] chore: add Claude Code project setup #5218

Closed
opened 2026-10-31 01:04:53 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/morluto/rea/pull/2423
Author: @EnmanyProject
Created: 10/13/2026
Status: ❌ Closed

Base: main ← Head: chore/claude-code-setup


📝 Commits (1)

  • 17d8d4c chore: add Claude Code project setup

📊 Changes

7 files changed (+110 additions, -0 deletions)

View changed files

➕ .claude/hooks/format-edited-file.mjs (+38 -0)
➕ .claude/settings.json (+51 -0)
➕ .claude/skills/rea-changelog-update (+1 -0)
➕ .claude/skills/rea-tool-design (+1 -0)
➕ .claude/skills/reverse-engineer-anything (+1 -0)
📝 .gitignore (+2 -0)
➕ CLAUDE.md (+16 -0)

📄 Description

Summary

Contributors using Claude Code currently get no repository guidance or skills: Claude Code reads CLAUDE.md and .claude/, not AGENTS.md or .agents/skills/. This adds a minimal project setup so Claude Code follows the same rules as other agents. No related issue; contributor-tooling proposal.

Change and scope

  • CLAUDE.md imports @AGENTS.md (single source of truth) plus a few Claude Code notes.
  • .claude/skills/* symlink to .agents/skills/*.
  • .claude/settings.json: allows documented dev commands and read-only git; asks before git push / npm install; denies npm publish, force push, .env* reads.
  • .claude/hooks/format-edited-file.mjs: PostToolUse hook running pinned oxfmt on edited files; no-ops without deps, never blocks.
  • .gitignore: ignores .claude/settings.local.json, .claude/worktrees/.

Not included: any runtime, rea setup, or package change (.claude/ is not in package.json#files).

  • Documentation or usability only; no target interaction.

Validation performed

  • Hook fed a PostToolUse payload for an unformatted .ts file — reformatted by oxfmt 0.72.0, exit 0
  • oxfmt --check on the new files — all formatted
  • .claude/settings.json parses as JSON

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/morluto/rea/pull/2423 **Author:** [@EnmanyProject](https://github.com/EnmanyProject) **Created:** 10/13/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `chore/claude-code-setup` --- ### 📝 Commits (1) - [`17d8d4c`](https://github.com/morluto/rea/commit/17d8d4c57d935d304f916f043c9425cf7e73eb8b) chore: add Claude Code project setup ### 📊 Changes **7 files changed** (+110 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `.claude/hooks/format-edited-file.mjs` (+38 -0) ➕ `.claude/settings.json` (+51 -0) ➕ `.claude/skills/rea-changelog-update` (+1 -0) ➕ `.claude/skills/rea-tool-design` (+1 -0) ➕ `.claude/skills/reverse-engineer-anything` (+1 -0) 📝 `.gitignore` (+2 -0) ➕ `CLAUDE.md` (+16 -0) </details> ### 📄 Description ## Summary Contributors using Claude Code currently get no repository guidance or skills: Claude Code reads `CLAUDE.md` and `.claude/`, not `AGENTS.md` or `.agents/skills/`. This adds a minimal project setup so Claude Code follows the same rules as other agents. No related issue; contributor-tooling proposal. ## Change and scope - `CLAUDE.md` imports `@AGENTS.md` (single source of truth) plus a few Claude Code notes. - `.claude/skills/*` symlink to `.agents/skills/*`. - `.claude/settings.json`: allows documented dev commands and read-only git; asks before `git push` / `npm install`; denies `npm publish`, force push, `.env*` reads. - `.claude/hooks/format-edited-file.mjs`: `PostToolUse` hook running pinned `oxfmt` on edited files; no-ops without deps, never blocks. - `.gitignore`: ignores `.claude/settings.local.json`, `.claude/worktrees/`. Not included: any runtime, `rea setup`, or package change (`.claude/` is not in `package.json#files`). - [x] Documentation or usability only; no target interaction. ## Validation performed - Hook fed a `PostToolUse` payload for an unformatted `.ts` file — reformatted by `oxfmt` 0.72.0, exit 0 - `oxfmt --check` on the new files — all formatted - `.claude/settings.json` parses as JSON 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 01:04:53 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
morluto/rea#5218
No description provided.