Skip to content

Add AGENTS.md and REPOSITORY_RULES.md referencing SpM-lab/spm-agent-rules - #80

Merged
shinaoka merged 1 commit into
mainlinefrom
agent-rules-setup
Sep 4, 2026
Merged

Add AGENTS.md and REPOSITORY_RULES.md referencing SpM-lab/spm-agent-rules#80
shinaoka merged 1 commit into
mainlinefrom
agent-rules-setup

Conversation

@shinaoka

@shinaoka shinaoka commented Sep 4, 2026

Copy link
Copy Markdown
Member

What

Adds two agent-guidance files, modeled on the structure used in
tensor4all/tenferro-rs:

  • AGENTS.md — the entry point for AI coding agents. Gives a one-line
    project description, points to the shared
    SpM-lab/spm-agent-rules
    repository (starting at rules/index.md) for cross-repository rules that
    apply to the sparse-IR stack (common.md, ffi-boundary.md,
    numerical-conventions.md, testing.md, python.md), and points to
    REPOSITORY_RULES.md for anything specific to this repository.
  • REPOSITORY_RULES.md — repository-specific facts only, verified
    against this checkout: package layout under src/sparse_ir/, how the
    native libsparseir library is loaded (via the separate pylibsparseir
    package, never a local ctypes.CDLL/dlopen), the version-consistency
    check between pyproject.toml and .conda/meta.yaml, uv-based dev
    setup, pytest invocation, and the three CI workflows
    (CI.yml, wheel.yml, conda.yml).

Reference-only pattern

Following the pattern documented in spm-agent-rules's README, AGENTS.md
does not duplicate any shared rule content — it only links to
https://github.com/SpM-lab/spm-agent-rules and to this repository's own
REPOSITORY_RULES.md, and states that repository-local rules take
precedence when they are more specific.

Related: #79

🤖 Generated with Claude Code

…ules

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@shinaoka
shinaoka merged commit 9a1a652 into mainline Sep 4, 2026
9 checks passed
@shinaoka
shinaoka deleted the agent-rules-setup branch September 4, 2026 11:54
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