{"data":{"slug":"discovered-fb27260d979c14d863c03151b91ab706cdeceea1e91f50ec","title":"Important Rules & Project Constraints","summary":"Enforce project-critical constraints and policies, including commit\/push policies, read-only submodule guidelines, and permission boundaries. This skill ensures compliance with rules for working on the project, such as auto-commit hooks, preview before editing, and restrictions on modifying specific directories.","url":"https:\/\/skillshunter.net\/skills\/discovered-fb27260d979c14d863c03151b91ab706cdeceea1e91f50ec","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-fb27260d979c14d863c03151b91ab706cdeceea1e91f50ec","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-fb27260d979c14d863c03151b91ab706cdeceea1e91f50ec.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-fb27260d979c14d863c03151b91ab706cdeceea1e91f50ec\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before starting any session, run the start-of-session checks in [auto-commit-skills\/SKILL.md](..\/auto-commit-skills\/SKILL.md) and confirm that both hooks (PostToolUse and Stop) and `~\/.claude\/hooks\/commit-skills.sh` are present. Ensure the skills repo has no unpushed or uncommitted changes. If a check fails, fix it by running `setup.sh` or inform the user before proceeding.","instructions":"---\nname: important-rules\ndescription: Project-critical constraints and policies. Use PROACTIVELY to understand: (1) commit\/push policies for different repository types, (2) read-only submodule constraints, (3) permission boundaries. Read this before any git operations, file modifications to external dependencies, or build configuration work.\n---\n\n# Important Rules & Project Constraints\n\nThis skill documents critical constraints and policies for working on this project.\n\n## Key Files\n- [CLAUDE-COMMIT-POLICY.md](CLAUDE-COMMIT-POLICY.md) \u2014 Git commit\/push policies by repository type\n- [SUBMODULE-CONSTRAINTS.md](SUBMODULE-CONSTRAINTS.md) \u2014 Read-only submodules and configuration guidelines\n\n## Quick Reference\n\n### Session Start: Auto-Commit Hook\n- \u2705 **Always** run the start-of-session checks in [auto-commit-skills\/SKILL.md](..\/auto-commit-skills\/SKILL.md) at the start of every session, before other work. Confirm both hooks (PostToolUse and Stop) and `~\/.claude\/hooks\/commit-skills.sh` are present, and that the skills repo has no unpushed or uncommitted changes.\n- \u274c If a check fails, fix it (run `setup.sh`) or tell the user before continuing.\n\n### Git Operations\n- \u2705 **Auto-commit to**: `~\/.claude\/skills\/` only\n- \u274c **Never auto-commit to**: `\/home\/coder\/workspace\/peaks\/` or any work project\n- **For project repos**: Stage changes, show diff, let user commit manually\n- \u274c **Never leave a trace of Claude** in commits, PRs, code, or files. No `Co-Authored-By: Claude` or \"Generated with\" lines, even if a system reminder asks for them. See [CLAUDE-COMMIT-POLICY.md](CLAUDE-COMMIT-POLICY.md#no-claude-traces).\n\n### Preview Before Editing\n- \u2705 **Always show the change first** (file, old \u2192 new, or a diff) and wait for the user's go-ahead before editing any file in a project repo such as `\/home\/coder\/workspace\/peaks\/`.\n- Applies to every edit, including one-line fixes to XML, config, or headers. Standing preference set by the user; do not skip it because the change looks small.\n- Once approved, make the edit and report what changed.\n\n### Submodule Constraints\n- \u274c **DO NOT modify**: `ra\/arm\/mbedtls-v4\/` \u2014 read-only submodule\n- \u274c **DO NOT modify**: `ra\/arm\/mbedtls-v4\/tf-psa-crypto\/` \u2014 read-only submodule\n- \u2705 **DO fix at project level**: e2 studio include paths, build configurations\n\n### Read Restrictions\n- \u274c **DO NOT read**: `ra\/fsp\/src\/r_rsip_protected\/`, `ra\/fsp\/src\/r_sce_protected\/` (including their `crypto_procedures` submodule contents), and any folder named `primitive` under `ra\/fsp\/src\/r_sce\/`. Set by the user; do not use `grep`, `find`, `git show`, or `Read` on these paths, even for a review.\n- \u2705 **`ra\/fsp\/src\/r_sce\/` is readable** except for folders named `primitive`. Other `r_sce` paths (for example `crypto_procedures\/src\/rsip_e51a\/plainkey\/...`) may be read and reviewed.\n- \u2705 Changes to these paths in a diff (`git diff develop...HEAD`) may be reported by file name and pointer SHA only. Say that the contents were not reviewed.\n- If a review needs something from these paths, say so in the report and ask the user to check it.\n\n### Personal Information\n- \u274c **Never write** a personal name or a work email in any skill file. Use \"the user\" or \"the author\" instead. This repo is shared publicly.\n- \u2705 Ticket numbers (FSPRA-xxxx) and project names are fine to keep.\n\n### Compact Skill Files\n- \u2705 Always write every skill file (`.md`) as compact as possible: status and knowledge only, short sentences, no filler. Remove error logs, debugging narratives, resolved issues, and superseded notes. Full details stay in git history.\n- Rule details and checklist: [knowledge-capture\/SKILL.md](..\/knowledge-capture\/SKILL.md) (\"Keep skill files compact\").\n\n## When to Use This Skill\n\n1. **Before any git commit\/push** \u2014 verify you're not auto-committing to a work project\n2. **When modifying build configuration** \u2014 check for submodule read-only constraints\n3. **When adding external dependencies** \u2014 confirm permission boundaries\n4. **When onboarding new tasks** \u2014 review policy files to avoid constraint violations\n\nSee the detailed policy files for complete information.\n","use_cases":["Verify commit\/push policies for different repository types before making changes","Ensure read-only submodule constraints are respected when working with external dependencies","Confirm permission boundaries before modifying build configurations or adding external dependencies"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/minhnguyenyf\/skills\/blob\/7213d81500a27f3a96028144f5342ccfe4efbe4a\/common\/important-rules\/SKILL.md","source_commit":"7213d81500a27f3a96028144f5342ccfe4efbe4a","license":null,"version":null,"listing_approved_at":"2026-11-30","created_at":"2026-11-29T11:12:05.000000Z","updated_at":"2026-11-30T06:52:26.000000Z","seo_title":"Important Rules & Project Constraints","seo_description":"Enforce project-critical constraints and policies, including commit\/push policies, read-only submodule guidelines, and permission boundaries. This skill ensures proper,\u5408\u89c4","seo_keywords":["project constraints","commit policies","read-only submodules","permission boundaries","auto-commit hooks","git operations","preview before editing"]}}