AgentSkillsCN

feature-implement

遵循项目规范,以系统化的方法在 Rust 内存系统中实现新功能。在新增功能的同时,注重完备的测试与文档撰写,从而持续保障代码质量与测试覆盖率。

SKILL.md
--- frontmatter
name: feature-implement
description: Systematic approach to implementing new features in the Rust memory system following project conventions. Use when adding new functionality with proper testing and documentation, maintaining code quality and test coverage.

Feature Implementation

Systematic approach to implementing new features in the Rust memory system.

Quick Reference

  • Process - Implementation phases (planning, design, implementation, testing)
  • Structure - Module structure and file organization
  • Patterns - Code patterns and conventions
  • Quality - Quality standards and checklists

When to Use

  • Adding new functionality to the codebase
  • Following project conventions for feature development
  • Maintaining code quality and test coverage

Core Process

  1. Planning - Understand requirements and constraints
  2. Design - Architecture and module structure
  3. Implementation - Write code following patterns
  4. Testing - Add tests with >90% coverage
  5. Documentation - Update docs and examples

See process.md for detailed phases and patterns.md for Rust code patterns.

Project Standards

  • File size: ≤ 500 LOC per file
  • Async/Tokio patterns for I/O
  • Error handling: anyhow::Result
  • Storage: Turso (durable) + redb (cache)
  • Serialization: postcard