技能大全

发现合适的技能,快速扩展 AI 智能体的专业能力。

显示 915 个技能

startup-metrics-framework
当用户询问“关键创业指标”、“SaaS指标”、“客户获取成本与生命周期价值”、“单位经济效益”、“烧钱倍数”、“40法则”、“平台型业务指标”,或请求关于跟踪和优化业务绩效指标的指导时,应使用此技能。
商业分析查看
stitch-ui-design
谷歌Stitch AI界面设计工具高效提示词创作专家指南。适用于用户在Stitch中进行UI/UX设计、创建应用界面、生成移动端/网页设计,或需要协助构建Stitch提示词的场景。涵盖提示词结构框架、细节描述技巧、迭代优化策略,以及Stitch设计到代码的完整工作流。
开发工具查看
stride-analysis-patterns
应用STRIDE方法论系统性地识别威胁。适用于分析系统安全性、进行威胁建模会议或制定安全文档时使用。
其他工具查看
stripe-integration
集成Stripe支付处理系统,实现符合PCI标准的稳健支付流程,包括结账、订阅和网络钩子功能。适用于集成Stripe支付、构建订阅系统或实施安全结账流程的场景。
开发工具查看
subagent-driven-development
在当前会话中执行具有独立任务的实施方案时使用
办公自动化查看
supabase-automation
通过Rube MCP(Composio)自动化Supabase数据库查询、表管理、项目管理、存储操作、边缘函数及SQL执行。始终优先使用工具搜索当前数据库架构。
开发工具查看
superpowers-lab
克劳德超能力实验室环境
AI 技能开发查看
swiftui-expert-skill
编写、评审或优化 SwiftUI 代码时,遵循以下最佳实践:采用声明式状态管理,合理拆分可复用视图组件,优化渲染性能与内存效率,全面应用 SwiftUI 现代 API(如 `Observable` 宏与 `View` 协议扩展),结合 Swift 结构化并发处理异步任务,并为 iOS 26+ 适配 Liquid Glass 设计系统的动态玻璃材质与景深效果。适用于新功能开发、现有视图重构、代码质量评审及现代化 SwiftUI 模式迁移场景。
开发工具查看
systematic-debugging
遇到任何错误、测试失败或意外情况时,在提出修复方案前使用
开发工具查看
systems-programming-rust-project
我作为Rust项目架构专家,将为您生成一个生产级Rust应用程序的完整项目脚手架。以下是一个包含Cargo工具链、合理模块组织和测试结构的完整项目模板: ## 项目结构 ``` myapp/ ├── Cargo.toml ├── .cargo/ │ ├── config.toml │ └── credentials.toml ├── .github/ │ ├── workflows/ │ │ ├── ci.yml │ │ ├── release.yml │ │ └── security.yml │ └── dependabot.yml ├── .vscode/ │ └── settings.json ├── src/ │ ├── main.rs │ ├── lib.rs │ ├── config/ │ │ ├── mod.rs │ │ ├── settings.rs │ │ └── environment.rs │ ├── api/ │ │ ├── mod.rs │ │ ├── routes/ │ │ │ ├── mod.rs │ │ │ ├── health.rs │ │ │ └── v1/ │ │ │ ├── mod.rs │ │ │ ├── users.rs │ │ │ └── products.rs │ │ └── middleware/ │ │ ├── mod.rs │ │ ├── auth.rs │ │ └── logging.rs │ ├── core/ │ │ ├── mod.rs │ │ ├── domain/ │ │ │ ├── mod.rs │ │ │ ├── user.rs │ │ │ ├── product.rs │ │ │ └── error.rs │ │ └── services/ │ │ ├── mod.rs │ │ ├── user_service.rs │ │ └── product_service.rs │ ├── infrastructure/ │ │ ├── mod.rs │ │ ├── database/ │ │ │ ├── mod.rs │ │ │ ├── connection.rs │ │ │ ├── migrations/ │ │ │ └── repositories/ │ │ │ ├── mod.rs │ │ │ ├── user_repository.rs │ │ │ └── product_repository.rs │ │ ├── cache/ │ │ │ ├── mod.rs │ │ │ └── redis.rs │ │ └── messaging/ │ │ ├── mod.rs │ │ └── kafka.rs │ └── utils/ │ ├── mod.rs │ ├── logging.rs │ ├── metrics.rs │ └── validation.rs ├── tests/ │ ├── integration/ │ │ ├── api_tests.rs │ │ └── service_tests.rs │ ├── unit/ │ │ ├── domain_tests.rs │ │ └── utils_tests.rs │ └── fixtures/ │ └── test_data.rs ├── migrations/ │ └── 0001_initial.sql ├── scripts/ │ ├── setup.sh │ ├── deploy.sh │ └── healthcheck.sh ├── docker/ │ ├── Dockerfile │ ├── Dockerfile.dev │ └── docker-compose.yml ├── docs/ │ ├── API.md │ └── ARCHITECTURE.md ├── .env.example ├── .gitignore ├── .rustfmt.toml ├── .clippy.toml ├── Makefile └── README.md ``` ## Cargo.toml 配置 ```toml [package] name = "myapp" version = "0.1.0" edition = "2021" authors = ["Your Name <email@example.com>"] description = "Production-ready Rust application" license = "MIT OR Apache-2.0" repository = "https://github.com/yourusername/myapp" readme = "README.md" [features] default = ["sqlx/postgres", "tokio/full"] dev = ["dotenv", "tracing-subscriber"] production = [] [dependencies] # Web框架 actix-web = "4.0" actix-cors = "0.6" actix-rt = "2.0" # 数据库 sqlx = { version = "0.7", features = ["runtime-tokio-rustls", "postgres", "uuid", "chrono"] } tokio-postgres = "0.7" # 序列化/反序列化 serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" # 配置管理 config = "0.13" dotenv = "0.15" # 日志和监控 tracing = "0.1" tracing-subscriber = "0.3" tracing-actix-web = "0.7" metrics = "0.21" metrics-exporter-prometheus = "0.12" # 认证和加密 jsonwebtoken = "9.0" bcrypt = "0.15" argon2 = "0.5" # 验证 validator = { version = "0.16", features = ["derive"] } # 实用工具 chrono = { version = "0.4", features = ["serde"] } uuid = { version = "1.0", features = ["v4", "serde"] } thiserror = "1.0" anyhow = "1.0" lazy_static = "1.4" # 缓存 redis = { version = "0.23", features = ["tokio-comp"] } # 消息队列 rdkafka = "0.35" [dev-dependencies] # 测试框架 tokio = { version = "1.0", features = ["full"] } testcontainers = "0.15" wiremock = "0.5" assertables = "5.0" # 集成测试 reqwest = { version = "0.11", features = ["json"] } [profile.dev] opt-level = 0 debug = true debug-assertions = true overflow-checks = true lto = false panic = 'unwind' incremental = true codegen-units = 256 rpath = false [profile.release] opt-level = 3 debug = false debug-assertions = false overflow-checks = false lto = true panic = 'abort' incremental = false codegen-units = 1 rpath = false [profile.bench] opt-level = 3 debug = false debug-assertions = false overflow-checks = false lto = true panic = 'abort' incremental = false codegen-units = 1 [profile.test] opt-level = 0 debug = 2 debug-assertions = true overflow-checks = true lto = false panic = 'unwind' incremental = true codegen-units = 256 ``` ## 模块组织示例 **src/lib.rs** ```rust pub mod api; pub mod config; pub mod core; pub mod infrastructure; pub mod utils; pub use config::Config; pub use core::error::{Error, Result}; ``` **src/core/domain/error.rs** ```rust use thiserror::Error; #[derive(Error, Debug)] pub enum DomainError { #[error("Validation error: {0}")] ValidationError(String), #[error("Entity not found: {0}")] NotFound(String), #[error("Database error: {0}")] DatabaseError(#[from] sqlx::Error), #[error("Authentication error: {0}")] AuthError(String), } pub type Result<T> = std::result::Result<T, DomainError>; ``` **src/api/routes/v1/users.rs** ```rust use actix_web::{web, HttpResponse, Responder}; use serde::{Deserialize, Serialize}; use validator::Validate; use crate::core::services::user_service::UserService; use crate::core::error::Result; #[derive(Debug, Serialize, Deserialize, Validate)] pub struct CreateUserRequest { #[validate(email)] pub email: String, #[validate(length(min = 8))] pub password: String, pub name: String, } pub async fn create_user( user_service: web::Data<UserService>, req: web::Json<CreateUserRequest>, ) -> Result<impl Responder> { req.validate()?; let user = user_service.create_user(&req.email, &req.password, &req.name).await?; Ok(HttpResponse::Created().json(user)) } ``` ## 测试配置 **tests/integration/api_tests.rs** ```rust use myapp::api::routes::v1::users::CreateUserRequest; use myapp::config::Config; use myapp::infrastructure::database::connection::get_db_pool; use myapp::core::services::user_service::UserService; use actix_web::{test, web, App}; use serde_json::json; #[actix_rt::test] async fn test_create_user() { // 设置测试环境 let config = Config::new().unwrap(); let pool = get_db_pool(&config.database_url).await.unwrap(); let user_service = UserService::new(pool.clone()); // 创建测试应用 let app = test::init_service( App::new() .app_data(web::Data::new(user_service)) .configure(myapp::api::routes::configure) ).await; // 创建请求 let req = test::TestRequest::post() .uri("/api/v1/users") .set_json(&CreateUserRequest { email: "test@example.com".to_string(), password: "password123".to_string(), name: "Test User".to_string(), }) .to_request(); // 发送请求并验证响应 let resp = test::call_service(&app, req).await; assert_eq!(resp.status(), 201); } ``` **tests/unit/domain_tests.rs** ```rust #[cfg(test)] mod tests { use myapp::core::domain::user::User; use uuid::Uuid; #[test] fn test_user_creation() { let user = User::new( Uuid::new_v4(), "test@example.com".to_string(), "Test User".to_string(), ); assert_eq!(user.email, "test@example.com"); assert_eq!(user.name, "Test User"); assert!(user.created_at <= chrono::Utc::now()); } } ``` ## 开发工具配置 **.cargo/config.toml** ```toml [build] target = "x86_64-unknown-linux-gnu" [env] DATABASE_URL = "postgres://user:pass@localhost:5432/myapp_dev" RUST_LOG = "info,myapp=debug" [alias] test-all = "test --all-features" bench = "bench --all-features" lint = "clippy --all-features -- -D warnings" fmt = "fmt --all" ``` **Makefile** ```makefile .PHONY: help build test lint fmt clean docker-up docker-down help: @echo "Available commands:" @echo " build - Build the project" @echo " test - Run all tests" @echo " lint - Run clippy linter" @echo " fmt - Format code with rustfmt" @echo " clean - Clean build artifacts" @echo " docker-up - Start development containers" @echo " docker-down - Stop development containers" build: cargo build --release test: cargo test --all-features lint: cargo clippy --all-features -- -D warnings fmt: cargo fmt --all clean: cargo clean docker-up: docker-compose -f docker/docker-compose.yml up -d docker-down: docker-compose -f docker/docker-compose.yml down ``` 这个脚手架提供了: 1. **清晰的模块分层**(API层、核心业务层、基础设施层) 2. **完整的测试结构**(单元测试、集成测试、测试夹具) 3. **生产级工具链**(CI/CD、Docker、监控、日志) 4. **错误处理**(统一的错误类型和结果包装) 5. **配置管理**(环境变量、配置文件) 6. **数据库迁移**(SQLx迁移支持) 7. **缓存和消息队列**(Redis、Kafka集成) 您可以根据具体需求调整依赖项和模块结构。这个架构遵循了领域驱动设计(DDD)原则,支持微服务架构,并包含了生产环境所需的所有组件。
开发工具查看
tailwind-design-system
使用Tailwind CSS、设计令牌、组件库和响应式模式构建可扩展的设计系统。适用于创建组件库、实施设计系统或标准化UI模式时使用。
开发工具查看
tailwind-patterns
Tailwind CSS v4 核心理念:CSS优先配置、容器查询、现代模式、设计令牌架构。
开发工具查看
tavily-web
利用Tavily API实现网页搜索、内容提取、爬取及研究功能
其他工具查看
tdd-orchestrator
主TDD协调专家,专精红绿重构循环、多智能体工作流协同及全流程测试驱动开发实践。通过AI辅助测试与现代框架,在团队间推行TDD最佳实践规范。主动启用本模块以实现TDD标准化实施与治理。
开发工具查看
tdd-workflow
测试驱动开发工作流原则。红-绿-重构循环。
开发工具查看
tdd-workflows-tdd-cycle
在测试驱动开发(TDD)工作流程中应用TDD循环
开发工具查看
team-collaboration-issue
您是GitHub问题解决专家,专精于系统性错误排查、功能实现与协作开发流程。您的专长涵盖问题分类、根源分析
开发工具查看
team-collaboration-standup-notes
您是专注于异步优先站会实践的专家团队沟通专家,擅长从提交历史中生成AI辅助笔记,并精通高效的远程团队协作模式。
团队协作查看