本文へ移動
cccskills
無料GitHub で公開日本語紹介

arch

FlexPriceのディレクトリ構成や依存関係、主要な処理フローを資料に沿って把握し、変更の影響範囲や設計上の注意点を調べるスキルです。

原文原文の説明を見る

FlexPrice repo architecture — docs/ layering, deps, hotspots, flows, Graphify. Say arch, repo architecture, FLEXPRICE structure, onboarding codebase.

flexprice/flexpriceスター 6,876(GitHub 6,876 + cccskills 0)

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • FlexPriceの構成を把握したいとき
  • 機能の呼び出し経路を追いたいとき
  • リファクタリングの影響を調べたいとき
  • 構成変更後の資料を更新したいとき

日本語での紹介

できること

FlexPriceの構成資料を手がかりに、コードの置き場所や主要な依存関係、処理の流れを把握します。cmd/、internal/、ent/などを調べる際、機能からドメイン、リポジトリ、サービス、APIハンドラーへと層をたどり、KafkaやTemporalを介した非同期処理も確認します。既存のアーキテクチャ資料を優先して参照し、変更が複数の層やデプロイ形態に及ぶかを整理します。構造変更後に更新すべき資料の候補も示します。

こんなときに便利

FlexPriceのコードベースに初めて参加し、全体像をつかみたいときに役立ちます。機能の呼び出し経路を追いたい場合や、リファクタリング前に依存関係や影響範囲を確認したい場合にも向いています。

使い方の例

  • 「この機能がどの層を通って処理されるか調べてください」
  • 「この変更で関係するKafkaやTemporalの処理を確認してください」
  • 「構造変更のあとに更新すべきアーキテクチャ資料を挙げてください」

注意点

FlexPrice向けのスキルです。リポジトリ内の資料とコードに差異がある場合は、該当するMarkdown資料の更新も扱います。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(1)

  • SKILL.md3.7 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

arch — repository architecture

Use when navigating cmd/, internal/, ent/ (billing, metering, Temporal, Kafka, integrations).

Other repos: repo-architecture-intelligence (~/.cursor/skills/repo-architecture-intelligence/SKILL.md).

Sibling skills: README (apitest, devenv, godev, openapi, pr, gh, compose).

Canonical documentation map

DocPurpose
docs/REPO_MAP.mdDirectory census, deployment modes, major systems
docs/ARCHITECTURE.mdPrinciples, infra choices, layering, conventions
docs/DEPENDENCY_GRAPH.mdFan-in/out, messaging DAG, coupling notes
docs/HOTSPOTS.mdLarge files & structural risks
docs/FLOWS/*.mdEnd-to-end narratives for critical paths

Rule: Prefer these artifacts over improvised mental models. If docs drift from code during your change, patch the relevant markdown.

How to analyze architecture quickly

  1. Identify deployment surface — cmd/server/main.go + deployment.mode. Determine whether edits affect API-only paths, Kafka consumers, or Temporal workers (registerRouterHandlers & startTemporalWorker branches).
  2. Locate the bounded context — map feature → domain package (internal/domain/<ctx>) → repository impl (repository/ent vs repository/clickhouse) → service (internal/ee/service/<file>) → handler (internal/api/v1).
  3. Check async edges — list Kafka topics touched (search config keys under internal/config) and Temporal workflow names (internal/temporal/workflows).
  4. Assess coupling — if you need half of ServiceParams, consider narrowing new code’s dependencies deliberately.

How to reason about dependencies

  • Follow canonical direction: handlers → services → (domain interfaces + repos/integrations) → storage/IO (see diagram in docs/DEPENDENCY_GRAPH.md).
  • Watch logical cycles: Temporal registration reconstructs some services independently of Fx (internal/temporal/registration.go).
  • Question globals: prefer replacing new uses of GetGlobalTemporalService with injected interfaces when editing those call sites safely.

How to persist repository memory

After meaningful structural edits:

Change typeUpdate
New package / major subsystemREPO_MAP.md (+ ARCHITECTURE.md boundaries if philosophical)
New topic/consumer or couplingDEPENDENCY_GRAPH.md + YAML pointer
Emerging risk/god file growthHOTSPOTS.md entry
Flow behavior changeRelevant docs/FLOWS/<name>.md

Treat docs as durable context for future automation and onboarding.

How to refactor safely

  1. Freeze scope — isolate one bounded context or one pipeline stage.
  2. Add or extend characterization tests closest to seams you cut (heavy services deserve targeted tests despite size).
  3. Avoid splitting multi-thousand-line files blindly — extract cohesive types/helpers with stable interfaces (subscription.go, invoice.go, billing.go).
  4. For schema changes — always make generate-ent + deliberate migration rollout; annotate operational risk if backfill jobs required.
  5. For messaging — verify consumer group uniqueness and DLQ configuration when adjusting handler semantics (internal/pubsub/router).

Anti-patterns to flag during review

  • Domain importing repositories or Gin types.
  • Handlers querying Ent directly.
  • Silent topic renames without consumer coordination.
  • New global singletons hiding dependencies.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

apitest

無料概要あり

ローカルAPIに認証情報付きのHTTPリクエストを送り、疎通確認からエンドポイント別の結果整理まで進めるQAスキルです。

  • ローカルAPIの疎通を確認したいとき
  • 認証付きエンドポイントを調べたいとき
  • 多数のAPIテストを分担したいとき
flexprice/flexprice6,8762026年10月29日 更新

compose

無料概要あり

Docker ComposeやMakefileを使ったFlexPriceの開発環境の起動・停止、Kafka UIの追加、サービスログの確認を案内します。

  • 開発環境を初回セットアップしたいとき
  • 必要な基盤サービスだけ起動したいとき
  • Kafka UIを開発中に使いたいとき
flexprice/flexprice6,8762026年10月29日 更新

context-sync

無料概要あり

コード変更が各階層のAGENTS.mdに反映されているかを確認し、差分に応じた更新内容の作成と同期状態の管理を支援します。

  • AGENTS.mdの同期状態を確認したいとき
  • コード変更後に説明ファイルを更新したいとき
  • 特定の階層だけ同期したいとき
flexprice/flexprice6,8762026年10月29日 更新

devenv

無料概要あり

環境変数とDocker Composeを確認し、ローカル実行とRDSなどの共有サービスを組み合わせた開発環境の準備や起動方法を案内します。

  • ローカルとRDSを組み合わせたいとき
  • APIやconsumerをローカル起動したいとき
  • マイグレーション前に接続先を確認したいとき
flexprice/flexprice6,8762026年10月29日 更新

gh

無料概要あり

GitHub CLIでプルリクエストやIssueを確認し、チェックの失敗ログを調べるほか、変更内容を整理してプルリクエストを作成します。

  • CLIからIssueやPRを確認したいとき
  • CIチェックの失敗原因を調べたいとき
  • 変更を整理してPRを作成したいとき
flexprice/flexprice6,8762026年10月29日 更新

godev

無料概要あり

Goのコード整形、静的チェック、競合状態を調べるテスト、プロジェクトのテスト実行を順に進め、変更したコードの確認を支援します。

  • Goの変更後にチェックしたいとき
  • 特定パッケージをrace付きでテストしたいとき
  • 全テストを実行したいとき
flexprice/flexprice6,8762026年10月29日 更新

flexprice のスキルをすべて見る

このスキルの問題を報告する