logseq-naming-conventions

A naming rule for Logseq pages and references, where Logseq is a note-taking app that links pages into a knowledge graph. It uses singular page names, plural aliases, and singular names for nested namespaces.

In plain words
What is it for?
Use it when creating Logseq pages, aliases, page references, or nested namespaces for people, projects, topics, and other entities.
Why use it?
It keeps page and link names consistent as the graph grows while still allowing people to use familiar plural wording in references. Consistent names also support predictable namespaces and links.

Cursor rule

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/codekiln/logseq-cursor-rules/logseq-naming-conventions
Clone the repo
git clone --depth 1 https://github.com/codekiln/logseq-cursor-rules
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 508 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00014 $0.00508
Opus 5 $0.00007 $0.00254
Sonnet 5 $0.00003 $0.00102
Haiku 4.5 $0.00001 $0.00051

Measured yesterday against content hash 166e6ba018e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

logseq-naming-conventions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

logseq-naming-conventions.mdc · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Logseq Naming Conventions

This is an extension to logseq-flavored-markdown logseq-flavored-markdown.mdc for maintaining consistent naming conventions in the knowledge graph.

Singular vs Plural Naming Convention

Core Principle

  • Always use singular form in page names
  • Use plural form in references through aliases
  • This enables better extensibility through sub-namespaces

Implementation

  1. Page Names

    • Use singular form: [[Related/Post]] not [[Related Topics]]
    • Use singular form: [[Person]] not [[People]]
    • Use singular form: [[Project]] not [[Projects]]
  2. Aliases

    • Add plural form as an alias in the page's frontmatter
    • Example:
      ---
      alias:: [[Related Posts]]
      ---
      
  3. References

    • Use plural form in references: [[Related Posts]]
    • The alias will resolve to the singular page name
    • This maintains consistency while allowing for sub-namespaces

Benefits

  • Enables creation of sub-namespaces under singular forms
  • Maintains clean URL structure
  • Allows for both singular and plural references
  • Supports hierarchical organization

Examples

<CORRECT_✅>

# Good Examples
- [[Person/John Smith]] (singular page name)
  - alias:: [[People/John Smith]]
- [[Project/Cursor]] (singular page name)
  - alias:: [[Projects/Cursor]]
- [[Related/Post]] (singular page name)
  - alias:: [[Related Posts]]

<INCORRECT_❌>

# Bad Examples
- [[People/John Smith]] (plural in page name)
- [[Projects/Cursor]] (plural in page name)
- [[Related Topics]] (plural in page name)

</CORRECT_✅>

When to Use This Convention

  • Creating new pages in the knowledge graph
  • Adding aliases to existing pages
  • Making references to pages
  • Organizing hierarchical content

When Not to Use This Convention

  • When the page represents a collection or category that is inherently plural
  • When the page is a temporary or utility page
  • When the page is a system page or configuration page

Read the full file on GitHub · 73 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 73 lines · 14 tokens per session scan A 166e6ba018e7

Subscribe to this mod's changes

logseq-naming-conventions is a cursor rule published in the GitHub repository codekiln/logseq-cursor-rules (2 stars, last pushed 11mo ago), licensed MIT. It adds 14 tokens to every session and 508 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.