원클릭으로
create-rule
Create Rule
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Create Rule
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Canonical turn protocol for agents writing to Neotoma. Bounded retrieval on the user message, store user message PART_OF conversation with REFERS_TO edges to retrieved entities, store assistant reply the same way. Use this skill in any agent loop that should persist conversation state to Neotoma.
Session-end audit. Files remaining work as task entities and lists them as bullets, verifies all data intended for Neotoma storage from this session is actually stored, and persists what's missing. Invoke at the natural close of a working session, before context is lost.
Mid-session status report. Summarizes what's been achieved so far this session and what work remains, in succinct qualitative prose and bullets with only light technical detail. Read-only — stores nothing, files nothing. Invoke any time to take stock without closing the session.
Close a Neotoma working session — store the assistant reply and a session-close summary.
Retrieve the bounded context for the current session — recent interactions and relevant entities.
Begin a Neotoma working session — open a conversation and record the opening interaction.
| name | create_rule |
| description | Create Rule |
Create a new rule file with _rules suffix and automatically create symlink in .claude/rules/.
SUBMODULE MODE: If a submodule name is provided (e.g., /create-rule foundation), create the rule in that submodule. If no submodule name is provided, create in the main repository's docs/ directory.
create-rule [submodule_name]
submodule_name (optional string): Submodule name to create rule in (e.g., "foundation"). If omitted, creates rule in main repository's docs/ directory.If submodule name provided:
If no submodule name provided (default - repo mode):
docs/{location}/{name}_rules.mdIf submodule name provided:
Verify submodule exists:
if ! git submodule status <submodule_name> >/dev/null 2>&1; then
echo "❌ Submodule not found: <submodule_name>"
exit 1
fi
Determine submodule rule location:
foundation submodule: foundation/agent_instructions/cursor_rules/Set context for submodule rule creation
If no submodule name provided:
docs/ directoryRepository mode prompts:
Rule file name (without _rules.md suffix)
Location in docs/ directory
conventions, foundation, subsystems, architecture, developer, etc.Rule purpose and scope
Key constraints/MUST/SHOULD rules
Submodule mode prompts:
Rule file name (without _rules.mdc suffix for foundation submodule, or without .mdc for foundation submodule - MUST use .mdc extension for foundation rules)
Rule purpose and scope
Key constraints/MUST/SHOULD rules
Repository mode:
Create file at docs/{location}/{name}_rules.md with content:
# {Rule Title}
**Reference:** `docs/{reference_doc}.md` — Related documentation (if applicable)
{Brief description of what this rule ensures}
## Purpose
{Expanded purpose from user input}
## Trigger Patterns
When any of the following occur:
- {Trigger pattern 1}
- {Trigger pattern 2}
- {Trigger pattern 3}
## Agent Actions
### Step 1: {Action Title}
{Description of what agent should do}
### Step 2: {Action Title}
{Description of what agent should do}
## Constraints
### MUST
1. {MUST constraint 1}
2. {MUST constraint 2}
### SHOULD
1. {SHOULD constraint 1}
2. {SHOULD constraint 2}
### MUST NOT
1. {MUST NOT constraint 1}
2. {MUST NOT constraint 2}
## Examples
### Example 1: {Example Title}
{Example description and code/steps}
---
## Agent Instructions
### When to Load This Document
Load this document when:
- {Trigger condition 1}
- {Trigger condition 2}
### Required Co-Loaded Documents
- {Required document 1}
- {Required document 2}
### Constraints Agents Must Enforce
1. {Constraint to enforce 1}
2. {Constraint to enforce 2}
### Forbidden Patterns
- {Anti-pattern 1}
- {Anti-pattern 2}
### Validation Checklist
- [ ] {Validation item 1}
- [ ] {Validation item 2}
Submodule mode:
For foundation submodule, create file following foundation cursor-rules pattern (simpler structure without Agent Instructions section since these are loaded automatically).
Repository mode:
Run foundation setup script:
./foundation/scripts/setup-cursor-rules.sh
Verify symlink created in .claude/rules/:
{location}_{name}_rules.mddocs/conventions/entity_resolution_rules.md → .claude/rules/conventions_entity_resolution_rules.mdOutput success message:
✅ Rule created successfully!
File: docs/{location}/{name}_rules.md
Symlink: .claude/rules/{location}_{name}_rules.md
The rule is now available to all Cursor agents in this repository.
Next steps:
1. Review the generated rule file and fill in any remaining details
2. Test the rule by triggering its conditions
3. Update related documentation to reference this rule if needed
Submodule mode:
If submodule is foundation, run setup script from main repository:
./foundation/scripts/setup-cursor-rules.sh
Verify symlink created (for foundation rules, they're prefixed with foundation-)
Output success message:
✅ Rule created in submodule successfully!
File: {submodule}/{rule_path}/{name}{suffix}.mdc (for foundation submodule, use .mdc extension)
Symlink: .claude/rules/{prefix}{name}.mdc (if applicable)
The rule is now available to all repositories using this submodule.
Optional configuration in foundation-config.yaml:
agent_instructions:
rules:
default_location: "docs/conventions" # Default location for new rules
template_path: null # Custom template path (optional)
auto_run_setup: true # Automatically run setup script after creation
/create-rule
Prompts:
entity_resolutionsubsystemsCreates:
docs/subsystems/entity_resolution_rules.md.claude/rules/subsystems_entity_resolution_rules.md (symlink)/create-rule foundation
Prompts:
testing_patternsCreates:
foundation/agent_instructions/cursor_rules/testing_patterns.mdc.claude/rules/foundation_testing_patterns.mdc (symlink)Load before starting:
foundation/scripts/setup-cursor-rules.sh (setup script)docs/conventions/documentation_standards_rules.md (if creating repo rule)foundation-config.yaml (configuration)