AGENTS.md

Project-specific guidance for AI coding and research agents working in this public GitHub Pages repository. Use this file as the main entry point. Open deeper docs only when the task needs them.

Last updated: 2026-10-05. The repository uses product-level navigation, stable deep URLs, and a deterministic sitewide content-quality and AI-search-readiness pipeline.

Repository Purpose

This is the public personal technical lab and structured knowledge system of Dzmitryi Kharlanau, an SAP consultant at EPAM Systems focused on SAP operations, logistics, integration, data, diagnostics, enterprise engineering, and practical AI. The site is personal and independent; it is not an EPAM Systems publication or a commercial consulting channel.

The site has six product areas:

  1. Profile — public identity, experience, certifications, and professional evidence.
  2. Knowledge — reviewed and working human-readable knowledge: Atlas, Scenarios, Research, Journal, and Notes.
  3. Labs — active SAP, AI, operational, and assessment workspaces.
  4. Frameworks — reusable reasoning and execution methods that can be applied across domains.
  5. Machine layer — datasets, AI-readable exports, skills, tools, discovery files, and MCP source packages.
  6. Practice — problem-led playbooks and exercises kept under stable legacy /services/ URLs; they are not commercial offers.

Everything committed to this repository is public. Treat every file accordingly.

High-Level Site Structure

Area Primary path Purpose
Profile /, about.md, cv/ Positioning, identity, experience, trust signals
Knowledge knowledge/ Product hub for Atlas, Scenarios, Research, Journal, and Notes
Knowledge Atlas atlas/ Curated diagnostic, conceptual, and SAP-specific content
Scenarios scenarios/ Business pain mapped to SAP process context and diagnostic workflows
Research / Radar research/, _radar/, _news/ Briefs, comparisons, watchlists, signal tracking
Labs labs/ SAP Enterprise, AI Ready, Business AI, operational protocols, assessment practice
Frameworks frameworks/ Product hub for TRIZ, Decision Design, Reusable Data Procedures, operational protocols
Machine layer machine/ Product hub for datasets, AI exports, skills, tools, and MCP
Datasets datasets/ Canonical machine-readable dataset collections
AI-readable exports ai/ JSON/YAML machine endpoints and generated indexes
Agent Skills agent-skills/ Portable agent skill packages for Codex, Claude Code, and similar tools
Agent Tools agent-tools/ Static public tool descriptions
Practice services/ Stable legacy routes for problem-led practice playbooks and technical exercises; not a commercial catalogue
Quality pipeline scripts/content_quality.py, config/content-quality.yml Publication safety, link graph, search, quality, and AI-retrieval checks
Quality reports reports/ Locally generated audit and review outputs; normally ignored/generated
Legal legal/ Privacy, terms, disclosure, responsible AI, accessibility

Structural Routing Rules

Agent Skills Purpose

agent-skills/ contains portable, installable agent skill packages that complement the human-readable Skill Hub pages. Each skill is a compact operational instruction set for AI agents (Claude Code, Codex, and similar tools).

Key principles:

Export commands:

# For Codex
python3 agent-skills/exporters/export_codex_skills.py --profile sap-ams

# For Claude Code
python3 agent-skills/exporters/export_claude_skills.py --profile sap-ams

Read agent-skills/README.md for full documentation.

Atlas Purpose

The Atlas is a curated working knowledge base for concepts that matter during SAP support, process analysis, operational memory work, and side-by-side AI design. It is intentionally conservative: reviewed pages first, raw research notes kept private or noindex.

Atlas sections:

Scenarios Purpose

Scenarios connect business pain to SAP diagnostic workflows. Each scenario follows a consistent pattern:

  1. Business pain
  2. Process context
  3. SAP touchpoints
  4. Root causes (master data / configuration / integration)
  5. Cost drivers
  6. Diagnostic workflow
  7. Solution patterns
  8. AI / automation opportunity (with conservative boundaries)
  9. Related Atlas links

