AgentSkillsCN

sidstack-knowledge-first

在实施新功能之前,先检索项目知识。当您着手开发新功能、做出架构决策、处理不熟悉的代码,或对业务逻辑进行调整时,可触发此步骤。使用 knowledge_search 和 knowledge_context。

SKILL.md
--- frontmatter
name: sidstack-knowledge-first
description: >
  Search project knowledge before implementing. Trigger when: starting a new
  feature, making architectural decisions, working in unfamiliar code, or
  modifying business logic. Use knowledge_search and knowledge_context.

Knowledge-First Development

When to Search Knowledge

  • Starting a new feature implementation
  • Making architectural decisions
  • Working in unfamiliar modules
  • Changing business logic or data models

Process

1. Search for Patterns

code
knowledge_search({
  projectPath: ".",
  query: "feature name or concept"
})

2. Get Module Context

code
knowledge_context({
  projectPath: ".",
  moduleId: "module-name"
})

What to Look For

  • Similar implementations
  • Design patterns used
  • Business rules
  • API conventions
  • Known constraints