project-onboarding-rule

project-onboarding-rule is a cursor rule for Cursor from brunogama/ios-cursor-rules. It costs 1,324 tokens per session, scanned A, original, MIT.

A rule for bringing an existing software project into an AI-assisted development workflow.

In plain words
What is it for?
Use it to inspect a project, catalog its documentation, identify its main components, and create folders for specifications, tasks, notes, documentation, rules, and reports.
Why use it?
It organizes project information and work records so an agent can understand an unfamiliar codebase and track future changes.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions 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/brunogama/ios-cursor-rules/project-onboarding-rule
Clone the repo
git clone --depth 1 https://github.com/brunogama/ios-cursor-rules

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for project-onboarding-rule

README.md
[![agentmods](https://agentmods.dev/badge/rules/brunogama/ios-cursor-rules/project-onboarding-rule.svg)](https://agentmods.dev/rules/brunogama/ios-cursor-rules/project-onboarding-rule)
Your own site
<a href="https://agentmods.dev/rules/brunogama/ios-cursor-rules/project-onboarding-rule"><img src="https://agentmods.dev/badge/rules/brunogama/ios-cursor-rules/project-onboarding-rule.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,324 This file is loaded in full into every session.
When invoked 1,324 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.1 $0.01324 $0.01324
Opus 5 $0.00662 $0.00662
Sonnet 5 $0.00265 $0.00265
Haiku 4.5 $0.00132 $0.00132

Measured 6d ago against content hash e77613ff7d7c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

project-onboarding-rule 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 6d 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/project-onboarding-rule.mdc · 196 lines

How it starts

The opening of the file, as written. The whole thing — 196 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Project Onboarding System

Rule for automatically analyzing existing projects and integrating them into the AI-driven development workflow.

actions:

  • type: react conditions:

    • pattern: "onboard project|project onboard" action: |

    Comprehensive onboarding of an existing project

    I'll perform a complete project onboarding by:

    1. Creating the required directory structure:

      • .cursor/specs/ - Requirements and specifications (managed by specification_management rule)
      • .cursor/tasks/ - Task tracking (managed by development_workflow_system rule)
      • .cursor/learnings/ - Knowledge capture (managed by knowledge_management rule)
      • .cursor/docs/ - Documentation (managed by knowledge_management rule)
      • .cursor/rules/ - Cursor rule files
      • .cursor/output/ - Generated reports
    2. Analyzing project structure:

      • Directory structure
      • File types and counts
      • Lines of code statistics
    3. Discovering existing documentation:

      • Finding README, CONTRIBUTING, CHANGELOG files
      • Cataloging documentation into .cursor/docs/existing/
      • Creating a documentation index
    4. Extracting core components:

      • Identifying main modules and components
      • Analyzing component relationships
      • Documenting component purposes
    5. Creating initial specifications:

      • Architecture overview specs
      • Component specifications
      • Feature specifications based on existing code
    6. Generating knowledge base:

      • Project structure learning
      • Component identification learning
      • Documentation assessment learning
    7. Setting up task tracking:

      • Initial onboarding completion task
      • Task index creation

    This process integrates an existing project into the AI-driven workflow without requiring changes to the original codebase.

  • type: react conditions:

    • pattern: "analyze existing|existing analyze" action: |

    Analyze an existing codebase without full onboarding

    I'll analyze the existing codebase by:

    1. Examining project overview:

      • Project type detection
      • Repository structure analysis
      • File type distribution
    2. Calculating code statistics:

      • Lines of code by language
      • File counts by type
      • Directory structure
    3. Identifying key components:

      • Main modules and structure
      • Component relationships
      • Entry points
    4. Analyzing test structure:

      • Test directory organization
      • Test coverage assessment
      • Testing approach
    5. Reviewing documentation:

      • Available documentation files
      • Documentation completeness
      • Documentation types
    6. Providing integration recommendations:

      • Suggestions for specification creation (via specification_management rule)
      • Test coverage improvements (via development_workflow_system rule)
      • Documentation enhancements (via knowledge_management rule)

    The analysis report will be saved to .cursor/output/codebase_analysis_[timestamp].md

  • type: react conditions:

    • pattern: "setup rules|rules setup" action: |

    Set up default rules for a project

    I'll set up the AI-driven development workflow rules:

    1. Creating the rules directory .cursor/rules/
    2. Setting up the following rule files:
      • development-workflow-rule.mdc - Task tracking, testing, and version control
      • specification-management-rule.mdc - Specification creation and validation
      • knowledge-management-rule.mdc - Knowledge capture and application
      • location-rule.mdc - Rules for organizing rule files
      • command-rules.mdc - AI command system
      • project-onboarding-rule.mdc - Project onboarding
      • on-load-rule.mdc - Critical development principles
    3. Creating required directory structure

Read the full file on GitHub · 196 lines

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. 6d ago First seen · 196 lines · 1,324 tokens per session scan A e77613ff7d7c

Subscribe to this mod's changes

project-onboarding-rule is a cursor rule published in the GitHub repository brunogama/ios-cursor-rules (74 stars, last pushed 1y ago), licensed MIT. It adds 1,324 tokens to every session, about $0.0066 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-30.