搜索

PythonReactSEOPDF
GitHub Skill

file-placement

Activate when creating any summary, report, or output file. Ensures files go to correct directories (summaries/, memory/, stories/, bugs/). Mirrors what summary-file-enforcement hook enforces.

intelligentcode-ai☆ 35 仓库 Stars3 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

File Placement Skill

Apply correct file placement rules for all output files.

Why This Matters

File placement is enforced by hooks - violations will be blocked. This skill ensures you understand the rules so your work isn't rejected.

File Placement Rules

File Type Required Directory Examples
Summaries summaries/ execution-summary.md, review-summary.md
Reports summaries/ analysis-report.md, audit-report.md
Stories stories/ STORY-001-feature.md
Bugs bugs/ BUG-001-issue.md
Memory memory/ memory/auth/oauth2.md
Documentation docs/ api-docs.md, architecture.md

Forbidden Placements

NEVER place these in the wrong location:

  • Summaries in docs/ or project root
  • Reports in docs/ or project root
  • Memory entries outside memory/
  • Output files in source directories

Filename Rules

ALL-CAPS Restrictions

Only these filenames may be ALL-CAPS:

  • README.md, LICENSE, LICENSE.md
  • CLAUDE.md, SKILL.md, AGENTS.md
  • CHANGELOG.md, CONTRIBUTING.md
  • AUTHORS, NOTICE, PATENTS, VERSION
  • MAKEFILE, DOCKERFILE, COPYING, COPYRIGHT

All other files: Use lowercase-kebab-case

  • execution-summary.md (correct)
  • EXECUTION-SUMMARY.md (blocked)

Hook Enforcement

The summary-file-enforcement.js hook will:

  1. Block files with ALL-CAPS names (except allowlist)
  2. Block summary/report files outside summaries/
  3. Suggest correct filename/location

Before Creating Files

Ask yourself:

  1. Is this a summary or report? → Put in summaries/
  2. Is this a memory entry? → Put in memory/<topic>/
  3. Is my filename lowercase-kebab? → If not, fix it
  4. Am I using ALL-CAPS? → Only if in allowlist

Integration with Hooks

This skill provides guidance - you understand the rules. The hook provides enforcement - violations are blocked.

Together they ensure consistent file organization even when:

  • Context is lost
  • Rules are forgotten
  • New team members join

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-03-11
索引更新时间
2026-03-11
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!