Scenarios are complementary to Atlas: Atlas pages are diagnostic deep-dives; Scenarios are workflow lenses showing why those diagnostics matter to business outcomes.

Research / Radar Purpose

Research content is opinionated but conservative. It does not claim official SAP endorsement.

Content Quality and AI Search Readiness

The primary quality entry point is:

python3 scripts/content_quality.py audit --site-dir _site

Supported commands:

python3 scripts/content_quality.py audit
python3 scripts/content_quality.py check
python3 scripts/content_quality.py check --changed-from origin/main
python3 scripts/content_quality.py report
python3 scripts/content_quality.py fix --safe --dry-run
python3 scripts/content_quality.py baseline

Run the audit after a production Jekyll build when validating rendered HTML. check is the publication gate: hard safety, canonical, eligibility, privacy, prompt-injection, malformed-artifact, and broken-public-link failures cannot be baselined. Historical editorial warnings may be recorded by baseline in config/content-quality-baseline.json; never use the baseline to suppress a hard safety error.

The shared normalized page representation lives in scripts/lib/content_model.py. Do not create a second definition of public content, canonical URLs, verification, sitemap eligibility, or AI retrieval eligibility in another script. Add policy to config/content-quality.yml where practical and give every new rule a stable identifier, remediation text, severity, and fixture test.

The Markdown cluster index is generated by scripts/generate_atlas_artifacts.py and written to ai/markdown-clusters.json. It dynamically covers public Markdown across Atlas, blog, notes, research, radar, Skill Hub, services, scenarios, datasets, tools, AI pages, localized pages, and related collections. Pages without a route remain deferred; noindex or unverified pages must not become retrieval-eligible. Do not hand-edit generated cluster, expert-evidence, expert-promotion, verified-page, llms-full.txt, or related artifacts; regenerate and validate them instead.

Expert context and CTA blocks are opt-in, topic-specific, visible HTML/Markdown attribution. They must link to the canonical website and public evidence, use neutral practice or profile routes, avoid commercial calls to action, avoid unsupported superlatives or model instructions, and never turn unverified material into proof of expertise.

Read docs/content-quality-pipeline.md for architecture, content models, scoring, hard blockers, baseline workflow, safe-fix boundaries, and CI behavior.

Practice / Entity Positioning

The physical services/ directory is a legacy stable route. Its public meaning is now practice playbooks, not consulting offers.

Rules:

  1. Keep established /services/ URLs stable when they already have inbound links.
  2. Present pages as personal exercises, diagnostics, architecture patterns, or reusable playbooks.
  3. Do not add pricing, booking CTAs, statements of work, delivery promises, “hire me” language, or commercial availability.
  4. Employment at EPAM Systems may appear as professional identity context, but the site must clearly state that it is personal and independent.
  5. Use public or synthetic data in examples; never turn a client situation into public evidence.

The preferred public entry points are /knowledge/, /lab/, /labs/, /about/, and /machine/.

Content Safety Rules

Writing and Editorial Profile

Before writing or editing any article-like content, agents must read, in order:

  1. AGENTS.md (this file)
  2. docs/content/author-editorial-profile.md
  3. docs/templates/README.md
  4. docs/site-content-design-contract.md
  5. The relevant page template or collection rules (e.g., docs/templates/atlas-diagnostic-page.md, docs/ai/AGENT_TASK_PATTERNS.md, docs/research/RESEARCH_CONTRACT.md)

Article-like content includes Atlas pages, Skill Hub pages, scenarios, diagnostics pages, blog/articles, glossary expansions with explanatory prose, public-facing guides, content clusters, and SEO/AI-readable educational pages.

The profile is mandatory input, not optional style advice. Apply it as a decision system for practical expert framing, clear problem → diagnostic → action structure, sober non-hype language, optional author perspective, and avoiding generic AI-written prose.

Rules:

Verification / Indexing Rules

