agentleFS
JIANGEPLUSJIANGEPLUS/senior-developer-codex/.agents/skills/fullstack-dev/SKILL.md

fullstack-dev

Skill0 starsChanged 56 days agoMITView on GitHub

Full-stack backend architecture and frontend-backend integration guide. TRIGGER when: building a full-stack app, creating REST API with frontend, scaffolding backend service, building todo/CRUD/real-time/chat apps, Express + React, Next.js API, Node.js/Python/Go backend, designing service layers, implementing error handling, managing config/auth, setting up API clients, implementing auth flows, handling file uploads, adding real-time features (SSE/WebSocket), hardening for production. DO NOT TRIGGER when: pure frontend UI work, pure CSS/styling, database schema only, simple scripts, bug fixes, single-file changes, adding a small feature to existing code. 触发词:全栈、后端服务、REST API、前后端联调、鉴权、WebSocket、生产加固。

  • Reads credentials

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use aminer-data-search, auto-target-tracker and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • dav-niu474Skill

    aminer-data-search

    使用 AMiner 开放平台 API 进行学术数据查询与分析。当用户需要查询学者信息、论文详情、机构数据、期刊内容或专利信息时使用此 skill。 触发场景:提到 AMiner、学术数据查询、查论文/学者/机构/期刊/专利、学术问答搜索、引用分析、科研机构分析、学者画像、论文引用链、期刊投稿分析等。 支持 6 大组合工作流(学者全景分析、论文深度挖掘、机构研究力分析、期刊论文监控、学术智能问答、专利链分析)以及 28 个独立 API 的直接调用。 即使用户只说"帮我查一下 XXX 学者"或"找找关于 XXX 的论文",也应主动使用此 skill。

    Also in 4 projects that use this

  • dav-niu474Skill

    auto-target-tracker

    自动目标进度追踪器。在对话中检测到目标相关图片(笔记、进度、截图、记录)时,自动调用 VLM 识别关键信息并记录到目标日记。适用于学习管理、健身追踪、工作进度、习惯养成、创作记录等所有目标管理场景。

    Also in 4 projects that use this

  • MiniMax-AISkill

    ios-application-dev

    iOS application development guide covering UIKit, SnapKit, and SwiftUI. Includes touch targets, safe areas, navigation patterns, Dynamic Type, Dark Mode, accessibility, collection views, common UI components, and SwiftUI design guidelines. For detailed references on specific topics, see the reference files. Use when: developing iOS apps, implementing UI, reviewing iOS code, working with UIKit/SnapKit/SwiftUI layouts, building iPhone interfaces, Swift mobile development, Apple HIG compliance, iOS accessibility implementation.

    Also in 4 projects that use this

  • Liang-MHSkill

    stock_analysis

    获取 A 股、基金和港股的实时行情和技术分析数据

    Also in 4 projects that use this

  • +8 more from dav-niu474

The file

Files
SKILL.md

Full-Stack Development Practices

MANDATORY WORKFLOW

触发此 skill 后,必须按以下步骤执行:

Step 0: Gather Requirements

确认以下信息(如用户已指定则跳过):

  1. Stack: 后端+前端语言/框架
  2. Service type: API-only / 全栈单体 / 微服务
  3. Database: SQL / NoSQL
  4. Integration: REST / GraphQL / tRPC / gRPC
  5. Real-time: SSE / WebSocket / Polling / 不需要
  6. Auth: JWT / Session / OAuth / 不需要

Step 1: Architectural Decisions

基于需求做出并声明决策(每个决策一句话):

决策项参考
项目结构Feature-first(推荐)vs Layer-first
API 客户端Typed fetch / React Query / tRPC / OpenAPI
认证策略JWT + refresh / session / 第三方
实时方案Polling / SSE / WebSocket
错误处理Typed error hierarchy + global handler

Step 2: Scaffold with Checklist

后端服务 Checklist:

  • Feature-first 项目结构
  • 配置集中管理,环境变量启动时验证(fail fast)
  • 类型化错误层级(非通用 Error)
  • 全局错误处理中间件
  • 结构化 JSON 日志 + request ID
  • 数据库 Migration + 连接池
  • 输入验证(Zod / Pydantic / Go validator)
  • 认证中间件
  • 健康检查端点(/health, /ready)
  • 优雅关闭(SIGTERM)
  • CORS 配置(显式 origin)
  • 安全头(helmet 等)
  • .env.example(不含真实密钥)

前后端集成 Checklist:

  • 类型化 API Client
  • Base URL 从环境变量读取
  • Auth token 自动附加
  • API 错误映射为用户友好消息
  • Loading 状态处理
  • 跨边界类型安全
  • CORS 显式配置
  • Refresh token 流程

Step 3: Implement

按照 references 中的模式编写代码。每完成一个模块立即验证。

Step 4: Verify

# 构建检查
cd server && npm run build
cd client && npm run build

# 冒烟测试
curl http://localhost:3000/health

# 集成检查:前端能连通后端

Step 5: Handoff

📦 交付:
- 实现的功能和端点列表
- 启动命令
- 已知限制 / 下一步建议
- 关键文件列表

7 条铁律

  1. 按Feature 组织代码,不按技术层
  2. Controller 不含业务逻辑
  3. Service 不导入 HTTP 请求/响应类型
  4. 所有配置来自环境变量,启动时验证
  5. 所有错误类型化、结构化返回
  6. 所有输入在边界处验证
  7. 结构化 JSON 日志 + request ID

详细参考文档(按需查阅)

需要具体代码模式和深入指导时,查阅以下参考文档:

主题参考文件
项目结构、三层架构、DI 模式references/architecture-patterns.md
API 设计(URL、状态码、分页)references/api-design.md
认证流程(JWT、刷新、RBAC)references/auth-flow.md
数据库 Schema、索引、迁移references/db-schema.md
Django 最佳实践references/django-best-practices.md
环境管理与 CORSreferences/environment-management.md
发布检查清单references/release-checklist.md
技术选型决策references/technology-selection.md
测试策略references/testing-strategy.md

反模式速查

❌ 不要✅ 应该
业务逻辑写在路由/Controller移到 Service 层
process.env 散落各处集中配置模块
console.log结构化 JSON Logger
通用 Error('oops')类型化错误类
Controller 直接查 DBRepository 模式
无输入验证边界验证(Zod/Pydantic)
静默吞错日志 + 重抛或返回错误
无健康检查/health + /ready
硬编码配置密钥环境变量
无优雅关闭处理 SIGTERM
前端硬编码 API URL环境变量
JWT 存 localStorageMemory + httpOnly cookie
展示原始 API 错误映射为用户友好消息
大文件走 API ServerPresigned URL 直传

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.