output-artifact-organization

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Output Artifact Organization

输出工件组织规范

When to use this skill

何时使用该技能

  • The user asks to generate SQL, JSON data, or example code files.
  • You need to decide WHERE to save a file.
  • 用户要求生成SQL、JSON数据或示例代码文件时。
  • 你需要确定文件的存储位置时。

1. Standards

1. 存储标准

  • SQL: Save to
    /sql/
    . Filename:
    YYYY_MM_DD_description.sql
    .
  • JSON: Save to
    /examples/json/
    . Filename:
    description.json
    .
  • Docs: Save to
    /docs/
    or specific subdirectory.
  • Temporary: Avoid creating files in root; use a temp folder if it's throwaway.
  • SQL:保存至
    /sql/
    目录。文件名格式:
    YYYY_MM_DD_description.sql
  • JSON:保存至
    /examples/json/
    目录。文件名格式:
    description.json
  • 文档:保存至
    /docs/
    目录或其特定子目录。
  • 临时文件:避免在根目录创建文件;如果是一次性文件,请使用临时文件夹。

2. Naming

2. 命名规则

  • Use descriptive, kebab-case logic.
  • Include date prefixes for migrations or chronologically significant files.
  • 使用描述性的短横线分隔命名法(kebab-case)。
  • 对于迁移文件或有时间顺序意义的文件,需添加日期前缀。