Skip to content

docs(rules): read authoring guide before writing rules#117

Draft
zolotokrylin wants to merge 3 commits into
mainfrom
docs/rules-authoring-guide
Draft

docs(rules): read authoring guide before writing rules#117
zolotokrylin wants to merge 3 commits into
mainfrom
docs/rules-authoring-guide

Conversation

@zolotokrylin

Copy link
Copy Markdown
Member

Adds docs/RULES.md — the canonical guide for creating and managing rules
across all Holdex repos.

Covers:

  • Rules vs specs vs end-user docs (when to write which)
  • File format: frontmatter fields, body structure, acceptance criteria
  • File naming: ID-only, no descriptive slug
  • ID numbering: prefix, increment by 10, permanent IDs
  • Status lifecycle: active → deprecated / superseded, never delete
  • README index format
  • When not to write a rule

Linked from the README under a new "For Contributors" section.

@zolotokrylin zolotokrylin self-assigned this Jun 29, 2026
@holdex

holdex Bot commented Jun 29, 2026

Copy link
Copy Markdown

Time Submission Status

Member # Time Running Total Status Last Update
zolotokrylin - ⏳ Pending -

Submit or update total time with:

@holdex pr submit-time 2h

Add time on top of previous submission with:

@holdex pr add-time 1h30m

See available commands to help comply with our Guidelines.

@coderabbitai

coderabbitai Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 428584cb-d40b-4bbd-bd43-59744a61702e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/rules-authoring-guide

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@zolotokrylin zolotokrylin force-pushed the docs/rules-authoring-guide branch from e84e5ef to 38dcdc8 Compare June 30, 2026 03:22
Comment thread docs/RULES.md
Followed by the rule body:

```markdown
## [Rule title repeated as heading]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this is H2 and not H1?

Comment thread docs/RULES.md
depends_on: "XXX-NNN" # optional — ID of the rule that must be applied first
enforcement: "manual"
severity: "error"
problem: "One-line statement of the situation this rule addresses" # optional

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: must be under 60 chars

Comment thread docs/RULES.md
Comment on lines +40 to +41
What goes wrong when this rule is not followed. Be concrete — name the
failure mode, not an abstract risk.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

must be 360 chars max

Comment thread docs/RULES.md
Comment on lines +45 to +47
What to do. Use numbered steps for sequential actions, bullets for
independent items. Be specific enough that a new team member can apply
it without asking for clarification.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

must be 360 chars max

Comment thread docs/RULES.md
- [ ] Another checkable item
```

`Acceptance Criteria` is optional but strongly recommended for rules that

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

each step must be atomic

Comment thread docs/RULES.md

- Each repo has its own prefix (e.g. `SAL-` for `holdex/partners`,
`HR-` for `holdex/hr-internal`, `DEV-` for `holdex/developers`)
- IDs increment by 10 (`DEV-010`, `DEV-020`) to leave room for insertion

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

by 100, not 10

Comment thread README.md
Comment on lines +6 to +10
## For Contributors

If you are adding or updating documentation in this or any other Holdex repo,
read [How to Create and Manage Rules](./docs/RULES.md) to understand the
difference between rules, specs, and end-user docs, and how to author each.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Contributors are developers.
This needs to be factored into contributing.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant