Agent guide: ask architecture questions first, ipal-kit first, code rules

- AGENT.md: "Ask before you build" (languages, styling, content, forms,
  analytics/consent, SEO/GEO, database + media, admin, hosting/DNS) —
  answers go to AGENTS.md "Project decisions", never guessed; "ipal-kit
  first" hard rule — a gap is reported to the owner and the agent waits
  for the decision, no hand-built replacements or silent workarounds;
  short "Code rules" (SRP, small files, no duplicates, typed, i18n texts,
  checks) pointing to §8
- ipal-setup stage 0 and ipal-site phase 0: the architecture question
  list, answered before building; content questions keep defaults
- ipal-plugin-gap: report, offer options, wait, record the decision;
  ipal-block/collection/form/debug and vibe aligned; AGENTS.md template
  and the ipal-skills pointer block carry the rules
- docsConsistency: the rules reach every site-building skill

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-29 11:46:50 +01:00
co-authored by Claude Opus 5.5
parent f57d089f55
commit 25719ae7ec
11 changed files with 195 additions and 52 deletions
+14
View File
@@ -261,6 +261,20 @@ describe('agent guide covers the whole plugin', () => {
expect(missingFrom(env)).toEqual([])
})
test('the working rules reach every skill that builds the site', () => {
const agent = read('docs/agent/AGENT.md')
for (const heading of ['## Ask before you build', '## ipal-kit first', '## Code rules']) {expect(agent).toContain(heading)}
const skills = ['ipal-setup', 'ipal-site', 'ipal-block', 'ipal-collection', 'ipal-form']
const missing = skills.filter((name) => {
const text = read(`docs/agent/skills/${name}/SKILL.md`)
return !text.includes('ipal-kit first') || !text.includes('Code rules') || !text.includes('ipal-plugin-gap')
})
expect(missing).toEqual([])
// Both entry skills start with the architecture questions and wait for the answers.
expect(read('docs/agent/skills/ipal-setup/SKILL.md')).toContain('## 0. Architecture questions')
expect(read('docs/agent/skills/ipal-site/SKILL.md')).toContain('Architecture questions')
})
test('every @/lib/content helper', () => {
expect(missingFrom(contentHelperNames())).toEqual([])
})