Agent Skillsa1stok/img2svg-animation › start-new-agent

start-new-agent

GitHub

初始化新 Agent 会话,严格遵循架构规则、写作风格及最佳实践。需先读取计划文件,仅梳理后续任务,禁止实现代码。强制使用 TypeScript、特性驱动架构和 Zod 验证,并遵守文档更新与提交规范。

.agents/skills/start-new-agent/SKILL.md a1stok/img2svg-animation

触发场景

用户要求开始新的开发会话或初始化项目上下文 需要按照既定架构和规范准备下一步工作计划

安装

npx skills add a1stok/img2svg-animation --skill start-new-agent -g -y
更多选项

非标准路径

npx skills add https://github.com/a1stok/img2svg-animation/tree/master/.agents/skills/start-new-agent -g -y

不安装直接使用

npx skills use a1stok/img2svg-animation@start-new-agent

指定 Agent (Claude Code)

npx skills add a1stok/img2svg-animation --skill start-new-agent -a claude-code -g -y

安装 repo 全部 skill

npx skills add a1stok/img2svg-animation --all -g -y

预览 repo 内 skill

npx skills add a1stok/img2svg-animation --list

SKILL.md

Frontmatter
{
    "name": "start-new-agent",
    "description": "Initializes a new agent session following strict architectural rules, writing style, and incorporating project best practices like feature-driven design and strict Zod validation."
}

Project Rules & Best Practices

First Step: Orient Yourself

Before doing anything else, read docs/plans.md. It contains the current project status and the ordered list of next tasks. Start from the top incomplete item unless the user directs otherwise.

CRITICAL RULE: Do NOT implement anything or produce any results. Your sole responsibility during this initialization phase is to just outline what's next in the plan for the user to review.

Writing Style

  • Do not use emojis anywhere in code, comments, or documentation.
  • Do not use em dashes. Use commas, periods, or parentheses instead.
  • Do not use semicolons in prose or documentation. In code, follow the project linter (no semicolons in TypeScript/JSX).
  • Write clear, direct sentences. Prefer short statements over compound ones.

Code Quality & Architecture

  • All code must be written in TypeScript with strict types. No any types unless absolutely unavoidable and documented with a comment explaining why.
  • Feature-Driven Architecture: Organize code into app/features/ (e.g., features/uploader, features/converter, features/animator) rather than large monolithic folders.
  • Zod for Validation: Use zod strictly for all data boundary validations, including API requests, form submissions, and environment variables.
  • Define explicit interfaces and types for all props, state, data structures, and API responses.
  • Export types from dedicated type files when shared across components.
  • Use a headless UI approach (like Radix Primitives) coupled with Tailwind CSS for accessible, customizable components.

Documentation System: Docs vs. References

This project maintains strict documentation to govern AI behavior and architectural decisions. You must distinguish between Global Project Docs and Skill References.

1. Global Project Docs (docs/)

The root docs/ folder contains universal project rules (e.g., folder structure, color schemes, deployment). CRITICAL RULE: You MUST thoroughly read, internalize, and strictly adhere to ALL of the files in docs/ before making structural changes. As the architecture evolves, you MUST update these files. Do not hallucinate details—fill them out iteratively.

DYNAMIC DOCUMENTATION: The docs/ folder contains template files. As you build new components, establish design patterns, or configure deployment, you MUST gradually fill in these templates with accurate, updated information for the project. Do not leave them blank if you make architectural decisions, but do not hallucinate details—fill them out iteratively or when explicitly asked by the user.

COMMIT RULE: Any time you edit a file in docs/, a skill in .agents/skills/, or any README, you MUST commit that change before moving on. Follow the rules in docs/committing.md. Do not batch doc-only changes with code changes.

  • Project Structure: Rules for directory organization, co-location, and forbidding barrel files / default boilerplates.
  • Naming & Component Conventions: Rules for file naming (PascalCase vs camelCase) and React component purity.
  • Committing Rules: Rules for writing git commit messages.
  • Styling & Design Strategy: Rules for Tailwind CSS usage and the strict color token system.
  • Color Scheme: The exact hex codes, visual swatches, and hierarchy of the project's color palette.
  • Future Plans: The roadmap of feature ideas and enhancements to be implemented.
  • Future Improvements: Planned enhancements beyond the current milestones (color SVG, vtracer, etc.). Not needed for current work, read only if explicitly relevant to the task.
  • Running Locally: Instructions for starting the development server across OS environments.
  • Deployment: Vercel deployment configurations and build commands.

2. Skill References (.agents/skills/<skill-name>/references/)

For deep-dive technical guidelines specific to an individual skill (e.g., exact instructions on how to use Potrace or Anime.js), store them in a references/ subdirectory inside the relevant skill folder. CRITICAL RULE: Do NOT bloat this SKILL.md file or the global docs/ folder with highly specific technical tutorials. Instead, place them in references/ and instruct agents to read them when the skill is invoked.

Styling & Tailwind Tokens

  • Centralized Tokens: We use Tailwind CSS v4 tokens defined centrally in app/app.css. Use existing color, spacing, radius, and typography tokens before adding new values.
  • Reference docs/styling.md: For implementation details, token hierarchy, component styling rules, and the current visual direction, consult and follow docs/styling.md.

版本历史

  • 3d56d15 当前 2026-07-19 08:58

同 Skill 集合

.agents/skills/do-work/SKILL.md
.agents/skills/improve-codebase-architecture-project/SKILL.md
.agents/skills/optimize-loader/SKILL.md
.agents/skills/tailwind-design-system/SKILL.md
.agents/skills/to-issues-project/SKILL.md
.agents/skills/to-prd-project/SKILL.md

元信息

文件数
0
版本
3d56d15
Hash
d7af9f93
收录时间
2026-07-19 08:58

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-20 14:18
浙ICP备14020137号-1 $访客地图$