Add AGENTS.md and REPOSITORY_RULES.md referencing SpM-lab/spm-agent-rules - #80
Merged
Conversation
…ules Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-lineproject description, points to the shared
SpM-lab/spm-agent-rules
repository (starting at
rules/index.md) for cross-repository rules thatapply to the sparse-IR stack (
common.md,ffi-boundary.md,numerical-conventions.md,testing.md,python.md), and points toREPOSITORY_RULES.mdfor anything specific to this repository.REPOSITORY_RULES.md— repository-specific facts only, verifiedagainst this checkout: package layout under
src/sparse_ir/, how thenative
libsparseirlibrary is loaded (via the separatepylibsparseirpackage, never a local
ctypes.CDLL/dlopen), the version-consistencycheck between
pyproject.tomland.conda/meta.yaml,uv-based devsetup,
pytestinvocation, 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.mddoes 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 takeprecedence when they are more specific.
Related: #79
🤖 Generated with Claude Code