> ## Documentation Index
> Fetch the complete documentation index at: https://docs.newenergycoder.club/llms.txt
> Use this file to discover all available pages before exploring further.

# ai-dev-dashboard

> Prints the PowerShell AI Dev Dashboard (AI CLIs status, recently called Skills with counts, recent Claude tasks, recent local projects). Use when the…

| 项目 | 内容                                                                                                                                                                                                                                                                      |
| -- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 来源 | [skills/ai-dev-dashboard/SKILL.md](https://github.com/new-energy-coder-club/new_energy_coder_club/blob/Skill/skills/ai-dev-dashboard/SKILL.md)                                                                                                                          |
| 分类 | 效率 & 头脑风暴                                                                                                                                                                                                                                                               |
| 安装 | 克隆 [Skill 分支](https://github.com/new-energy-coder-club/new_energy_coder_club/tree/Skill) 后，将 `skills/ai-dev-dashboard/` 目录复制到 `~/.claude/skills/`（Claude Code）、`~/.trae/skills/`（Trae IDE）或 `~/.qclaw/skills/`（QClaw/OpenClaw），详见 [Skill 安装方式](/community/skill-branch) |

# AI Dev Dashboard

A PowerShell-based startup dashboard for a local dev workstation. It reports:

* **AI CLIs** — presence check for `claude`, `kimi`, `gemini` on PATH
* **Recent Skills** — top N Skills called in Claude Code, by most-recent invocation, with call counts. Parsed from `%USERPROFILE%\.claude\projects\*.jsonl` (only real `"name":"Skill"` tool\_use entries are counted).
* **Recent Tasks** — most recent Claude task files from `%USERPROFILE%\.claude\tasks\`
* **Recent Projects** — newest project directories under configurable roots (`D:\Project_env`, `D:\Dev_env`, `D:\Work_dev`, plus `D:\NEC-Claw`)

## How to invoke

Three equivalent ways:

1. **From PowerShell** (interactive, fastest): type `dev` or `dash`. Aliases are registered by the user's profile, which dot-sources `dashboard.ps1`.
2. **Standalone** (from any shell):
   ```powershell theme={null}
   pwsh -NoProfile -File "$HOME\.claude\skills\ai-dev-dashboard\dashboard.ps1"
   ```
3. **As a function**, after dot-sourcing:
   ```powershell theme={null}
   . "$HOME\.claude\skills\ai-dev-dashboard\dashboard.ps1"
   Show-AIDashboard -RecentSkillsCount 12
   ```

## Parameters (Show-AIDashboard)

| Parameter              | Default                                   | Purpose                      |
| ---------------------- | ----------------------------------------- | ---------------------------- |
| `-RecentSkillsCount`   | `8`                                       | Rows in \[Recent Skills]     |
| `-RecentTasksCount`    | `6`                                       | Rows in \[Recent Tasks]      |
| `-RecentProjectsCount` | `3`                                       | Rows in \[Recent Projects]   |
| `-ProjectRoots`        | `D:\Project_env, D:\Dev_env, D:\Work_dev` | Roots scanned for subfolders |
| `-ExtraProjectPaths`   | `D:\NEC-Claw`                             | Individual paths added as-is |

## Customization

Edit `dashboard.ps1` to:

* Add/remove AI CLIs — modify the `$ais` array in the `[AI CLIs]` section.
* Change column widths — adjust `.PadRight(...)` in the respective sections.
* Switch the banner title or colors — look for `AI Dev Dashboard` at the top.

## Integration with PowerShell profile

The profile (`$PROFILE`) should dot-source this script so the `dev` / `dash` aliases persist:

```powershell theme={null}
. "$HOME\.claude\skills\ai-dev-dashboard\dashboard.ps1"
Set-Alias dash Show-AIDashboard
Set-Alias dev  Show-AIDashboard
```

`dashboard.ps1` auto-runs itself when invoked directly (`pwsh dashboard.ps1`) but stays silent when dot-sourced — so the profile just imports the function without printing on every shell start.

## Performance

Full parse across `~/.claude/projects/*.jsonl` is \~500 ms for \~20 MB of logs on a typical workstation. Stats are computed fresh on every call — no cache. If log volume grows large (>100 MB), consider adding a cache file keyed by `LastWriteTime` of the jsonl files.

## Data sources

| Section         | Source                                                   |
| --------------- | -------------------------------------------------------- |
| AI CLIs         | `Get-Command` on PATH                                    |
| Recent Skills   | `%USERPROFILE%\.claude\projects\*.jsonl` (regex scan)    |
| Recent Tasks    | `%USERPROFILE%\.claude\tasks\*\*.json`                   |
| Recent Projects | Directories under `$ProjectRoots` + `$ExtraProjectPaths` |
