# birdview

Adopt this skill: https://proskills.md/skills/other/qiuner-birdview

Page: https://proskills.md/skills/other/qiuner-birdview
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: SKILL.md
size: 8016
upstream: https://github.com/qiuner/birdview/blob/HEAD/SKILL.md

```text
---
name: birdview
description: Show evidence-linked architecture, constraints and change scope, or review architecture improvement opportunities. Use for Birdview/map requests or requests to optimize architecture, review module boundaries or 优化架构. Also activate before coding when the project explicitly configures Birdview auto mode. Ordinary coding does not activate Birdview without that opt-in.
---

# Birdview

[中文](SKILL.zh.md)

Show the system on an evidence-linked architecture map and highlight the modules AI plans to change before editing.

## Activation

Project `off` disables the foundation and map workflow unless explicitly requested for the current task. Installed project foundation rules remain applicable in `on-demand` even without skill activation; their canonical managed text is [foundation.txt](references/foundation.txt). For project setup, disabling or removal of managed rules, follow [modes.md](references/modes.md); do not start mapping merely to configure rules.

Birdview defaults to `on-demand`: activate when the user selects the skill, names Birdview, requests an architecture/constraint/change map, or requests architecture improvement through the review route below. Ordinary coding, small fixes and feature planning do not activate it by default. If the project host instruction file explicitly configures `auto`, activate before every code-changing task, including small edits, and planning that explicitly analyzes affected modules. Honor existing `auto` settings; `setup` preserves them. Honor `off` unless explicitly invoked for this task. Merely discussing the skill does not request a map. When active for authorized coding, reuse/update the map and declare affected modules before editing.

In Codex, use `/skills` to select Birdview or mention `$birdview`. For the separate environment audit, use `$birdview-compatibility`; it does not activate mapping. Claude Code exposes these installed skills as `/birdview` and `/birdview-compatibility`. Other hosts use their skill selector or an explicit request; do not assume they implement the same slash command. Invocation applies to the current task, not all future edits.

For mode changes/status, follow [modes.md](references/modes.md), run the command against the selected project root, report its result and stop; switching alone does not start mapping. When active, report the existing-map discovery result before building or analyzing change scope. These are agent instructions, not enforced write interception.

On first Birdview setup in an environment, follow [skill-compatibility.md](references/skill-compatibility.md) and run the read-only `skills audit` once. Use its manifest report to decide which skill bodies need inspection; do not treat duplicate names or broad triggers as proof of a semantic conflict. Do not modify or disable another skill without explicit user direction.

For requests to optimize architecture, review module boundaries or find architectural refactoring opportunities, follow [review-architecture.md](references/review-architecture.md) directly instead of the default full-project mapping workflow below; naming Birdview is not required. The dedicated entry is `$birdview-review` in Codex or `/birdview-review` in Claude Code when installed. This is a separate on-demand review route and does not enable project auto mode. Ordinary local refactors and discussion about implementing the skill do not request a review. If both entries are selected, perform one review using this shared workflow.

## Workflow

A bare “use Birdview” request delivers architecture and reviewed constraints together by default. Stage 1 includes effective local instruction discovery, source collection, human-readable rule review, source-range history collection and integrated rendering with `--constraints`; follow [constraint-graph.md](references/constraint-graph.md). Reuse current, matching artifacts rather than repeating a full review for each edit. Honor an explicit architecture-only or constraint-only request. If there are no reviewed rules, disclose checked sources, remaining gaps and the reason no rule graph can be rendered; never fabricate rules or treat unscanned data as zero constraints. Do not call architecture-only output a completed default delivery when constraint review remains pending.

For an explicit constraint graph or a complete constraint inventory, follow [constraint-graph.md](references/constraint-graph.md). This standalone route does not require or modify an architecture map. Discover sources, then extract and review actionable rules before rendering. The default view groups rules by human-readable topics with numbered topics and architecture-consistent role colors; raw source text is available in By directory within the same page. A source dump is not delivery. Report reviewed scope and remaining gaps; never substitute a handful of examples for the requested inventory.

Before mapping, follow [constraints.md](references/constraints.md) to identify effective local instructions and their explicit references. Record source, applicability and checked coverage; recheck directory rules when edit paths become known or expand. Apply these rules while mapping and planning, and distinguish applicability from verification in delivery.

1. Follow [map-project.md](references/map-project.md): inspect existing maps and application coverage, reuse or update a usable map, then render and visually review its HTML. Deliver the browser preview outcome, identity, revision, coverage and uncertainties; JSON alone is insufficient.
2. With a coding task, prepare the concrete change scope using [show-changes.md](references/show-changes.md), render it, and obtain the user's confirmation before implementation. Bind operations to the same map revision.

### Confirm the displayed plan before implementation

In both auto and on-demand mode, finish the reviewable map and change plan first: show the HTML preview, affected modules/files, intended behavior, applicable constraints, verification plan and remaining uncertainties. Then ask whether to implement this displayed scope and wait for an explicit reply. Explain that Birdview requires confirmation of the displayed plan. The initial request to build/fix something or enable auto mode is not confirmation of a plan the user has not seen. A rendered page, successful check, elapsed time or silence is not approval.

Before confirmation, read-only investigation and writing map/constraint/plan artifacts are allowed; do not edit implementation, tests or project configuration, or emit `editing` events. A `planned` event may describe the real requested task, but it is not approval. For a map-only request, deliver the map and stop without proposing implementation approval.

Reuse explicit confirmation already given for the same displayed plan; do not ask again for routine edits or checks within its scope. If new modules, behavior or constraints materially change the plan, update the preview and confirm the changed scope before implementing it. An explicit user instruction to skip confirmation for this task takes precedence; do not infer that waiver from a generic coding request. Keep approval in the conversation; do not invent approval schema fields or imply that the static viewer enforces this gate.

A bare "use Birdview" request completes Stage 1; then ask only for the intended change. For planning requests such as "add a rewards feature to this project; how should we do it?", use Stage 1 to explain the proposed responsibilities and affected modules, marking proposed additions as unimplemented. Planning alone does not authorize code edits or activity events. Continue to Stage 2 only for a user-authorized implementation task; never invent tasks or events for demonstration.

## Rules

For authorized coding tasks after activation, read related implementations, callers and existing design decisions before editing; keep changes focused and avoid abstractions without concrete ben
```

