Skip to content

Commit 4ae44b4

Browse files
committed
agent docs
1 parent e6d4ac9 commit 4ae44b4

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
`@testing-library/react-native` is a TypeScript/Jest library for testing React Native components with user-focused testing patterns.
44

5+
> [!IMPORTANT]
6+
> Never run git commands that create commits, push, or modify the index/history (`git commit`, `git push`, `git add`, `git rm`, `git reset`, `git rebase`, `git merge`, `git stash`, `git tag`, etc.). Only make working-tree changes and read-only git inspections; the human stages and commits. See [Git, releases, and PR workflow](agents/git-workflow.md).
7+
58
- Package manager: `yarn` (`yarn@4.11.0`)
69
- Common commands:
710
- `yarn test`

agents/git-workflow.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Git, Releases, And PR Workflow
22

3+
## Agent git restrictions
4+
5+
- Never run git commands that create commits, push, or modify the index/history. The human owns these actions.
6+
- Forbidden commands include (non-exhaustive): `git commit`, `git push`, `git add`, `git rm`, `git restore --staged`, `git reset`, `git rebase`, `git merge`, `git cherry-pick`, `git stash`, `git commit --amend`, and `git tag`.
7+
- Read-only inspection is fine: `git status`, `git log`, `git diff`, `git show`, `git blame`.
8+
- When conflicts or staging are involved, resolve file contents in the working tree only, then hand off to the human to stage and commit. Describe the exact commands you would run instead of running them.
9+
310
## Commits and releases
411

512
- Use Conventional Commits such as `fix:`, `feat:`, and `chore:`.

0 commit comments

Comments
 (0)