Portfolio Overview 标志

Portfolio Overview

社区
popiliadam
portfolio-overview

Use when: kullanıcı "portföy özet", "tüm projeler", "tüm projelerin durumu", "portfolio overview", "multi-project status", "portföy durumu", "active projects özet" der ya da portföy genelinde KPI karşılaştırması istediğinde tetiklenir. Also use when: portfolio.config.json `active_projects` listesi doluyken (1-12 entry, schema maxItems=12); her aktif projenin master.xlsx'i mevcut (eksikler graceful skip + warning); tek bir pass'te tüm aktif projelerin dashboard KPI snapshot + master_task status karşılaştırması raporlanır; weekly-summary ya da portfolio-weekly-brief öncesinde portfolio-wide tablo gerekiyor. Do not use when: portfolio.config.json yok (portfolio init önce çalışmalı, DURUR PortfolioConfigMissingError); active_projects 12'yi aşıyor (schema maxItems sentinel, DURUR ActiveProjectsCeilingError — fazla entry'leri pending_onboard'a taşı); cross_query.read_only != true (schema const, DURUR ReadOnlyContractViolation); tek bir proje detayı isteniyorsa (whats-next ya da master-task-sync skill'i kullan, bu skill çoklu proje aggregate eder); workbook'a YAZILACAK bir şey varsa (FORBIDDEN — bu skill strict read-only aggregator).

Add to TypingMind

概览

发布者popiliadam
代码仓库platinum-seo-engine
技能名称portfolio-overview
星标数
26
复刻数
3
附带文件
仅含指令
许可协议AGPL-3.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 popiliadam 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Portfolio Overview AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/popiliadam/platinum-seo-engine/tree/main/skills/reporting/portfolio-overview
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/popiliadam/platinum-seo-engine.git /tmp/platinum-seo-engine
mkdir -p .claude/skills
cp -r /tmp/platinum-seo-engine/skills/reporting/portfolio-overview .claude/skills/portfolio-overview
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Portfolio Overview,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Portfolio Overview。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Portfolio Overview 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

portfolio-overview — reporting skill (Phase 9 Wave 1)

Multi-project READ-ONLY aggregator. Iterates portfolio.config.json active_projects (max 12, schema-enforced) and pulls each project's master.xlsx#dashboard KPI cells + locally-computed master_task status counts into a single portfolio overview snapshot + markdown report. No MCP, no DFS, no budget pre-flight, no Excel write — strict read-only.

This skill follows the convention authority established by skills/planning/master-task-sync/SKILL.md (Phase 8 W-D1 — local aggregator pattern: aggregate transform module, drift-recovery JSON snapshot, markdown report). The protocol shape, raw envelope discipline, and DURUR + flag rule are reused — only the source (multi-project read instead of single-project local sheets) and the output discipline (no master.xlsx mutation, no events.jsonl) change.

Per schemas/portfolio-config.schema.json#cross_query.read_only (const: true, schema lines 90-91), portfolio_overview is a strict read-only aggregator. The transform module enforces this defensively: no wb.save(), no transaction.append(), transaction.update(), or transaction.delete() call sites; load_workbook(read_only=True) on every workbook read. The assert_read_only_module() helper greps the source for forbidden write tokens — used by the test suite as a schema-first guard.

Inputs (frontmatter contract)

NameTypeDefaultNotes
portfolio_rootstringenvWorkspace root; falls back to $PSEO_PORTFOLIO_ROOT, $PSEO_WORKSPACE_ROOT, or .pse-workspace marker.
filter_activebooleantrueIterate active_projects only. pending_onboard NEVER read (schema description).

Outputs (artifacts produced)

  • outputs/reports/{date}-portfolio-overview.md — markdown report (multi-project table + aggregate totals); rendered via string.Template per scripts/reporting/render_template.py convention.
  • inbox/local/{date}-portfolio-overview.json — drift-recovery snapshot containing every per-project KPI + status_count + warnings list.
  • master.xlsx#none — declarative READ-ONLY confirmation (no sheet written across any iterated project).

No events.jsonl entry. Phase 9 Wave 1 convention; portfolio-wide provenance governance refinement is deferred to Q-RP-01 (closeout).

Sources consumed (per active project)

#SourceRead mode
1portfolio.config.json (root)json
2master.xlsx#dashboard (R10, R47-R52, R59)openpyxl read_only=True
3master.xlsx#master_task (col J)openpyxl read_only=True

The 8 dashboard KPI cells are pulled verbatim per schemas/master-excel.schema.json#dashboard required_cells: R10=total_pillars, R47=master_task_total, R48=master_task_done, R49=master_task_todo, R50=master_task_ongoing, R51=cannibalization_count, R52=quick_wins_count, R59=last_audit_date. master_task statusEnum counts are computed locally by scanning column J — used for a drift cross-check against R47-R50.

Aggregation logic

1. Resolve portfolio_root (arg → env → .pse-workspace).
2. Read portfolio.config.json + jsonschema validate (Draft 7).
3. For each active_projects entry:
     - resolve master.xlsx path (workspace_path/projects/slug/master.xlsx).
     - if missing: emit warning, append empty snapshot (graceful skip).
     - else: read 8 dashboard cells + scan master_task col J.
     - cross-check dashboard R47-R50 vs locally-computed totals;
       set status_check_drift=True on mismatch.
4. Sort snapshots by (priority asc, slug asc) — deterministic.
5. Sum per-project KPIs into batch.totals.
6. Render markdown report via string.Template substitution.
7. Write snapshot.json + report.md (no master.xlsx writes).

Idempotency contract

**Re-run with identical workbook state → byte-identical snapshot

  • report.**

