Communitygithub.com

Audomsub/Tiktok-Shop

将当前对话和代码库理解转化为规范,并发布到项目问题跟踪器:无需访谈,仅综合已讨论的内容。

Tiktok-Shop 是什么?

该技能旨在从当前对话上下文和现有代码库理解中自动生成规范,无需向用户提问或进行访谈。它适合在开发流程中用于快速捕获和记录决策,尤其当开发者已有足够信息撰写规范时。其工作流程首先探索代码库当前状态(如未探索),并使用项目领域术语和架构决策记录(ADR)。然后勾勒测试边界,优先采用现有边界,并尽量使用最高层边界,以减少整个代码库的边界数量(理想情况为一个)。接着使用预设模板编写规范,内容涵盖问题陈述、解决方案、详细用户故事列表(格式化为`As an <actor>, I want a <feature>, so that <benefit>`)、实现决策(如模块、接口、技术澄清、架构决策、schema变更、API契约,但不包含具体文件路径或代码片段,除非是从原型中提取的决策关键部分)、测试决策(良好测试的描述、被测试模块、相关先例)、范围外内容以及进一步笔记。最后将规范发布到项目问题跟踪器,并应用`ready-for-agent` 分诊标签。该技能适用于支持此工作流的AI Agent平台,如Claude Code、Cursor、Codex等。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Audomsub/Tiktok-Shop/tree/HEAD/.agents/skills/to-spec

在你喜欢的 AI 中提问

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

文档

此技能利用当前对话上下文和代码库理解来生成规范。不要向用户提问,仅综合已掌握的信息。

如果未提供问题跟踪器和分诊标签词汇表,请告知用户运行 /setup-matt-pocock-skills。

流程

  1. 探索仓库以了解代码库当前状态(如果尚未探索)。在规范全程使用项目领域术语词汇表,并尊重所涉区域的任何 ADR。

  2. 勾勒出将要测试该功能的边界。优先采用现有边界而非新建边界。使用尽可能高的边界。如果需要新边界,请在尽可能高的位置提出。整个代码库中的边界越少越好——理想数量为一。

与用户确认这些边界是否符合他们的期望。

  1. 使用以下模板编写规范,然后将其发布到项目问题跟踪器。应用 ready-for-agent 分诊标签——无需额外分诊。

问题陈述

用户面临的问题,从用户角度出发。

解决方案

针对问题的解决方案,从用户角度出发。

用户故事

一个长且带编号的用户故事列表。每个用户故事格式应为:

  1. 作为 <角色>,我想要 <功能>,以便 <收益>

此用户故事列表应极其详尽,涵盖该功能的所有方面。

实现决策

做出的实现决策列表。可以包括:

  • 将构建/修改的模块
  • 将修改的模块的接口
  • 来自开发者的技术澄清
  • 架构决策
  • Schema 变更
  • API 契约
  • 特定交互

不要包含具体文件路径或代码片段。它们可能很快就会过时。

例外:如果某个原型生成的代码片段比散文更精确地编码了某个决策(状态机、reducer、schema、类型形状),则在相关决策中内联该片段,并简要说明它来自原型。仅保留包含决策的核心部分,而非工作演示,只保留重要部分。

测试决策

做出的测试决策列表。包括:

  • 对良好测试的描述(仅测试外部行为,不测试实现细节)
  • 将要测试的模块
  • 测试的先例(即代码库中类似类型的测试)

范围外

此规范中不涉及的内容描述。

进一步笔记

关于该功能的任何进一步说明。

Individual skills in this repo

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

Audomsub/Tiktok-Shop

Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's documented coding standards?) and Spec (does the code match what the originating issue/spec asked for?). Runs both reviews in parallel sub-agents and reports them side by side. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to \"review since X\".

Audomsub/Tiktok-Shop

A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

Audomsub/Tiktok-Shop

Implement a piece of work based on a spec or set of tickets.

Audomsub/Tiktok-Shop

Postgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill BEFORE writing or changing anything that lives in a Postgres database: creating or altering tables and columns (including choosing column types), schema design, migrations and declarative schema files, RLS policies and the tests that verify them, indexes, triggers, database functions, queues and scheduled jobs (pg_cron, pgmq), vector/semantic search (pgvector), and restoring dumps (pg_restore) or importing data. Also load it when diagnosing slow queries, high CPU, timeouts, EXPLAIN plans, connection exhaustion, locking, bloat, or rows visible to the wrong user or tenant. This is not just a performance guide — schema, migration, security, and SQL authoring tasks need these rules too, even for a one-column change or a single query.

Audomsub/Tiktok-Shop

Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client libraries and SSR integrations (supabase-js, @supabase/ssr) in Next.js, React, SvelteKit, Astro, Remix; auth issues (login, logout, sessions, JWT, cookies, getSession, getUser, getClaims, RLS); Supabase CLI or MCP server; schema changes, migrations, declarative schemas, security audits, Postgres extensions (pg_graphql, pg_cron, pg_vector); debugging and troubleshooting errors or unexpected behavior on Supabase projects (HTTP errors, Postgres errors, RLS surprises, permission denied, schema cache issues, timeouts, Edge Function crashes, Realtime drops, Storage failures) and reading or querying logs (Logs Explorer, ClickHouse).

Audomsub/Tiktok-Shop

Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker (edges as text in one file per ticket locally, or native blocking links on a real tracker).

相关技能