05_development-rules

A set of Cursor editor rules for planning development work, recording tasks, resuming interrupted work, and checking tests and documentation.

In plain words
What is it for?
Creating plan and task files, updating them as work progresses, formatting and checking Rust code, running tests, and preparing a pull request.
Why use it?
It gives a project a repeatable process for starting, continuing, and finishing coding tasks.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/morooka-akira/aicm/05_development-rules
Clone the repo
git clone --depth 1 https://github.com/morooka-akira/aicm

Made for: Cursor.

Per session 674 This file is loaded in full into every session.
When invoked 674 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00674 $0.00674
Opus 5 $0.00337 $0.00337
Sonnet 5 $0.00135 $0.00135
Haiku 4.5 $0.00067 $0.00067

Measured 2d ago against content hash d2f8d1d3907f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

05_development-rules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/05_development-rules.mdc · 53 lines

What it actually says

開発ルール

タスクの進め方

    1. 作業開始時に、ai-works/plans ディレクトリに yyyy-mm-dd-<work name>_plan.md を作成し、設計方針、完了要件をまとめてください
    1. 1のドキュメントに関してのTODOタスク一覧を ai-works/todos ディレクトリに yyyy-mm-dd-<work name>_todo.md を作成してください。
    1. TODOに従って、作業を実行し、1つのTODOを完了させたら、必ずドキュメントを更新してください

中断からの再開

  • 作業のコンテキストが足りない場合は、yyyy-mm-dd-<work name>_plan.md, yyyy-mm-dd-<work name>_todo.md を一度読み込み作業を再開してください
  • どのドキュメントを読めばよいか分からない場合は、作業を一度中断し、指示を仰いでください

タスク完了時

  • rust コードに修正がある場合は、cargo fmt, cargo clippy を実行してください
    • cargo clippy は warning でも 修正してください
  • 修正内容が、 @README.md @docs/ の内容と乖離がある場合は、ドキュメントの更新を行ってください
  • yyyy-mm-dd-<work name>_plan.md の内容と実装に乖離がないか確認してください
  • yyyy-mm-dd-<work name>_todo.md のタスクが全て完了しているか確認し、更新してください
  • ルールに従って、PR を作成
    • デフォルトブランチは main
    • 作業開始時に、必ずデフォルトブランチからブランチを分けて作業すること
    • 作業完了後は、gh コマンドで PR を作成すること

テスト要件

  • 必須: 各モジュールは Rust 標準テストフレームワークでテストを作成すること
  • カバレッジ: 主要な機能とエラーパスのテストを含めること
  • 作業完了: 作業終了時は必ずテストが通ることを確認すること

テスト実行例

# 全テスト実行
cargo test

# 特定のテストモジュール実行
cargo test config
cargo test agents::cursor

# テストカバレッジ(tarpaulin要インストール)
cargo install cargo-tarpaulin
cargo tarpaulin --out html

# 統合テスト実行
cargo test --test integration_test
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 53 lines · 674 tokens per session scan A d2f8d1d3907f

Subscribe to this mod's changes

05_development-rules is a cursor rule published in the GitHub repository morooka-akira/aicm (6 stars, last pushed 7d ago), licensed MIT. It adds 674 tokens to every session, about $0.0034 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.