Community编程与开发github.com

alfathafp/portofolio-web-design

发现并调用智能体技能。用于启动会话时,或需要判断当前工作应使用哪个技能或工作流时。这是一个元技能,统领所有其他技能的发现与调用。

portofolio-web-design 是什么?

Agent Skills 是一套按开发阶段组织的工作流技能集合,每项技能都封装了高级工程师遵循的特定流程。这个元技能帮助开发者或 AI 智能体用户发现并应用适合当前任务的技能。它支持 Claude Code、Cursor、Codex 等主流 AI 编码 Agent 平台。该技能通过一个清晰的决策树来指导技能发现:从任务抵达开始,根据用户需求确定是进行需求挖掘、细化想法、规范驱动开发、增量实现,还是测试、调试、代码审查、部署等。核心操作行为包括:明确假设、主动管理困惑、必要时提出反对、坚持简化、保持范围纪律,以及验证而非假设。最终,技能通过“定义-计划-构建-验证-审查-发布”的完整生命周期序列,确保软件开发过程的严谨性和可重复性。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/alfathafp/portofolio-web-design/tree/HEAD/.agents/skills/using-agent-skills

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

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

文档

使用智能体技能

概述

智能体技能是一套按开发阶段组织的工作流技能集合。每项技能都封装了高级工程师遵循的特定流程。此元技能帮助你发现并应用适合当前任务的技能。

技能发现

当任务抵达时,确定开发阶段并应用相应的技能:

任务抵达
    │
    ├── 还不知道想要什么? ──────────→ interview-me
    ├── 有粗线条想法,需要变体? ─────→ idea-refine
    ├── 新项目/功能/变更? ──────────→ spec-driven-development
    ├── 没有书面质量标准? ──────────→ constraint-driven-development
    ├── 有规范,需要分解任务? ──────→ planning-and-task-breakdown
    ├── 实现代码? ──────────────────→ incremental-implementation
    │   ├── UI 工作? ───────────────→ frontend-ui-engineering
    │   ├── API 工作? ──────────────→ api-and-interface-design
    │   ├── 需要更好的上下文? ──────→ context-engineering
    │   ├── 需要文档验证代码? ──────→ source-driven-development
    │   └── 高风险/不熟悉代码? ─────→ doubt-driven-development
    ├── 编写/运行测试? ─────────────→ test-driven-development
    │   └── 基于浏览器? ────────────→ browser-testing-with-devtools
    ├── 出问题了? ──────────────────→ debugging-and-error-recovery
    ├── 审查代码? ──────────────────→ code-review-and-quality
    │   ├── 过于复杂? ──────────────→ code-simplification
    │   ├── 安全问题? ──────────────→ security-and-hardening
    │   └── 性能问题? ──────────────→ performance-optimization
    ├── 提交/分支操作? ─────────────→ git-workflow-and-versioning
    ├── CI/CD 流水线工作? ──────────→ ci-cd-and-automation
    ├── 废弃/迁移? ─────────────────→ deprecation-and-migration
    ├── 编写文档/ADRs? ─────────────→ documentation-and-adrs
    ├── 添加日志/指标/告警? ────────→ observability-and-instrumentation
    └── 部署/发布? ────────────────→ shipping-and-launch

核心操作行为

以下行为在任何时候、所有技能中均适用。它们是强制性的。

1. 明确假设

在实现任何非琐碎的事情之前,明确陈述你的假设:

我做出的假设:
1. [关于需求的假设]
2. [关于架构的假设]
3. [关于范围的假设]
→ 现在纠正我,否则我将按此进行。

不要默默地填补模糊的需求。最常见的失败模式是做出错误的假设并未经检查就继续执行。尽早暴露不确定性——这比返工成本更低。

2. 主动管理困惑

当你遇到不一致、冲突的需求或不明确的规范时:

  1. 停止。 不要猜测着继续。
  2. 明确说出具体的困惑点。
  3. 呈现权衡或提出澄清性问题。
  4. 等待解决后再继续。

错误做法: 默默地选择一种解释并希望它是正确的。 正确做法: “我在规范中看到 X,但在现有代码中看到 Y。哪个优先?”

3. 必要时提出反对

你不是一个只会说“是”的机器。当某个方法存在明显问题时:

  • 直接指出问题
  • 解释具体的负面影响(尽可能量化——比如“这增加约 200ms 延迟”,而不是“这可能会变慢”)
  • 提出替代方案
  • 如果人类在掌握全部信息后仍然决定采用原方案,则接受该决定

