From b968fd821cfdb4ec3f8d4f49dbad567f823ac662 Mon Sep 17 00:00:00 2001 From: showxu <10173746+showxu@users.noreply.github.com> Date: Mon, 26 Oct 2026 16:02:39 +0800 Subject: [PATCH 1/6] docs: declare agent instructions as units Generate AGENTS.md from this repository's own instruction units. --- .agent/agents.json | 11 +++++++++++ .agent/instructions/guide.md | 7 +++++++ .gitignore | 5 ++++- 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .agent/agents.json create mode 100644 .agent/instructions/guide.md diff --git a/.agent/agents.json b/.agent/agents.json new file mode 100644 index 0000000..35fd732 --- /dev/null +++ b/.agent/agents.json @@ -0,0 +1,11 @@ +{ + "instructions": { + "agents": [ + "claude-code", + "codex" + ], + "sections": [ + "guide" + ] + } +} diff --git a/.agent/instructions/guide.md b/.agent/instructions/guide.md new file mode 100644 index 0000000..5cddd16 --- /dev/null +++ b/.agent/instructions/guide.md @@ -0,0 +1,7 @@ +--- +description: Keep the agents-tools website's generated sources and checks in their owning commands. +--- +# Website development + +Read [README.md](README.md) for development, source updates and deployment. Never edit `sources/` by +hand; use `npm run sources:update`. Run `npm run check` before handing off a change. diff --git a/.gitignore b/.gitignore index 05a18f7..baeac29 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,9 @@ dist/ test-results/ playwright-report/ .build/ -.agent/ .claude/ .DS_Store +/.agent/* +!/.agent/instructions/ +!/.agent/agents.json +!/.agent/agents.resolved From 8ca9d859674402ad0ac693353c092e3909a03235 Mon Sep 17 00:00:00 2001 From: showxu <10173746+showxu@users.noreply.github.com> Date: Mon, 26 Oct 2026 18:57:37 +0800 Subject: [PATCH 2/6] docs: generate AGENTS.md from instruction units --- .agent/agents.resolved | 33 +++++++++++++++++++++++++++++++++ AGENTS.md | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 .agent/agents.resolved diff --git a/.agent/agents.resolved b/.agent/agents.resolved new file mode 100644 index 0000000..106d082 --- /dev/null +++ b/.agent/agents.resolved @@ -0,0 +1,33 @@ +{ + "instructions" : { + "chatgpt" : { + + }, + "sections" : [ + { + "hash" : "sha256:52e8909886b9837ba2ad46599937b348641525431bbb9e72c82edb0f424f33a1", + "name" : "guide", + "path" : ".agent/instructions/guide.md", + "source" : "." + } + ], + "targets" : { + "AGENTS.md" : { + "agents" : [ + "claude-code", + "codex" + ], + "blockHash" : "sha256:81f9fdb691d1e83166d3e20656db4af7343b50572b4648e25c457d6058d11716", + "created" : false, + "headingOffset" : 0 + } + } + }, + "skills" : { + + }, + "sources" : { + + }, + "version" : 1 +} diff --git a/AGENTS.md b/AGENTS.md index e0e2eb2..eb59ecb 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,3 +1,5 @@ + + # Website development Read [README.md](README.md) for development, source updates and deployment. Never edit `sources/` by From a3bd70e30ae0ea8276c2ac35c5e7368193647346 Mon Sep 17 00:00:00 2001 From: showxu <10173746+showxu@users.noreply.github.com> Date: Mon, 26 Oct 2026 19:02:17 +0800 Subject: [PATCH 3/6] ci: pin shared workflows that accept agent instruction files --- .github/workflows/source-policy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/source-policy.yml b/.github/workflows/source-policy.yml index 071a9ac..d1752f4 100644 --- a/.github/workflows/source-policy.yml +++ b/.github/workflows/source-policy.yml @@ -12,7 +12,7 @@ concurrency: cancel-in-progress: true jobs: policy: - uses: agents-tools/github-workflows/.github/workflows/policy.yml@2ce48fb8834304acf010fa1b47a05db6148ab6c4 + uses: agents-tools/github-workflows/.github/workflows/policy.yml@ebd6af9164232217e2e243da0d9735544ae3a8f9 with: allow-terms: | ChatGPT From 58428bba838e58b2aaf34412bb16396c7ba849c7 Mon Sep 17 00:00:00 2001 From: showxu <10173746+showxu@users.noreply.github.com> Date: Mon, 26 Oct 2026 20:17:24 +0800 Subject: [PATCH 4/6] ci: pin shared workflows to the revised agent instruction policy --- .github/workflows/source-policy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/source-policy.yml b/.github/workflows/source-policy.yml index d1752f4..ab50dad 100644 --- a/.github/workflows/source-policy.yml +++ b/.github/workflows/source-policy.yml @@ -12,7 +12,7 @@ concurrency: cancel-in-progress: true jobs: policy: - uses: agents-tools/github-workflows/.github/workflows/policy.yml@ebd6af9164232217e2e243da0d9735544ae3a8f9 + uses: agents-tools/github-workflows/.github/workflows/policy.yml@d0d1fd91e655e6d230cf3d5085c1eb6f5f26d358 with: allow-terms: | ChatGPT From f060f2877bf72e96e7d2a827acfbda8a9df75690 Mon Sep 17 00:00:00 2001 From: showxu <10173746+showxu@users.noreply.github.com> Date: Tue, 27 Oct 2026 02:28:26 +0800 Subject: [PATCH 5/6] ci: pin shared workflows to the merged agent instruction policy --- .github/workflows/source-policy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/source-policy.yml b/.github/workflows/source-policy.yml index ab50dad..1640d25 100644 --- a/.github/workflows/source-policy.yml +++ b/.github/workflows/source-policy.yml @@ -12,7 +12,7 @@ concurrency: cancel-in-progress: true jobs: policy: - uses: agents-tools/github-workflows/.github/workflows/policy.yml@d0d1fd91e655e6d230cf3d5085c1eb6f5f26d358 + uses: agents-tools/github-workflows/.github/workflows/policy.yml@bb0a8c8c39827a364b9d3cbf4069754e7d975586 with: allow-terms: | ChatGPT From 9bc25f63d8544baa68b4b5ede764e4e577e176f0 Mon Sep 17 00:00:00 2001 From: showxu <10173746+showxu@users.noreply.github.com> Date: Tue, 27 Oct 2026 02:28:26 +0800 Subject: [PATCH 6/6] chore: write the agents declaration and lock as standard JSON --- .agent/agents.json | 12 ++++-------- .agent/agents.resolved | 41 ++++++++++++++++------------------------- 2 files changed, 20 insertions(+), 33 deletions(-) diff --git a/.agent/agents.json b/.agent/agents.json index 35fd732..2bdc375 100644 --- a/.agent/agents.json +++ b/.agent/agents.json @@ -1,11 +1,7 @@ { "instructions": { - "agents": [ - "claude-code", - "codex" - ], - "sections": [ - "guide" - ] - } + "agents": ["claude-code", "codex"], + "sections": ["guide"] + }, + "sources": {} } diff --git a/.agent/agents.resolved b/.agent/agents.resolved index 106d082..92b22d4 100644 --- a/.agent/agents.resolved +++ b/.agent/agents.resolved @@ -1,33 +1,24 @@ { - "instructions" : { - "chatgpt" : { - - }, - "sections" : [ + "instructions": { + "chatgpt": {}, + "sections": [ { - "hash" : "sha256:52e8909886b9837ba2ad46599937b348641525431bbb9e72c82edb0f424f33a1", - "name" : "guide", - "path" : ".agent/instructions/guide.md", - "source" : "." + "hash": "sha256:52e8909886b9837ba2ad46599937b348641525431bbb9e72c82edb0f424f33a1", + "name": "guide", + "path": ".agent/instructions/guide.md", + "source": "." } ], - "targets" : { - "AGENTS.md" : { - "agents" : [ - "claude-code", - "codex" - ], - "blockHash" : "sha256:81f9fdb691d1e83166d3e20656db4af7343b50572b4648e25c457d6058d11716", - "created" : false, - "headingOffset" : 0 + "targets": { + "AGENTS.md": { + "agents": ["claude-code", "codex"], + "blockHash": "sha256:81f9fdb691d1e83166d3e20656db4af7343b50572b4648e25c457d6058d11716", + "created": false, + "headingOffset": 0 } } }, - "skills" : { - - }, - "sources" : { - - }, - "version" : 1 + "skills": {}, + "sources": {}, + "version": 1 }