feat(gtm): add mandatory knowledge-base read/write directives to GTM skills

Agents must now read client profiles before GTM work and write session
logs after completing audits, tag changes, or validation — ensuring
findings compound across sessions instead of being lost.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-01 00:03:13 +09:00
parent f292408ea8
commit c35a28780d
3 changed files with 42 additions and 0 deletions

View File

@@ -6,6 +6,20 @@ description: GTM page audit - scan fired tags, gap analysis, tag design from DOM
Comprehensive Google Tag Manager audit using Playwright to scan live pages for container health, tag firing, dataLayer events, form tracking, and e-commerce checkout flows.
## MANDATORY: Knowledge Base Read/Write
**Before starting any audit:**
1. Identify the target client from container ID or URL
2. Read `knowledge-base/accounts/<client>/profile.md` — URL patterns, known issues, platform stack, past findings
3. Read `knowledge-base/accounts/<client>/*.md` — taxonomy, naming issues to exclude from new findings
4. Skim `knowledge-base/logs/<client>/` — past session context
**After completing audit, write a session log:**
- Write to `knowledge-base/logs/<client>/YYYY-MM-DD-<description>.md`
- Include: date, container ID, status, issues found (root causes + specific IDs), lessons learned
- Update `knowledge-base/accounts/<client>/profile.md` if you discovered persistent facts
- See `AGENTS.md` for full format template
## Triggers
- "audit GTM", "check dataLayer", "GTM 검사", "scan GTM tags", "audit tags on page", "check tag firing"