https://github.com/suwa-sh/claude-code-rdra-rev
Reverse engineer a draft RDRA model from an existing repository using a custom slash command in Claude Code.
https://github.com/suwa-sh/claude-code-rdra-rev
claude-code rdra requirements reverse-engineering slash-commands
Last synced: 30 days ago
JSON representation
Reverse engineer a draft RDRA model from an existing repository using a custom slash command in Claude Code.
- Host: GitHub
- URL: https://github.com/suwa-sh/claude-code-rdra-rev
- Owner: suwa-sh
- License: mit
- Created: 2025-07-06T17:00:23.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-07-08T08:26:36.000Z (9 months ago)
- Last Synced: 2025-10-30T14:43:23.636Z (5 months ago)
- Topics: claude-code, rdra, requirements, reverse-engineering, slash-commands
- Homepage:
- Size: 107 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# claude-code-rdra-rev
既存のリポジトリから**RDRAモデルのたたき台**をリバースエンジニアリングする**claude code カスタムスラッシュコマンド**です。
- [RDRA 公式サイト](https://www.rdra.jp/)
- [claude code カスタムスラッシュコマンド](https://docs.anthropic.com/ja/docs/claude-code/slash-commands#%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E3%82%B9%E3%83%A9%E3%83%83%E3%82%B7%E3%83%A5%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89)
## ■出力サンプル
git submoduleに含めている「[増田さんのRDRA2.0 図書館システム実装サンプル: system-sekkei/library](https://github.com/system-sekkei/library)」を対象に分析した結果です。
- `/rdra-rev`
- [分析サマリー](./docs/rdra-rev/00-rdra-summary.md)
- [結果を転記したRDRA定義分析シート](https://docs.google.com/spreadsheets/d/1ycV-aucZ7na0z9yNc7cnx0mm_LKeKxgvvwPuTjXtTgQ)
- `/rdra-to-design`
- [分析サマリー](./docs/rdra-to-design/01-summary.md)
## ■/rdra-rev
既存のドキュメント、ソースコード、設定から、RDRAモデル、RDRA定義分析シートのたたき台を生成します。
### ●インストール
```sh
curl -Lo \
~/.claude/commands/rdra-rev.md \
https://raw.githubusercontent.com/suwa-sh/claude-code-rdra-rev/refs/heads/main/.claude/commands/rdra-rev.md
```
### ●利用方法
- 前提
- 分析対象のリポジトリがgit clone済み
- リポジトリの親ディレクトリで`claude code`を起動
```sh
cd path/to/repo-parent
claude
```
- カスタムスラッシュコマンドに、対象リポジトリのディレクトリを指定
```txt
/rdra-rev ./repo
```
- 複数リポジトリに分割している場合
- `/rdra-rev ./frontend ./backend ./infra`
- 実行イメージ
- 
#### ▷中断からの再開
- `--continue`オプションを追加して実行してください
```txt
/rdra-rev --continue ./repo
```
- `docs/rdra-rev/checklist.md`の進捗に合わせて、処理を再開します。
- 実行イメージ
- 
#### ▷出力内容
- あくまで**たたき台**です。コードにない部分はLLMが推測した結果です。
- 各種RDRAモデルのたたき台
- 
- 
- 
- RDRAシートのたたき台
- 
- ディレクトリ構成
```txt
./docs
└── rdra-rev
├── 00-rdra-summary.md
├── checklist.md
├── consistency-check-report.md
├── phase1-overview
│ ├── 01-multi-directory-analysis.md
│ ├── 02-system-context.md
│ └── 03-stakeholders.md
├── phase2-business
│ ├── 04-business-usecase.md
│ ├── 05-business-flow.md
│ └── 06-variations-conditions.md
├── phase3-system
│ ├── 07-uc-complex.md
│ ├── 08-information-model.md
│ └── 09-state-model.md
└── rdra-sheets
├── actor-sheet.md
├── buc-sheet.md
├── condition-sheet.md
├── information-sheet.md
├── state-sheet.md
├── system-sheet.md
└── variation-sheet.md
```
### ●既知の課題
- mermaidの文法エラーになることがある
- RDRA定義分析シート.情報の属性カラムに対応していない
- RDRA定義分析シートで不整合が出る
## ■/rdra-to-design
`/rdra-rev`の結果と、既存のドキュメント、ソースコード、設定から、設計ドキュメントのたたき台を生成します。
### ●インストール
```sh
curl -Lo \
~/.claude/commands/rdra-to-design.md \
https://raw.githubusercontent.com/suwa-sh/claude-code-rdra-rev/refs/heads/main/.claude/commands/rdra-to-design.md
```
### ●利用方法
- 前提
- rdra-revが実行済み
- リポジトリの親ディレクトリで`claude code`を起動
```sh
cd path/to/repo-parent
claude
```
- カスタムスラッシュコマンドに、対象リポジトリのディレクトリを指定
```txt
/rdra-to-design ./docs/rdra-rev ./repo
```
- 複数リポジトリに分割している場合
- `/rdra-to-design ./docs/rdra-rev ./frontend ./backend ./infra`
- 実行イメージ
- 
#### ▷中断からの再開
- `--continue`オプションを追加して実行してください
```txt
/rdra-to-design --continue ./docs/rdra-rev ./repo
```
- `docs/rdra-to-design/00-checklist.md`の進捗に合わせて、処理を再開します。
#### ▷出力内容
- あくまで**たたき台**です。コードにない部分はLLMが推測した結果です。
- C4モデル
- 
- ドメインモデル
- 
- 
- シーケンス
- 
- ディレクトリ構成
```txt
./docs
└── rdra-to-design
├── 01-summary.md
├── 02-repository-structure.md
├── 03-architecture.md
├── 04-domain-model.md
├── 05-features.md
├── 06-environments.md
├── 07-tests.md
├── 08-deploy.md
├── 09-ops.md
└── checklist.md
```
### ●既知の課題
- mermaidの文法エラーになることがある