output-artifact-organization
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOutput 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 . Filename:
/sql/.YYYY_MM_DD_description.sql - JSON: Save to . Filename:
/examples/json/.description.json - Docs: Save to or specific subdirectory.
/docs/ - 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)。
- 对于迁移文件或有时间顺序意义的文件,需添加日期前缀。