Mechanically:

  1. Snapshot ordering is deterministic (priority, slug).
  2. Totals tuple is fixed at module scope.
  3. JSON output uses sort_keys=True + indent=2.
  4. Markdown template substitution is idempotent.

DURUR conditions

Stop and flag the manager — do not patch, do not fall back.

  1. PortfolioConfigMissingError — portfolio.config.json absent / unreadable. Run portfolio init first.
  2. PortfolioConfigInvalidError — payload failed Draft 7 validation against schemas/portfolio-config.schema.json. Schema-first violation.
  3. ActiveProjectsCeilingError — active_projects > 12 (schema maxItems sentinel). Move surplus to pending_onboard.
  4. ReadOnlyContractViolation — cross_query.read_only != true (schema const: true). The aggregator cannot run with read-only disabled.
  5. WorkspaceRootUnsetError — could not resolve portfolio_root from arg / env / .pse-workspace marker.

(Per-project missing master.xlsx is NOT a DURUR — graceful skip with warning, snapshot still emitted.)

Audit Event Emit (Q-RP-01 RESOLVED 2026-05-06 Phase B post-closeout)

Schema-first override Section 4c paterni reuse (drift-check Phase 5 doğum belgesi). event_kind=audit row append per rules/events-writer.md Section 4c — event_type field YASAK per Section 6 disambiguation.

python
import os
import sys
from pathlib import Path

sys.path.insert(0, os.getcwd())

project_slug = os.environ.get("PSEO_PROJECT_ID")
if not project_slug:
    print("PSEO_PROJECT_ID not set — audit event skip")
    sys.exit(0)
report_date = os.environ.get("REPORT_DATE", "2026-05-06")

workspace_root_env = os.environ.get("PSEO_WORKSPACE_ROOT")
workspace_root = (
    Path(workspace_root_env) if workspace_root_env
    else Path.home() / "Documents" / "platinum-seo-workspace"
)

from scripts.state import events_writer
events_writer.append_audit(
    project_id=project_slug,
    audit_action="accessed",
    audit_target=f"reports:portfolio-overview:{report_date}",
    actor="agent:portfolio-overview",
    workspace_root=workspace_root,
    notes=f"local_aggregation report-only (portfolio-overview; date={report_date})",
)

Cross-references

  • Schemas: schemas/portfolio-config.schema.json (v1.1 — ActiveProjectEntry required fields slug + workspace_path + profile + priority; active_projects.maxItems = 12; cross_query.read_only = true const), schemas/master-excel.schema.json#dashboard (required_cells 8 KPI cells + forbidden_patterns no-formula rule), schemas/master-excel.schema.json#master_task (required_columns 19 cols + #/definitions/statusEnum), schemas/skill-frontmatter.schema.json (this frontmatter).
  • Cross-modules (IMPORT-only): scripts/reporting/render_template.py (string.Template $var rendering convention).
  • Transform: scripts/reporting/portfolio_overview.py.
  • Template: templates/reports/portfolio-overview.template.md.
  • Tests: tests/skills/test_portfolio_overview.py (6-8 cases incl. schema validate + maxItems sentinel + missing workbook tolerance + read-only enforcement + natural_language length + forbidden tokens guard).
  • Pattern reference: scripts/planning/master_task_sync.py (Phase 8 W-D1 local aggregator pattern).

Discipline checklist

  • TODO/fallback YASAK — every DURUR raises, none silently downgrade.
  • Schema-first — frontmatter validates against schemas/skill-frontmatter.schema.json Draft 7. Every config payload checked against portfolio-config.schema.json Draft 7.
  • Plugin-agnostik — no slug literals; active_projects iteration drives every path; transform has 0 hardcoded slug words.
  • ADR-013: Use when / Also use when / Do not use when are STRING content inside description, not separate fields.
  • Cross-module IMPORT discipline — render_template.py convention reused via string.Template inline; no module imported / mutated.
  • D-003 helper IMPORT NOT applicable — local aggregation, no DFS payload consumed.
  • F1: write target is NOTHING (read-only aggregator).
  • F5: outputs.* values are STRING-TYPED (artifact paths or stringified counts), never raw ints.
  • Append-only state — events.jsonl NOT written (Phase 9 W1 convention; Q-RP-01 deferred). Snapshot JSON is overwrite-safe because filename includes {date}.
  • READ-ONLY contract — no .save(, no transaction.append(, no transaction.update(, no transaction.delete( call sites in the transform module (verified by assert_read_only_module()).
  • cross_query.read_only=true (schema const) honored.

常见问题

Portfolio Overview AI 技能有什么作用?

Use when: kullanıcı "portföy özet", "tüm projeler", "tüm projelerin durumu", "portfolio overview", "multi-project status", "portföy durumu", "active projects özet" der ya da portföy genelinde KPI karşılaştırması istediğinde tetiklenir. Also use when: portfolio.config.json `active_projects` listesi doluyken (1-12 entry, schema maxItems=12); her aktif projenin master.xlsx'i mevcut (eksikler graceful skip + warning); tek bir pass'te tüm aktif projelerin dashboard KPI snapshot + master_task status karşılaştırması raporlanır; weekly-summary ya da portfolio-weekly-brief öncesinde portfolio-wide t...

为什么在 TypingMind 中使用 Portfolio Overview?

因为您只需安装一次,就能搭配任何模型使用。Portfolio Overview 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Portfolio Overview?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/popiliadam/platinum-seo-engine/tree/main/skills/reporting/portfolio-overview。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Portfolio Overview?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Portfolio Overview 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Portfolio Overview 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Portfolio Overview AI 技能免费吗?

是的。popiliadam 已在 GitHub 上根据 AGPL-3.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