Communitygithub.com

cdcoonce/Portfolio_Website

重写 Wiki 页面的散文部分以反映代码库当前状态。它读取源文件来理解上下文,然后仅更新 `<!-- claude:prose -->` 和 `<!-- claude:prose:end -->` 标记之间的内容,绝不触及 `<!-- generated:start -->` 到 `<!-- generated:end -->` 的块。支持使用 `/update-wiki {PageName}` 定位单个页面。

Portfolio_Website 是什么?

这是一个专门用于 Claude Code 的技能,旨在自动刷新 Wiki 页面中由人工编写的散文部分,使其与当前代码库保持一致。它通过识别 `<!-- claude:prose -->` 和 `<!-- claude:prose:end -->` 标记来定位需要更新的内容,并读取项目中的相关源文件(如 JavaScript、Lambda 函数、配置文件等)来构建上下文,从而重写这些散文内容。该技能设计为与自动生成的指标块(由 `<!-- generated:start -->` 和 `<!-- generated:end -->` 标记)共存,并严格避免修改这些区域。它支持两种调用方式:`/update-wiki` 更新所有包含散文块的页面,或 `/update-wiki Architecture` 仅更新指定页面(如 `wiki/Architecture.md`)。对于架构决策日志(Architecture-Decision-Log.md),由于没有标记,Claude 拥有整个文件的编辑权,可以追加新条目但不能修改现有条目。更新完成后,它会提示用户运行 `/commit` 来保存更改。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/cdcoonce/Portfolio_Website/tree/HEAD/.claude/skills/update-wiki

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

更新 Wiki 技能

刷新 Wiki 页面中手写的散文部分,以反映代码库的当前状态。由协调器(orchestrator)管理的生成指标/数据块绝不应当被触及。

何时调用

  • 用户输入 /update-wiki — 更新所有包含散文块的页面
  • 用户输入 /update-wiki Architecture — 仅更新 wiki/Architecture.md
  • 用户说“刷新 wiki 散文”、“更新入门叙述”、“重写架构文档”
  • 在重大重构更改了系统设计叙述之后

此技能的工作步骤

  1. 确定范围。 如果提供了页面名称参数(例如 Architecture),则解析为 wiki/{PageName}.md。否则,对下方列出的所有包含散文块的页面进行排队。

  2. 对于每个目标页面: a. 读取 Wiki 页面文件。 b. 识别每个 <!-- claude:prose --> ... <!-- claude:prose:end --> 块。 c. 读取下方页面注册表中列出的相关源文件以构建上下文。 d. 重写标记之间的内容,使其准确反映当前代码库 — 保持相同的一般结构(标题、段落顺序),除非事实错误。 e. 将更新后的内容写回文件,同时精确保留标记。

  3. 绝不触及生成的块。 <!-- generated:start --> ... <!-- generated:end --> 内的任何内容都必须保持字节级一致。这些块由 Wiki 协调器脚本维护。

  4. 架构决策日志完全由 Claude 拥有。 wiki/Architecture-Decision-Log.md 没有 generated 块,也没有 claude:prose 标记。Claude 维护整个文件。更新时,为自上次记录条目以来做出的任何架构决策追加新的 ADL 条目。请勿修改现有条目。

  5. 提交提示。 所有页面更新后,提醒用户:

    “Wiki 散文已更新。运行 /commit 保存更改,然后推送到 Wiki 远程仓库。”

包含散文块的页面及其源文件

wiki/Architecture.md

散文块目的: 系统设计叙述 — 解释模块职责、数据流,以及静态站点 + Lambda 聊天代理如何协同工作。

要读取的相关源文件:

  • WebContent/js/main.js
  • WebContent/js/filter.js
  • WebContent/js/carousel.js
  • WebContent/js/utils.js
  • lambda/lambda_function.py
  • index.html(用于页面结构上下文)
  • projects.html(用于页面结构上下文)

wiki/Lambda-Chat-Agent.md

散文块目的: 代理设计原理 — 解释 Lambda 架构、知识库加载、提示构建和响应处理。

要读取的相关源文件:

  • lambda/lambda_function.py
  • lambda/context/(如果存在,所有 .md 文件)

wiki/Contributing.md

散文块目的: 新手入门叙述 — 为新贡献者解释开发工作流、测试理念和项目约定。

要读取的相关源文件:

  • CLAUDE.md
  • Makefile
  • package.json
  • pyproject.toml
  • .github/workflows/ci-cd.yml

wiki/Architecture-Decision-Log.md

特殊处理: 没有 claude:prose 标记。Claude 拥有整个文件。追加新的 ADL 条目;切勿修改现有条目。

要读取的相关源文件:

  • 查看最近的 git 日志以了解重要的架构更改
  • CLAUDE.md 了解当前工具决策
  • lambda/lambda_function.py 了解后端决策

标记保留规则

<!-- claude:prose -->
[Claude 重写此内容]
<!-- claude:prose:end -->
<!-- generated:start -->
[绝不触及 — 由协调器管理的数据]
<!-- generated:end -->
  • 起始和结束标记必须单独成行,且保持不变。
  • 不要在标记内部立即添加额外的空行。
  • 不要嵌套标记。

警告

切勿修改 <!-- generated:start --> ... <!-- generated:end --> 块。 这些块包含由 Wiki 协调器生成的自动指标和表格。修改它们将导致下一次协调器运行时产生合并冲突或静默覆盖您的更改。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cdcoonce/Portfolio_Website