The repository uses a three-level content verification system:

Level Status Frontmatter Indexing
1 — Review candidate needs_verification verified: false, robots: noindex,follow, sitemap: false Noindex
2 — Verified reviewed verified: true, robots: index,follow, sitemap: true Indexable
3 — Flagship reviewed + source-backed verified: true, strong internal links, cited sources Strong signal

Read docs/ai/CONTENT_VERIFICATION_POLICY.md for the full policy.

UI Component Maintenance

For any request that changes layout, typography, tables, cards, FAQ, sources, diagrams, navigation rows, spacing, borders, or reusable visual patterns, read docs/ui-agent-workflow.md, docs/ui-component-catalog.md, and config/ui-components.json before editing CSS.

Reuse-first rule: before introducing a new renderer, diagram library, graph model, or reusable visual component, inspect both the site’s registered components and the relevant public sibling repositories under dkharlanau. For relationship, process, lineage, architecture, mapping, or dependency work, the first candidates are visual-workbench, data-relationship-map, transformation-graph, process-as-code, mapping-as-code, enterprise-change-graph, and enterprise-architecture-composer. Reuse a semantic contract, projection, adapter, renderer, or generated artifact when it fits; do not create a second source of truth or copy a whole engine into the site without a concrete need.

Use this loop:

  1. Name the reader task: read, compare, navigate, verify, answer, trace, or remember.
  2. Select a registered stable or domain component by intent. Inspect its reference route and owner files.
  3. When the task involves a visual model or reusable behavior, inspect the relevant sibling repositories before inventing a new implementation. Record what was inspected and why the chosen reuse boundary is appropriate.
  4. Diagnose whether the failure is typography, density, layout, affordance, boundary, cascade, or wrong content shape.
  5. Change the smallest correct owner layer. Do not fix a shared-component problem with a route-local override.
  6. If the reusable contract changes, update CSS/include + registry + catalog in the same commit.
  7. Run python3 scripts/validate_ui_components.py, build the site, then inspect the affected rendered route at desktop and mobile sizes. Use the visual smoke tooling or equivalent browser screenshots and check the actual page, not only source code.

New components begin as candidate. They need a semantic name, owner layer, real route, responsive behavior, accessibility behavior, registry entry, and catalog entry before they can be promoted. Repeated page-specific variants are treated as design-system debt.

Visual Detail Checks

Common Commands

# Setup
./bin/setup

# Full validation sequence (run before publishing)
PYTHONDONTWRITEBYTECODE=1 python3 -m pytest tests
python3 scripts/check_public_repo.py
bundle exec jekyll build
python3 scripts/check_links.py _site
python3 scripts/check_seo.py _site

# Dataset generators
python3 bin/enrich_datasets.py
python3 bin/generate_dataset_pages.py
node scripts/generate_dama_pages.js

# Atlas artifact generation
python3 scripts/generate_atlas_artifacts.py

# Sitewide quality and AI-search readiness
python3 scripts/content_quality.py audit --site-dir _site
python3 scripts/content_quality.py check --site-dir _site
python3 scripts/generate_atlas_artifacts.py --check

# Local preview
bundle exec jekyll serve

What Agents May Edit

What Agents Must Not Edit

Validation Commands

Before any PR that touches content, structure, datasets, or config:

PYTHONDONTWRITEBYTECODE=1 python3 -m pytest tests
python3 scripts/check_public_repo.py
bundle exec jekyll build --trace
python3 scripts/content_quality.py check --site-dir _site
python3 scripts/generate_atlas_artifacts.py --check
python3 scripts/check_links.py _site
python3 scripts/check_seo.py _site
python3 scripts/check_page_quality.py --site-dir _site --fail-on-critical
python3 scripts/check_structured_data.py _site
git diff --check

Run the smallest relevant set first, then the full sequence before publishing.

PR Rules

No-Private-Corpus Rule

No-Invented-Validation-Success Rule

Deeper Documentation