Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计通过

sphere-feature-workflow球体特征工作流程

Agent Skill

sphere-feature-workflow 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

474

周安装

19

GitHub Stars

公开资料未说明

下载量

154
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:sphere-feature-workflow(球体特征工作流程)
来源仓库:https://github.com/go-sphere/skills
仓库路径:skills/sphere-feature-workflow
安装命令:
npx skills add https://github.com/go-sphere/skills --skill sphere-feature-workflow
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/go-sphere/skills --skill sphere-feature-workflow

简介

用于查找、检索和筛选相关信息。sphere-feature-workflow 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合根据关键词或任务场景快速定位候选结果。
  • 可结合来源仓库和原始 README 核验具体用法。
  • 安装前建议确认权限范围和维护状态。
  • 注意是否会触发联网、命令执行或文件读写操作。

SKILL.md

Sphere Feature Workflow

Overview

Implement merge-ready feature changes in go-sphere scaffold projects while keeping proto, schema, service, and render layers synchronized.

This skill is scaffold-specific and required for any go-sphere feature work. Prefer repository conventions over generic architecture patterns unless the user explicitly requests otherwise.

Required Reading Order

Read these references in order before making edits:

  1. references/workflow-matrix.md - Classify change type and select workflow
  2. references/source-of-truth-and-generated-boundaries.md - Understand what files to edit vs. regenerate
  3. references/change-checklist.md - Verify complete coverage before delivery

Scope

You MUST use this skill when the task involves any of the following:

TriggerExamples
Proto file changesAdding RPC methods, HTTP annotations, validation, error enums
Ent schema changesAdding fields, relations, indexes, policy changes
Service implementationImplementing generated interfaces, business logic
Generation commandsRunning make gen/proto, make gen/docs, make gen/wire
Cross-layer workAnything affecting both proto and schema layers
Bind/map registrationChanges to cmd/tools/bind/main.go#createFilesConf

Workflow Selection (Critical - Do Not Skip)

Classify the task FIRST, then run the matching workflow. See references/workflow-matrix.md for detailed preflight checks.

WorkflowStart PointUse When
Contract-firstproto/**Adding/changing service methods, HTTP annotations, errors, validation
Schema-firstinternal/pkg/database/schema/**Adding/changing entities, fields, indexes, relationships
Service-onlyinternal/service/** + internal/pkg/dao/**Behavior changes WITHOUT contract/schema changes
Cross-layerContract-first or Schema-firstBoth proto AND schema layers affected

If classification is unclear, answer these questions first:

  1. Does the request change external API behavior, route shape, validation, or error contract? → Contract-first
  2. Does the request change persisted fields, entity relations, or index/query strategy? → Schema-first
  3. Does the request only change orchestration/query/render logic? → Service-only
  4. If multiple "yes", treat as Cross-layer

Reuse-First Policy (Required)

Before implementing new capability, check existing Sphere packages first. DO NOT duplicate behavior already covered by:

CategoryAvailable Packages
Lifecycle/bootstrappingcore/boot, core/task, server/boot
HTTP transportserver/httpz, httpx
Auth/authorizationserver/auth/*, server/middleware/auth
Middlewareserver/middleware/* (cors, ratelimiter, selector, online)
Cachingcache/* (Redis, Memory, BadgerDB, etc.)
Storagestorage/* (S3, Qiniu, Local)
Logginglog/*
Message Queuemq/* (Redis, In-memory)
Searchsearch/* (Meilisearch)
Infrastructureinfra/* (Redis client, SQLite)
Utilitiesutils/*, test/*
Core helperscore/pool, core/safe

Always document your reuse decision in the final output.

Execution Workflows

Contract-first Workflow

1. Edit proto/** (service/method, HTTP annotation, validation, errors)
2. Run: make gen/proto
3. Resolve impacts in:
   - internal/service/**    (implement generated interface)
   - internal/pkg/dao/**   (query/mutation support)
   - internal/pkg/render/** non-generated files
4. If docs changed: make gen/docs
5. Run: go test ./...
6. Verify generated diffs are consumed

Schema-first Workflow

1. Edit internal/pkg/database/schema/** (field, relation, index)
2. Verify bind/map: cmd/tools/bind/main.go#createFilesConf
3. Review WithIgnoreFields for sensitive/system fields
4. Run: make gen/proto
5. Resolve impacts in service/dao/render
6. Run: go test ./...
7. Verify query paths align with index intent

Service-only Workflow

1. Edit ONLY non-generated code:
   - internal/service/**
   - internal/pkg/dao/**
   - internal/pkg/render/** (non-generated)
   - optional: internal/biz/**
2. Keep proto/schema STABLE
3. Run: go test ./...
4. Verify no API regression

Hard Rules (Non-Negotiable)

#RuleFailure Mode
1Edit source-of-truth only; NEVER patch generated filesGenerated code overwritten on next make gen
2Run make gen/proto after ANY proto/schema changeStale generated code causes compile/behavior issues
3Run make gen/docs when HTTP contract changesAPI docs out of sync
4Run make gen/wire when DI signatures changeWire errors, runtime panics
5Update createFilesConf for new entity exposureBind/map missing, runtime errors
6Use WithIgnoreFields for timestamps, soft-delete, secretsData leakage
7Keep business errors in owning service protoError pollution across services
8Block on route conflicts or unconsumed generated changesRuntime routing/behavior bugs
9NEVER edit entbind/** or entmap/** filesChanges lost on regeneration

Standard Commands

CommandPurpose
make gen/protoEnt + proto + bind/map generation (most common)
make gen/dbEnt + autoproto generation
make gen/docsOpenAPI/Swagger refresh
make gen/wireDI wiring refresh
make gen/dtsTypeScript type generation
make gen/allRun all generation commands
go test./...Validation

Proto Organization

PackagePurpose
sphere/bindingRequest binding annotations (URI, query, header, body)
sphere/errorsError definitions and helpers
sphere/optionsCommon option patterns

Code Generation Chain: protoc-gen-goprotoc-gen-sphere-bindingprotoc-gen-sphereprotoc-gen-sphere-errorsprotoc-gen-route

HTTP Framework (httpx)

The server/httpz package uses httpx as its foundation - a unified HTTP framework abstraction that supports multiple backends:

  • ginx (Gin), fiberx (Fiber), echox (Echo), hertzx (Hertz)

Core interfaces: Handler, Middleware, Router, Engine, Context. All Sphere HTTP services use these abstractions.

Failure Conditions (Block Delivery If)

  1. Workflow type not explicitly classified
  2. Required generation commands skipped
  3. Generated diffs exist but NOT consumed by service/dao/render
  4. Generated files manually edited
  5. Bind/map or ignore-field policy missed
  6. Compatibility impact NOT reported

When a failure condition is hit, output Blocking Issues first, then a fix plan.

Final Output Contract (Required Format)

Use this exact section order when reporting completion:

## Scope
[What was changed]

## Workflow Selection
[Contract-first / Schema-first / Service-only / Cross-layer]

## Reuse Decision
[What existing packages were used, or why new code was needed]

## Source-of-Truth Files
[List of files edited]

## Generation Commands
[Commands run: make gen/proto, make gen/docs, etc.]

## Behavior/Compatibility Notes
[API changes, breaking changes, migration needs]

## Validation
[Tests run, results]

## Blocking Issues
[Only if applicable - describe issue + fix plan]

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.84%
按下载量换算54

Claude

27.74%
按下载量换算43

Cursor

19.36%
按下载量换算30

Gemini CLI

9.34%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills