Skip to content
Back to skills

Fleet Chart

ASecurity

Use when someone needs an organization chart, board, or weekly card to see who is waiting on whom and which deliveries have review evidence.

  • 11 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 22, 2026
ai-agentspythongoshellbashnodeawsgitapidocumentation

Works with

  • claude code
  • terminal
  • cli
  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned November 30, 2026

npx -y skills add chenyuwang166-oss/fleet-handbook --skill fleet-chart --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fleet Chart?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fleet Chart
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/chenyuwang166-oss-fleet-chart/badge)](https://www.skillsdirectory.com/skills/chenyuwang166-oss-fleet-chart)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: fleet-chart
description: Use when someone needs an organization chart, board, or weekly card to see who is waiting on whom and which deliveries have review evidence.
---
# Draw the organization chart
Check reporting lines against the project roster. For the board, match the actual deliveries to their review records to see what passed, what was sent back, and who owes the next action. Show where evidence is missing. Chinese headers are `岗位`, `部门`, `汇报给`, `派驻`, `怎么调用`, `做什么`, `交付写进`. English headers are `Role`, `Department`, `Reports to`, `Assigned`, `How to call`, `Does`, `Delivers to`. Columns may be reordered, but none may be missing or duplicated. A reporting target must be another role or the reserved human member, written as `Human` or `人`. Escape a literal pipe inside a cell as `\|`.

Run from the skill package root, replacing the input and output paths. If the output already exists, check whether a new version should be created first. The paths below are for an English project; for a Chinese project, follow its project card and use its existing Chinese filenames:

```bash
python -X utf8 skills/fleet-chart/scripts/fleet_chart.py /path/to/my-project/fleet/members.md -o /path/to/my-project/fleet/chart.md
```

The script uses only the Python standard library and requires Python 3.9 or later. Missing columns, duplicate role names, unknown reporting targets, cycles, and unreadable files produce exit code 2 and a short explanation. Check the source table first; do not change reporting relationships just to make a chart render. For an undecided relationship, show the affected role and why a decision is needed, then ask the human here to reply for that role only, such as “Analyst reports to Project manager”. Check that the target exists and the relationship introduces no cycle, record the confirmed relationship, and rerun. If it still fails, explain the next specific issue without asking again from the beginning. Success returns 0. Omit `-o` to write to the terminal.

Place all members inside one organization frame, including the human. Choose the chart language from the roster headers: Chinese headers produce the title “AI 舰队” and node “人”; English headers produce “AI Fleet” and “Human”. Do not put both languages in one label. Arrows run from the reporting target to the role. Labels show the role, department, and assignment; invocation commands and delivery paths stay out of the chart. The script escapes user text as Mermaid entities so it cannot become diagram syntax.

Open the generated Markdown and compare every role against the source table, then inspect it in a Mermaid-capable reader. If human help is needed to view it, give the actual file path, explain that display still needs checking, and ask the reader to open it in their own Mermaid-capable reader and reply “displays correctly” or name the first problem. Check that reply against the source table before continuing. Return the file and check results. If no rendering was performed, say that only the source text was checked. If the roster changes who a member reports to, which model fills a role or who checks the work, use fleet-chart to redraw the org chart in the same round. When you hand it back, say which boxes changed.

If the roster is unreadable or the output cannot be written, first check the exact path within the project. When human help is necessary, explain the current cause and give only one step: open the roster in their own file manager and reply “opens” or “not found”; create the stated output directory there and reply “created”; or reply here with an existing writable output directory inside the project. Choose only the step matching the current blocker. Check the returned path or directory with read-only checks, then retry the command with the actual paths filled in. Do not change directories outside the project, request keys or passwords, or restart the questions. Direction, external commitments, spending, and deletion require human approval first.

Generate the four-part local board from the package root with `python -X utf8 skills/fleet-chart/scripts/fleet_board.py --project <project-directory>`. The script picks the language from the project's filenames: English writes `fleet/board.html`, Chinese writes `fleet/看板.html`, and it defaults to Chinese when it can’t tell; `--lang zh|en` overrides detection. The Needs you section sorts requests by the date at the start of each line; undated text uses the full width without a label, explicit no-action notes stay in an expandable list and do not count as waiting, and member cards show the assignment before its first Chinese or English semicolon with the full text in a tooltip. Work in progress reads roles, assignments, states and recorded start/end times from briefs, deliveries, logs and reviews. The board marks a delivery “Received” only when the deliverable itself exists. If only a `-notes.md` or `-说明.md` file exists, the board shows any incomplete or blocked status recorded on the first line of the notes file. If the notes say “Complete” and the deliverable is missing, the board still does not mark the delivery “Received”. If the latest review rejected a delivery, it stays in Work in progress, in red, labeled Returned. Done includes only deliveries whose latest review passed within the last seven days, and its weekly count includes only those tasks; first-pass rate is hidden without explicit evidence. `--today YYYY-MM-DD` sets the window to the 7 days ending on that date. When no written date exists, delivery file time is noted beside the count. The Roster section lists the fleet members, marks dispatched/running roles Busy and links an existing full chart. Execution ended, delivery received and review passed are separate checks. The standard-library script generates one offline HTML file; run it again after files change.

## Weekly cards and images

Use the bundled skill scripts to generate and check cards and images; never create generation or check scripts in the human's project. Run temporary checks as inline CLI commands or in the system temporary directory, leaving no check scripts in the project.

When someone asks for a weekly card, run this from the package root:

```bash
python -X utf8 skills/fleet-chart/scripts/fleet_weekly.py --project <project-directory>
```

The page goes beside the board: `fleet/weekly.html` for English or `fleet/周报卡.html` for Chinese. Language detection follows the board; `--lang zh|en` overrides it. `--today YYYY-MM-DD` sets the window to the 7 days ending on that date. The card computes from the records retained now, rather than reconstructing a past project snapshot. For example, to check a past week, pass that week's last day as `--today` rather than inventing review dates. Open the page and check the project name, date range, model count, four weekly metrics and trial comparisons against the records. Choose “Save as image” to generate a PNG on your device. The PNG filename is `fleet-weekly-<project-folder>-<language>-<week-ending-date>.png`. If the download doesn’t start on your phone, press and hold the preview image to save it.

The four metrics reuse the board's reading of briefs, deliveries, reviews and the project card, and also read the existing decision log. Explicit links in existing project documentation can provide first-review evidence as well. Tasks completed counts tasks whose latest review passed within the window, counting revisions of one task once. First-pass rate is the number of this window's passed tasks explicitly recorded as passing their first review, divided by all tasks that passed review within the window. First-review declarations include explicit report markers such as “Review round: 1” or “审核轮次:1”, and Markdown links in the project's existing `README.md` or `README.zh-CN.md` labeled “First review”, “Initial review”, “第一轮审核” or “首次审核” that point to an existing fleet review report. Merge duplicate declarations of the same report; conflicting declarations or missing first-review evidence leave the rate unknown, and a zero denominator never produces a percentage. A returned review does not establish that it was the first review. Do not infer review dates from README prose or tables; keep the dates read by the board and identify any use of file time.

Issues caught counts only required changes from failed reviews within the window, excluding suggestions. When a report has a review table, count rows explicitly marked “Failed” or “不通过” and do not count the later correction list again. Otherwise, use an explicit “Required fixes” or “必修项” list, excluding entries marked as suggestions or optional. In a general “Issues” or “问题” list, count an entry only when it explicitly says a change is required, using words such as “must” or “必改”. Correction substeps and ordinary checklist items are not new issues. For example, a review table with two rows marked “Failed” contributes 2; an item in its required-fixes section that only suggests shortening the draft adds nothing.

Times you were asked adds two existing sources: entries in `fleet/decisions.md` (or Chinese `fleet/决定.md`) within the window that explicitly name the human as decision maker, plus open requests in the project card’s “Decisions needed” section whose leading date falls within the window. The card also shows how many requests are still waiting for you now. This counts every actionable item on the board, including future deadlines, requests from earlier weeks and items without a valid date. A future deadline alone does not establish that the request was made this week. Count each decision entry once, read its date from the heading, and require “Decision maker” or “谁定” to identify “Human”, “User”, “人”, “用户”, “使用者” or “人类”. An entry that also names a project role still counts once when the human's decision is explicit. Exclude decisions made only by models or project roles, entries outside the window, and notes explicitly requiring no action. If a decision maker or valid date is missing, the exact total is unknown; count complete, valid records within the window as a lower bound and show “≥N” when N is at least 1, or “—” when N is 0, explaining how many records were omitted and why. Show “No records yet” only when neither source has records. The decision log can preserve answered requests removed from the project card; older requests omitted from that log cannot be recovered, so this metric describes the records available rather than every interruption.

Use short, plain explanations on the card and PNG. When records exist but evidence is incomplete, show “—” and explain why, except for the lower bound allowed for Times you were asked; never substitute zero for an unknown value. Put detailed notes on source files, counting rules and evidence gaps in the HTML below the card, outside the exported PNG. If a record has no written date and delivery file time is used instead, identify that date source in the notes. The model count deduplicates the assignment identifier before its first Chinese or English semicolon. Explicit aliases such as “Model A: …” are merged by alias; role counts and tool names do not establish model vendors.

**Rules on trial** shows each rule's decision ID, category and start date. In the decision log, put a unique ID such as `D007` in the level-two heading and fill in `Issue category` and `Trial start` (`YYYY-MM-DD`) alongside the trial rule and scope. Copy the project’s short category name from the opportunity log. The card trims surrounding whitespace from category names in both the decision log and the review table, removes a matching pair of outer bold markers (`**` or `__`), and compares the names exactly. The opportunity log links to the evidence. The card counts reviewed tasks.

In each review report, give the overall conclusion and an explicit `Review date: YYYY-MM-DD` (`Date` also works). In the results table, put one category per `Issue category` cell and mark its `Result` as `Passed` or `Failed`. Use one report per task. A joint review whose results cannot be attributed to individual tasks is excluded from the comparison. An applicable task is a reviewed task with at least one such check for this category. Count each task once per period, including passing checks. If any item or review round failed for that category, count the task once in the numerator. Skipped checks, undated reports and untagged records contribute to neither count. Older records still feed the original four metrics.

Before covers all retained, explicitly dated reviews before the trial start. After runs from the start date through the card’s end date, inclusive. A task reviewed on both sides can count once on each side. These two counts can extend beyond the card’s seven-day window. Use only written review and trial dates. If the category appears in any retained review report but a period has no applicable tasks, show “No pre-trial records” or “No samples yet” on the corresponding line. If the category never appears, the card asks you to check its spelling against the reports. The card combines trial records with the same decision ID. A category in one entry and a start date in another count as one rule. If either field is still missing, the notes below the card list the ID and the missing field. The notes also list IDs excluded for conflicting values within or across entries. The card and its PNG show up to three trials that have begun, most recent starts first, with “N more” for the rest. If the kinds of tasks changed or later tasks were easier, fewer repeat issues alone do not show that the rule helped. Check whether the issue remains less common in another batch of comparable tasks.

When someone asks to save the organization chart as an image, keep the Mermaid workflow above and generate a local card from the same roster:

```bash
python -X utf8 skills/fleet-chart/scripts/fleet_org_card.py --project <project-directory>
```

The default is `fleet/chart.html` for English or `fleet/组织图.html` for Chinese; `--lang zh|en` overrides detection. Open the page, compare every role with the roster, then choose “Save as image”. A missing roster produces a page explaining that there are no records; do not add members from chat. The card draws the project name, roles, assignments and reporting relationships directly in SVG, escaping user text. The browser draws that SVG onto a canvas and uses `canvas.toBlob` to produce the PNG. It uses no `foreignObject`, external scripts, external fonts or network access, avoiding Safari's restrictions on `foreignObject`. State which browsers you actually tested; the design choice itself is not a browser test. Separate weekly-card and organization-card scripts let each page be generated and published independently, without adding SVG or image-export resources to the board and status line. They share the existing record readers to avoid divergent parsing. Both scripts only read existing project records and generate a single offline HTML file; rerun after records change, without requiring another set of records for the cards. If the output already exists, check whether a new version should be created first.

Claude Code only: before displaying this line in its bottom status bar, ask the user to agree, then merge `"statusLine": {"type": "command", "command": "python .claude/skills/fleet-chart/scripts/fleet_board.py --status-line", "refreshInterval": 60}` into the project `.claude/settings.json` or user `~/.claude/settings.json`, preserving other settings; the installer does not edit settings. The interval is in seconds, and events such as a new response also refresh the line; on Windows use forward slashes in the command, which runs through Git Bash, or PowerShell if Git Bash is unavailable. The command reads only needed records, prints one line and writes no files; project selection is `--project`, then input JSON `workspace.project_dir`, then the current directory, with the same automatic language detection as the board.

Files in this skill

  • SKILL.md12.7 KB
  • SKILL.zh.md10.4 KB
  • scripts/fleet_board.py45.3 KB
  • scripts/fleet_card.py7.5 KB
  • scripts/fleet_chart.py9.1 KB
  • scripts/fleet_org_card.py7.8 KB
  • scripts/fleet_weekly.py27 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.