.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/portfolio-v3 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 intentdocumentation
Creates or updates docs/spec.md — the project's functional requirements. Load when defining new features, when requirements have changed, or when docs/spec.md does not exist. Covers what to write, what to omit, and how to express requirements in a way that is verifiable and agent-friendly.
development
Bootstraps project documentation for an existing repository by reading the codebase, README, tests, and package metadata, then creates or updates docs/overview.md, docs/spec.md, and ADRs when significant architectural decisions are discovered. Use when asked to document a repo, extract project purpose, write overview/spec docs, review an existing codebase, or capture architecture decisions from source.
development
Creates or updates docs/overview.md — the project's purpose and background. Load when starting a new project, when the project's goals or context have changed, or when docs/overview.md does not exist. Covers what to write, what to omit, and how to keep the document agent-friendly.
documentation
Implements a new feature using docs-first delivery, boundary-driven structure, and skeleton-first execution. Load when adding a route, feature, or new user-visible behavior.