谄媚是一种失败模式。“当然可以!”然后实现一个糟糕的想法对任何人都没有帮助。诚实的技术分歧比虚假的一致更有价值。

4. 坚持简化

你的自然倾向是过度复杂化。主动抵制这种倾向。

在完成任何实现之前,问自己:

  • 是否可以用更少的代码行完成?
  • 这些抽象是否值得其带来的复杂性?
  • 一位资深工程师看到后会问“你为什么不用更简单的方式...?”吗?

如果你写了 1000 行而 100 行就够了,那你就失败了。倾向于平淡、显而易见的解法。聪明是昂贵的。

5. 保持范围纪律

只动你被要求动的内容。

不要:

  • 移除你不理解的注释
  • “清理”与任务无关的代码
  • 重构相邻系统作为副作用
  • 未经明确批准就删除看似未使用的代码
  • 添加规范中没有、仅仅因为“看起来有用”的功能

你的工作是手术刀般的精准,不是未经请求的翻新。

6. 验证,而非假设

每个技能都包含验证步骤。任务在验证通过之前不算完成。“看起来对”永远不够——必须有证据(通过的测试、构建输出、运行时数据)。

每项技能的验证是本地的检查。适用于每个变更(无论激活哪个技能)的项目级标准是“完成定义”:测试通过、无回归、运行时行为已验证、文档已更新。参见 ../../references/definition-of-done.md。它补充而非取代每项任务的验收标准。

需要避免的失败模式

这些是看似高效但实际制造问题的微妙错误:

  1. 做出错误假设却不检查
  2. 不管理自己的困惑——迷失方向时还硬冲
  3. 不暴露你发现的矛盾
  4. 不呈现非明显决策中的权衡
  5. 对有明显问题的方法谄媚(“当然可以!”)
  6. 过度复杂化代码和 API
  7. 修改与任务无关的代码或注释
  8. 移除你不完全理解的内容
  9. 因为“显而易见”就不写规范直接构建
  10. 因为“看起来没问题”就跳过验证

技能规则

  1. 开始工作前检查是否有适用的技能。 技能封装了预防常见错误的流程。

  2. 技能是工作流,而非建议。 按顺序执行步骤。不要跳过验证步骤。

  3. 多个技能可以同时适用。 一个功能实现可能涉及 idea-refine → spec-driven-development → planning-and-task-breakdown → incremental-implementation → test-driven-development → code-review-and-quality → code-simplification → shipping-and-launch 的序列。

  4. 不确定时,从规范开始。 如果任务非琐碎且没有规范,从 spec-driven-development 开始。

生命周期序列

对于一个完整的功能,典型的技能序列是:

1.  interview-me                → 提取用户真正想要的东西
2.  idea-refine                 → 细化模糊的想法
3.  spec-driven-development     → 定义要构建的内容
4.  planning-and-task-breakdown → 分解成可验证的块
5.  context-engineering         → 加载正确的上下文
6.  source-driven-development   → 根据官方文档验证
7.  incremental-implementation  → 逐片构建
8.  observability-and-instrumentation → 边构建边埋点(与第 7-9 步并行运行,不放在其后)
9.  doubt-driven-development    → 对非琐碎决策进行飞行中交叉检查
10. test-driven-development     → 证明每个片都工作
11. code-review-and-quality     → 合并前审查
12. code-simplification         → 在保留行为的同时减少不必要的复杂性
13. git-workflow-and-versioning → 干净的提交历史
14. documentation-and-adrs      → 记录决策
15. deprecation-and-migration   → 安全地淘汰旧系统并迁移用户(需要时)
16. shipping-and-launch         → 安全部署

并非每个任务都需要所有技能。一个 bug 修复可能只需要:debugging-and-error-recovery → test-driven-development → code-review-and-quality。

快速参考

