.cursor/skills/behavior/SKILL.md
Creates or updates docs/behavior.md — a lightweight summary of expected behavior per feature or page. Load when adding a new feature, clarifying intent of an existing one, or aligning behavior with test coverage. Assumes code and tests are the source of truth; this document is supplementary.
npx skillsauth add poko8nada/pj_docs behaviorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Code and tests are the source of truth. This document supplements them.
Use .cursor/skills/app-testing/SKILL.md when deciding which boundary should own
the test and which test type fits best.
Use this skill to record that decision in docs/behavior.md as:
未作成, or 不要behavior records the mapping.
app-testing decides the testing strategy.
unit, feature, component, e2e未作成 if coverage is intended but not implemented yet, or 不要 if no test is needed不要, add a brief reason in 補足app-testing before writing the entryWrite this document in Japanese.
---
last-validated: YYYY-MM-DD
---
# Behavior
## [Feature or Page Name]
- **テストタイプ**: `unit` / `feature` / `component` / `e2e` / `不要` を 1 つ以上
- **テストファイル**: `path/to/test-file` を 1 つ以上 / `未作成` / `不要`
- **補足**: [required only when `テストファイル` is `不要`]
- **Happy path**:
- [input] → [expected outcome]
- **Failure path**:
- [failure condition] → [expected outcome]
## ユーザーログイン
- **テストタイプ**: `feature`
- **テストファイル**: `app/routes/login/index.test.tsx`
- **正常系**:
- 正しい認証情報 → セッション発行・/dashboard へ遷移
- **異常系**:
- 誤った認証情報 → エラーメッセージ表示・リダイレクトなし
---
## ルーティング定義
- **テストタイプ**: 不要
- **テストファイル**: 不要
- **補足**: next.config および app/ ディレクトリ構造で自明
---
## データ取得 API(/api/items)
- **テストタイプ**: `feature`
- **テストファイル**: `app/routes/api/items.test.ts`
- **正常系**:
- 認証済みリクエスト → 200 + アイテム一覧
- **異常系**:
- 未認証 → 401
- DB接続失敗 → 500(ログにのみ記録、レスポンスには出さない)
last-validated when you verify the content still reflects intenttools
Composite Skill. This skill is used for project planning. Users request that a project plan be created, particularly during the initial stages.
documentation
Core Skill. This skill is for document creation. User ask you to create planning documents, such as requirement and task breakdown.
development
Core Skill. Next.js 15+ App Router architecture guidelines including component patterns, state management with Zustand, server actions, and project structure. Use when developing Next.js applications.
development
Core Skill. HonoX architecture guidelines including file-based routing, Islands pattern, component types, performance optimization, and best practices for full-stack development.