跨框架项目状态汇总
project-status
跨框架的项目状态聚合器——从已安装的框架中发现贡献者,运行声明式检测,生成统一的状态报告。
- License 许可
- MIT
- 所属仓库
- jmagly/aiwg
- 最近更新
- 2026-11-14
- Stars
- ★ 229
- Forks
- 36
01 前言 Front Matter
- name
- project-status
- triggers
- [ "help me know what is next", "tell me where this project stands and what to do next", "generate or refresh project status", "project status" ]
- namespace
- aiwg
- platforms
- [ "all" ]
- commandHint
- { "model": "haiku", "category": "aiwg-utility", "modelRole": "efficiency", "modelTier": "economy", "allowedTools": "Read, Glob, Grep, Bash", "argumentHint": "[project-directory=.] [--json] [--guidance \"text\"]" }
- description
- Cross-framework project status aggregator — discovers contributors from installed frameworks, runs declarative detection, produces a unified status report.
02 资源文件 2
- 参考文档contributor.schema.json3.0 KB
- 参考文档heuristic-fallback.md5.0 KB
03 SKILL.md 正文
<!-- AIWG-SKILL-CALLOUT -->
Skill access pattern (post-kernel-pivot, 2026.5+)
Skill names referenced in this document are AIWG skills, not slash commands. Most are not kernel-listed and cannot be invoked as
/skill-nameby the platform. Reach them via:aiwg discover "<capability>" aiwg show skill <name> --bodyOnly kernel-listed skills (
aiwg-doctor,aiwg-refresh,aiwg-status,aiwg-help,use,steward) are directly invokable as slash commands. See skill-discovery rule.
Project Status (Cross-Framework Aggregator)
Task
Produce a unified status report covering every installed framework, addon, or
extension that ships a kind: status contributor and is in active use on this
project.
This is the cross-framework aggregator described in ADR-023 §Reference
contributor frontmatter. It replaces the prior SDLC-only project-status
behavior. SDLC-specific reporting now lives in the SDLC framework's status
contributor at agentic/code/frameworks/sdlc-complete/status/contributor.md —
when SDLC is the only contributor in use, the resulting report is functionally
equivalent to the prior behavior.
Parameters
[project-directory](optional): Path to project root. Default: current directory.--json(optional): Emit machine-readable JSON instead of human-readable markdown--guidance "text"(optional): Extra context the agent should weigh while interpreting contributor blocks
Workflow
Step 1: Locate the registry and project root
Read .aiwg/frameworks/registry.json from the project root. The registry lists
installed frameworks/addons/extensions by id. If the file is missing, treat
it as zero installed frameworks — discovery still finds project-local
contributors.
cat ./.aiwg/frameworks/registry.json 2>/dev/null
Step 2: Discover candidate contributors
Two sources, processed in order:
-
Framework-shipped contributors — for each
idin the registry, look up its source path under the AIWG installation. Try in order:<AIWG_ROOT>/agentic/code/frameworks/<id>/status/contributor.md<AIWG_ROOT>/agentic/code/addons/<id>/status/contributor.md<AIWG_ROOT>/agentic/code/extensions/<id>/status/contributor.md
Use
Globto discover, thenReadto load the contributor file. -
Project-local contributors — every
*.mdfile in<project-root>/.aiwg/contributors/status/. These are user-authored contributors that do not require forking a framework.
Step 3: Validate and run detection
For each candidate file:
- Parse YAML frontmatter. Skip with a warning if frontmatter is malformed
or missing required fields (
kind,domain,description,detect.glob). The schema is published at<AIWG_ROOT>/agentic/code/addons/aiwg-utils/skills/project-status/contributor.schema.json—aiwg validate-metadataenforces it at deploy time, so most files reaching this step are valid. - Run the contributor's
detect.globpatterns against the project root usingGlob. Deduplicate matches. If unique match count is less thandetect.minCount(default 1), the contributor is installed but not in use — silently filter out. - For surviving contributors, the agent reads the contributor file's body to learn what to report and how to format it.
Step 4: Gather state per contributor
For each in-use contributor, follow its body's guidance to read source files and compute reported state. Contributors are descriptive — they tell the agent what to look at; they do not run code.
Keep blocks compact. Per ADR-023 §Output voice, contributors emit observed state (counts, dates, phase names). Do not synthesize prescriptive "recommended commands" inside a contributor's block.
Step 5: Render the unified report
Default (markdown) output shape:
Project: <project-name> (<detected-domain-summary>)
├─ <Domain 1>: <one-line summary> (origin: <framework-id>)
│ ├─ <fact 1>
│ ├─ <fact 2>
│ └─ <fact N>
├─ <Domain 2>: <one-line summary> (origin: <framework-id>)
│ └─ ...
└─ <Domain K>: <one-line summary> (origin: project-local)
└─ ...
Every block carries an origin: stamp — the framework id (e.g.
sdlc-complete, media-curator) or the literal project-local. This lets
the user see at a glance whether a finding came from a framework's
contributor or a project-specific override.
Step 6: Handle empty discovery
If discovery returns zero in-use contributors:
- In a project that has frameworks installed but none are in use yet:
surface "No active framework contributors detected. Run
intake-wizardif this is a new project, or check.aiwg/frameworks/registry.jsonto confirm what's installed." - In a project with no
.aiwg/: defer to the heuristic fallback described in<AIWG_ROOT>/agentic/code/addons/aiwg-utils/skills/project-status/heuristic-fallback.md(added by issue #941). When that file is not yet present, surface a short "No project state detected" message.
--json output
Returns a structured array of contributor blocks. Stable shape:
{
"project_root": "/abs/path",
"contributors": [
{
"origin": "sdlc-complete",
"domain": "SDLC",
"summary": "Construction phase, iteration 12, 3 open risks",
"detail": [
{ "label": "Phase", "value": "Construction (entered 2026-04-01)" },
{ "label": "Iteration", "value": "12 of 18 planned" }
]
}
],
"skipped": [
{ "origin": "media-curator", "reason": "detection-no-match" }
]
}
Downstream tooling (CI status badges, dashboards) consumes this shape directly.
Failure mode
Per ADR-023 §Failure mode:
- A contributor that fails frontmatter parsing or validation is skipped
with reason
schema-violation; aggregation continues. - A contributor whose detection throws (rare — only filesystem permission
errors should cause this) is skipped with reason
detection-error. - One bad contributor never aborts the whole report.
When --json is set, skips appear under the skipped array. In markdown
output, skips are summarized under a ─ Skipped contributors footer when
non-empty.
Anti-Patterns
- Do not invent contributor state. If a contributor's detection matches but its source files are absent or unreadable, emit the block with a clear "details unavailable" note rather than fabricating values.
- Do not merge or reorder contributor blocks. Registry order and project-local-last is the contract per ADR-023 §Discovery Algorithm. Users rely on it for predictable diffs over time.
- Do not call into other AIWG commands (
aiwg index build,aiwg run …) from this skill. Status reporting is read-only. If a contributor needs built indexes, surface their absence rather than building them mid-report.
References
- @.aiwg/architecture/decisions/ADR-023-contributor-discovery-convention.md — Convention this skill implements
- @$AIWG_ROOT/agentic/code/addons/aiwg-utils/skills/project-status/contributor.schema.json — Published JSON Schema for
kind: statusfrontmatter - @$AIWG_ROOT/src/contributors/discover.ts — TS reference implementation used by
aiwg validate-metadata; demonstrates the discovery algorithm in code - @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/status/contributor.md — Reference status contributor (SDLC framework)
- @$AIWG_ROOT/agentic/code/frameworks/media-curator/status/contributor.md — Reference status contributor (media archives)
- @$AIWG_ROOT/agentic/code/frameworks/research-complete/status/contributor.md — Reference status contributor (research corpora)
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/skills/project-health-check/SKILL.md — Complementary skill: code and team health metrics (out of scope for project-status)
04 同仓库更多 Skills
plugin-search
Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything
plugin-search
Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything
host-hardening
Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.
exposure-analysis
Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.
host-hardening
Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.
exposure-analysis
Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.