阶段技能一句话总结
定义interview-me在任何计划、规范或代码之前,挖掘用户真正想要的东西
定义idea-refine通过结构化的发散和收敛思维来细化想法
定义spec-driven-development先写需求和验收标准,再写代码
规划planning-and-task-breakdown分解成小的、可验证的任务
构建incremental-implementation垂直切片,每个切片测试后再扩展
构建source-driven-development在实现前根据官方文档进行验证
构建doubt-driven-development对抗性的、基于全新上下文的审查,检查每个非琐碎决策
构建context-engineering在正确的时间提供正确的上下文
构建frontend-ui-engineering具有可访问性的生产级 UI
构建api-and-interface-design具有清晰契约的稳定接口
验证test-driven-development先写失败测试,再让它通过
验证browser-testing-with-devtools使用 Chrome DevTools MCP 进行运行时验证
验证debugging-and-error-recovery复现 → 定位 → 修复 → 防止复发
审查code-review-and-quality带质量门的五维审查
审查code-simplification保留行为的同时减少不必要的复杂性
审查security-and-hardeningOWASP 防护、输入验证、最小权限
审查performance-optimization先测量,只优化重要的部分
发布git-workflow-and-versioning原子提交、干净历史
发布ci-cd-and-automation每次变更自动执行质量门
发布deprecation-and-migration安全地移除旧系统并迁移用户
发布documentation-and-adrs记录为什么,而不仅仅是做什么
发布observability-and-instrumentation结构化日志、RED 指标、追踪、基于症状的告警
发布shipping-and-launch启动前检查清单、监控、回滚计划

Individual skills in this repo

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

alfathafp/portofolio-web-design

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).

alfathafp/portofolio-web-design

Tests in real browsers via Chrome DevTools MCP. Use when building or debugging anything that runs in a browser. Use when you need to inspect the DOM, capture console errors, analyze network requests, profile performance, or verify visual output with real runtime data. Requires the chrome-devtools MCP server to be configured.

alfathafp/portofolio-web-design

Automates CI/CD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test runners in CI, or establish deployment strategies.

alfathafp/portofolio-web-design

Conducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch. Use when asked to review a diff or a pull request, even when the diff is pasted inline.

alfathafp/portofolio-web-design

Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity.

alfathafp/portofolio-web-design

Establishes a project's quality bar as a written contract and stops agents quietly lowering it. Interviews the user on which dimensions matter, supplies sane default thresholds when they have no number in mind, records everything in CONSTRAINTS.md, and watches the diff for a weakened bar — new @ts-ignore or eslint-disable suppressions, skipped or deleted tests, assertions stripped out, unimplemented stubs, thresholds edited down. Use when no quality bar is written down, when the user says "set up constraints" or "define our standards", when the user wants dimensions they care about — accessibility, web performance, coverage — set up as enforced constraints, when an agent keeps silencing checks or skipping tests to get to green, when you need a coverage or performance threshold and don't know what number to pick, or when an agent writes more code than anyone will read.

alfathafp/portofolio-web-design

Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure rules files and context for a project.

alfathafp/portofolio-web-design

Guides systematic root-cause debugging. Use when tests fail, builds break, something that worked yesterday broke, behavior doesn't match expectations, or you encounter any unexpected error. Use when you need to figure out what broke and why — a systematic approach to finding and fixing the root cause rather than guessing.

alfathafp/portofolio-web-design

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

alfathafp/portofolio-web-design

Manages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code.

alfathafp/portofolio-web-design

Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.

alfathafp/portofolio-web-design

Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies

alfathafp/portofolio-web-design

Records decisions and documentation. Use when you need to document an architecture decision (ADR) or the reasoning behind a design choice, when changing public APIs, shipping features, or when you need to record context that future engineers and agents will need to understand the codebase.

alfathafp/portofolio-web-design

Subjects every non-trivial decision to a fresh-context adversarial review before it stands. Use when you want every assumption cross-examined before proceeding, when stress-testing a plan for hidden failure modes, when correctness matters more than speed, when working in unfamiliar code, when stakes are high (production auth, security-sensitive logic, a high-stakes migration, irreversible operations), or any time a confident output would be cheaper to verify now than to debug later.

alfathafp/portofolio-web-design

Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available

alfathafp/portofolio-web-design

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work

alfathafp/portofolio-web-design

Builds production-quality, accessible, responsive user-facing UIs. Use when building or modifying interfaces and pages, creating components, implementing layouts, meeting WCAG accessibility requirements, managing state, or when the output needs to look and feel production-quality rather than AI-generated.

alfathafp/portofolio-web-design

Structures git workflow practices. Use when making any code change. Use when committing, branching, resolving conflicts, splitting uncommitted work in a messy working tree into clean atomic commits, opening or reviewing a pull request (PR), pushing to a remote, or when you need to organize work across multiple parallel streams. Use when cutting a release, choosing a semantic version bump, tagging, or writing a changelog.

alfathafp/portofolio-web-design

Refines raw ideas into sharp, actionable concepts through structured divergent and convergent thinking. Use when an idea is still vague, when you need to stress-test assumptions before committing to a plan, or when you want to expand options before converging on one. Triggers on "ideate", "refine this idea", or "stress-test my plan".

alfathafp/portofolio-web-design

Guides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend.

相关技能