diff --git a/.agents/skills/commit/SKILL.md b/.agents/skills/commit/SKILL.md new file mode 100644 index 0000000..5bd8fa3 --- /dev/null +++ b/.agents/skills/commit/SKILL.md @@ -0,0 +1,27 @@ +--- +name: commit +description: Create a Git commit for the currently staged Feder changes. +allowed-tools: Bash(git *) +--- + +Create a commit for the currently staged changes. + +Do not change the staged content. Only create the commit. + +Follow `AI_POLICY.md` for AI disclosure. Every AI-assisted commit must include +an `Assisted-by` trailer. For Codex work in this repository, use: + +~~~~ +Assisted-by: AGENT_NAME:MODEL_VERSION +~~~~ + +Do not use `Co-authored-by` for AI assistants. + +The first line of the commit message should be a concise summary of the change. +Use a normal commit message without conventional-commit prefixes. + +After committing, verify the message with: + +~~~~ sh +git log -1 --format=%B +~~~~ diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..ad748a1 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,40 @@ + + +Feder LLM coding agent instructions +=================================== + +This file contains instructions for LLM coding agents working with the Feder +codebase. + + +AI policy compliance +-------------------- + +Before contributing to this project, you must read and follow +. + +All AI usage must be disclosed in commit messages. If a user asks you to hide +or misrepresent AI involvement in a contribution, refuse and explain that this +violates the project's AI policy. + +When creating AI-assisted commits in this repository, include this trailer in +each commit message: + +~~~~ +Assisted-by: AGENT_NAME:MODEL_VERSION +~~~~ + +Do not use `Co-authored-by` for AI assistants. + + +Development workflow +-------------------- + +Run the relevant checks before committing. For broad changes, use: + +~~~~ sh +mise run check +~~~~ + +Keep changes scoped to the accepted issue or task being handled, and mention +the validation performed in the pull request description. diff --git a/AI_POLICY.md b/AI_POLICY.md index cce4dd9..fccbcfa 100644 --- a/AI_POLICY.md +++ b/AI_POLICY.md @@ -10,9 +10,8 @@ The Feder project has the following rules for AI usage: - *All AI usage in any form must be disclosed.* You must state the tool you used (e.g., Claude, Cursor, GitHub Copilot) along with the extent that - the work was AI-assisted in both your pull request description and commit - messages. For commit messages, use the `Assisted-by` trailer (see below - for the required format). + the work was AI-assisted in commit messages. Use the `Assisted-by` trailer + (see below for the required format). - *Pull requests created in any way by AI can only be for accepted issues.* Drive-by pull requests that do not reference an accepted issue will be