## File: README.md
upstream: https://github.com/qiuner/birdview/blob/HEAD/README.md

````text
<div align="center">
  <img src="assets/brand/logo-512.png" alt="Birdview logo" width="120" height="120">
  <h1>Birdview</h1>
  <p><strong>The future of programming comes down to two things: constraints and architecture.</strong></p>
  <p>Have the AI draw the system as it sees it, the rules it must follow and the scope it plans to change, then confirm before any code moves.<br>Shift your attention from code to architecture, and open the black box of AI coding.</p>
  <p>
    <img src="https://img.shields.io/badge/version-0.5.0-2f81f7?style=flat-square" alt="Version 0.5.0">
    <img src="https://img.shields.io/badge/Node.js-18%2B-339933?style=flat-square&amp;logo=nodedotjs&amp;logoColor=white" alt="Node.js 18 or newer">
    <img src="https://img.shields.io/badge/license-MIT-2da44e?style=flat-square" alt="MIT License">
    <img src="https://img.shields.io/badge/output-standalone%20HTML-e34f26?style=flat-square&amp;logo=html5&amp;logoColor=white" alt="Standalone HTML output">
    <img src="https://img.shields.io/badge/docs-English%20%7C%20%E4%B8%AD%E6%96%87-8250df?style=flat-square" alt="English and Chinese documentation">
    <a href="https://linux.do"><img src="https://img.shields.io/badge/linux.do-%E7%A4%BE%E5%8C%BA-1f7aec?style=flat-square" alt="linux.do community"></a>
  </p>
</div>

<p align="center">
  <a href="#quick-start">Quick Start</a> ·
  <a href="#three-views">Three Views</a> ·
  <a href="#how-it-works">How It Works</a> ·
  <a href="examples/harness-activity.html">Live Demo</a> ·
  <a href="https://qiuner.github.io/birdview/">Project Site</a> ·
  <a href="https://atomgit.com/Qiuner/birdview">AtomGit Mirror</a> ·
  <a href="README.zh.md">简体中文</a>
</p>

<!-- [简体中文](README.zh.md) -->

Birdview is a skill for AI coding agents. It draws a project's **architecture**, its **constraints** and the **scope of the current change** on one map: the agent shows its understanding and plan, waits for your confirmation, then implements and records the checks it actually ran. The output is a standalone HTML page that opens in a browser, with no service to deploy.

<p align="center">
  <img src="docs/media/changes.gif" alt="Birdview changes view: stepping through the agent's plan on the architecture map, turning on outside-scope impact and opening module details" width="100%">
</p>

> The demo uses the fictional agent harness included in this repository. It does not represent observed production activity.

## 🗞️ News