Git commit workflow with enforced conventional commit style. Use when Claude needs to stage and commit changes, craft commit messages, or the user asks to commit, make a commit, or save their work. Ensures consistent commit message format, proper scoping, and atomic commits across the project.

cdcoonce/Portfolio_Website

AI-powered code quality analysis for Python, Markdown, and Mermaid diagrams. Use this skill when: (1) reviewing code for quality issues, (2) checking Python files for PEP8 violations, unused code, missing type hints, docstring problems, complexity issues, or potential runtime errors, (3) validating Markdown documentation for broken links, heading structure, or formatting issues, (4) validating Mermaid diagram syntax, (5) the user asks for a "code review" or "quality check", (6) analyzing code snippets pasted in conversation, or (7) suggesting and applying fixes for code quality issues.

cdcoonce/Portfolio_Website

Deploy the portfolio chat agent Lambda function to AWS. Use when the user asks to deploy, redeploy, push to Lambda, update the chat agent, or after updating context files or lambda_function.py. Rebuilds the knowledge base, packages dependencies, and deploys to AWS Lambda.

cdcoonce/Portfolio_Website

Generate multiple radically different interface designs for a module using parallel sub-agents. Use when user wants to design an API, explore interface options, compare module shapes, or mentions "design it twice".

cdcoonce/Portfolio_Website

Orchestrate the full GitHub-issues-driven development lifecycle. 7-phase pipeline from brainstorm through PR with state tracking and cross-conversation resume. Use when user says "dev cycle", "development workflow", "full development pipeline", or invokes /dev-cycle.

cdcoonce/Portfolio_Website

Production Python coding standards with automatic version detection (3.10-3.13). Use when writing, reviewing, or refactoring Python to ensure adherence to modern type syntax, LBYL exception handling, pathlib operations, ABC-based interfaces, and production-tested patterns. Not Dagster-specific - applies to any Python project.

cdcoonce/Portfolio_Website

Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.

cdcoonce/Portfolio_Website

GitHub CLI (gh) integration for managing issues, pull requests, branches,

cdcoonce/Portfolio_Website

Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".

cdcoonce/Portfolio_Website

Explore a codebase to find opportunities for architectural improvement, focusing on making the codebase more testable by deepening shallow modules. Use when user wants to improve architecture, find refactoring opportunities, consolidate tightly-coupled modules, or make a codebase more AI-navigable.

cdcoonce/Portfolio_Website

CEO/founder-mode plan review. Rethink the problem, find the 10-star product, challenge premises, expand scope when it creates a better product. Three modes: SCOPE EXPANSION (dream big), HOLD SCOPE (maximum rigor), SCOPE REDUCTION (strip to essentials). Use when the user asks for a plan review, CEO review, mega review, or wants a plan challenged/stress-tested before implementation.

cdcoonce/Portfolio_Website

Break a PRD into independently-grabbable GitHub issues using tracer-bullet vertical slices. Use when user wants to convert a PRD to issues, create implementation tickets, or break down a PRD into work items.

cdcoonce/Portfolio_Website

Turn a PRD into a multi-phase implementation plan using tracer-bullet vertical slices, saved as a local Markdown file in docs/plans/. Use when user wants to break down a PRD, create an implementation plan, plan phases from a PRD, or mentions "tracer bullets".

cdcoonce/Portfolio_Website

Generate or update the `.claude/docs/project.md` file that gives Claude project-specific context. Use this skill when the user asks to create, update, regenerate, or refresh project context, or says things like "update project.md", "generate project context", "this repo needs a project.md", or "Claude doesn't know about this project". Also trigger when onboarding Claude to a new repository for the first time.

cdcoonce/Portfolio_Website

Generate comprehensive, high-quality README.md files for code repositories. Use this skill whenever the user asks to create, write, generate, update, or improve a README for any project or repository. Also trigger when the user says things like "document this project", "write docs for this repo", "this repo needs a README", "help me onboard developers to this codebase", or asks for project documentation in markdown. Even if the user just says "README" or "readme" in the context of a codebase, use this skill.

cdcoonce/Portfolio_Website

Create a detailed refactor plan with tiny commits via user interview, then file it as a GitHub issue. Use when user wants to plan a refactor, create a refactoring RFC, or break a refactor into safe incremental steps.

cdcoonce/Portfolio_Website

Set up pre-commit hooks for the current repo. Use when user wants to add pre-commit hooks, configure commit-time linting, formatting, type checking, or testing. Triggers on "pre-commit", "git hooks", "linting hooks", or /setup-pre-commit.

cdcoonce/Portfolio_Website

Test-driven development with red-green-refactor loop. Use when user wants to build features or fix bugs using TDD, mentions "red-green-refactor", wants integration tests, or asks for test-first development.

cdcoonce/Portfolio_Website

Triage a bug or issue by exploring the codebase to find root cause, then create a GitHub issue with a TDD-based fix plan. Use when user reports a bug, wants to file an issue, mentions "triage", or wants to investigate and plan a fix for a problem.

cdcoonce/Portfolio_Website

Create a PRD through user interview, codebase exploration, and module design, then submit as a GitHub issue. Use when user wants to write a PRD, create a product requirements document, or plan a new feature.

相关技能