- **2026-11-14** — [v0.5.0](docs/release-notes-0.5.0.md): **Review verdicts and readability** — health grades with linked reasons, folded source evidence and clearer proposal cards; explicit constraint entries and bilingual rule labels. Review JSON now requires schema version `"3"` and a `verdict`.
- **2026-10-08** — [v0.4.0](docs/release-notes-0.4.0.md): **Architecture review and skill compatibility** — current and proposed drawings with checkable source quotations, skill trigger audits and outside-scope change paths.
- **2026-09-22** — [v0.3.1](docs/release-notes-0.3.1.md): fixed CLI startup through symbolic links, strengthened installation diagnostics and refined viewer motion.
- **2026-09-20** — [v0.3.0](docs/release-notes-0.3.0.md): **On-demand by default** — confirm the displayed map and plan before implementation; typed constraint graphs and reproducible distribution artifacts.
- **2026-09-17** — [v0.2.1](docs/release-notes-0.2.1.md): source-first planning, evidence-based architecture review guidance and multi-agent installation choices on the website.
- **2026-09-15** — [v0.2.0](docs/release-notes-0.2.0.md): installation guidance for Codex, Claude Code and DeepSeek Harness, plus the `doctor` dependency and renderer check.
- **2026-09-13** — [v0.1.1](docs/release-notes-0.1.1.md): simpler viewer branding, visible canvas controls, view-specific activity history and explicit guide step states.
- **2026-09-12** — [v0.1.0](docs/release-notes-0.1.0.md): **First release** — standalone architecture and changes pages with source evidence, activity history and Chinese/English controls.

## Why Birdview

Ask an AI to "add rate limiting to the login endpoint":

- **Normal flow:** the AI searches and edits immediately, and you are left to guess from the final diff whether anything was missed or changed by mistake.
- **Birdview flow:** the AI first shows the login modules, the applicable interface and security rules, the files it plans to touch and the evidence behind each choice. It implements only after you confirm that scope, and records the checks it actually ran.

Logs say which actions the AI took and diffs say which lines changed, but neither answers: where does this change sit in the system, what else can it reach, and why does the AI think these files belong to the task? Birdview lets you catch scope mistakes before the implementation is finished, instead of guessing afterwards.

It does not observe every agent action automatically, and it does not replace Git diffs, tests or code review.

## Three Views

Switch with **Architecture · Constraints · Review** at the top of the page.

**Architecture**: the modules in the project, what each owns and how they connect, with source evidence for every claim. When activity is supplied, the same map becomes the **changes view**: it marks the modules and files the agent declared, its current step, and an outside-scope impact layer showing modules directly connected to the plan but not declared.

**Constraints**: reviewed rules with their conditions, explanations, source text and versions. Browse by topic to understand them or by directory to trace files; Coverage states which sources were reviewed and what remains open. Collected documents are not automatically effective rules, and displaying a rule does not prove the implementation satisfies it.

**Review**: the architecture review page. Ink draws the facts found in source, a red pencil circles the problems, and a clean redraw marked as a proposal shows the improvement. Evidence is quoted source text. Rendering with `--repo` checks it line by line against the recorded source revision or working tree; without a repository, quotations are marked unchecked.

<p align="center">
  <img src="docs/media/review.zh.gif" alt="Birdview architecture review: red-pencil notes on the current drawing, the proposed redraw and source clippings checked line by line" width="100%">
</p>

> The review in this recording is the bundled example, written in Chinese; the interface also supports English.

Every view supports light and dark themes and a Chinese or English interface, and inputs are checked for structure and consistency before rendering.

## Quick Start

Install it with the third-party `skills` CLI:

```sh
npx skills add Qiuner/birdview --skill birdview
```

Start a new agent task and invoke the skill explicitly. **By default, Birdview runs only when requested; ordinary edits trigger it only after you enable project auto mode.**

**Codex:** type `/skills` and select Birdview, or enter:

```text
$birdview Show this project's architecture and constraints; do not edit code.
```

**Claude Code:** enter:

```text
/birdview Show this project's architecture and constraints; do not edit code.
```

For DeepSeek Harness and other hosts, use their skill selector or explicitly ask to use Birdview; slash-command support depends on the host.

When it works, the agent delivers a browser-readable page with the architecture, reviewed constraints, source evidence and review gaps. If constraints cannot be reviewed, it should explain the missing coverage instead of inventing rules. Map-only requests end after delivery; coding requests stop and wait for you to confirm the displayed plan.

See the [installation guide](docs/installation.md) for complete setup and verification steps, and the [0.5.0 release notes](docs/release-notes-0.5.0.md) for this release's features and limitations.

### Example Pages

The repository has 2 example pages. Both are offline HTML; open them directly in a br
````
