Client site context manager

From lightspeedwp/.github · View interactive version

Client site context manager is an AI agent skill from the GitHub repository lightspeedwp/.github. normalize and maintain lightweight, reusable client and site context for website audit workflows. use when a user asks to create, update, clean, standardize, retrieve, or reconcile durable audit context for clients, sites, page groups, business priorities, platform constraints, recurring notes, or n

How to use this skill

Skill file

Client Site Context Manager

Purpose

Maintain a small, trusted context layer that helps future website audits start with the right client, site, priorities, constraints, and page-group names.

Use this skill to normalize durable context, not to store raw audit evidence. Keep entries lightweight, source-aware, and easy to update.

Core Workflow

  1. Identify the target client and site
  1. Classify the input
  1. Update the smallest useful entry
  1. Summarize the change

Data Model

Use the following model for shared workspace context. Keep optional fields out when empty.

Client Context

client_id: canonical-client-slug
canonical_name: Client Name
aliases:
  - alternate spelling or legacy name
status: active | inactive | prospect | unknown
business_summary: one or two stable sentences about the organisation
business_priorities:
  - priority: Lead generation
    notes: Durable reason this matters across audits
primary_audiences:
  - audience group
markets:
  - country, region, or market when audit-relevant
recurring_notes:
  - note: Repeated or confirmed client-level context
    confidence: confirmed | observed-repeated
    source: user-provided | workspace-doc | prior-audit | other
last_reviewed: YYYY-MM-DD

Site Context

site_id: canonical-site-slug
client_id: canonical-client-slug
canonical_name: Site Name
site_role: main website | ecommerce | campaign | portal | microsite | staging | other
stable_domain: example.com
platform:
  cms: WordPress | Shopify | custom | unknown
  ecommerce: WooCommerce | Shopify | none | unknown
  theme_or_stack: LSXD | custom theme | block theme | classic theme | unknown
  hosting: provider or environment constraint when audit-relevant
constraints:
  - constraint: Durable technical, platform, hosting, legal, or operational constraint
    impact: Why future audits should know this
business_priorities:
  - priority: Enquiries, sales, subscriptions, donations, bookings, editorial reach, or similar
    audit_relevance: How this changes audit weighting
integrations:
  - name: GA4, GTM, Mailchimp, Zoho, Wetu, payment gateway, CRM, or similar
    relevance: Why auditors should consider it
recurring_notes:
  - note: Repeated or confirmed site-level context
    confidence: confirmed | observed-repeated
    source: user-provided | workspace-doc | prior-audit | other
last_reviewed: YYYY-MM-DD

Page Group Context

site_id: canonical-site-slug
page_groups:
  - group_id: canonical-page-group-slug
    label: Human-readable page group name
    purpose: Why this group matters in audits
    include_patterns:
      - /shop/*
      - /category/*
    exclude_patterns:
      - /checkout/*
    priority: high | medium | low
    audit_notes: Stable guidance for future audits

Change Log Entry

date: YYYY-MM-DD
entry: clients/client-slug/sites/site-slug.md
change_type: created | updated | renamed | merged | deprecated
summary: Short description of the durable context change
source: user-provided | workspace-doc | audit-report | other
confidence: confirmed | observed-repeated
not_stored:
  - Temporary or speculative information intentionally excluded

What to Store

Store context when it is stable, reusable, and useful across future audits:

What Not to Store

Do not save context when it is one-off, temporary, speculative, sensitive, or better suited to a specific audit report:

Naming Standards

Use consistent names so related audits can find the right context quickly.

When renaming, keep the old alias in aliases and add a changelog entry explaining the rename.

Recommended File Structure

Use this structure in a shared workspace, repo, Drive folder, or project memory folder:

client-site-context/
├── README.md
├── index.md
├── clients/
│   └── client-slug/
│       ├── client.md
│       ├── changelog.md
│       ├── naming.md
│       ├── page-groups/
│       │   └── site-slug.md
│       └── sites/
│           └── site-slug.md
└── templates/
    ├── client.md
    ├── site.md
    ├── page-groups.md
    └── changelog-entry.md

Recommended usage:

Clean Update Guidance

When updating an existing entry:

  1. Search before creating
  1. Prefer additive, source-aware edits
  1. Remove contradiction
  1. Keep uncertainty out of durable context
  1. Return an audit-safe summary

Output Patterns

Context Update Summary

## Context Update Summary

Updated: `clients/client-slug/sites/site-slug.md`

Stored:
- Added WooCommerce as a durable ecommerce constraint.
- Added “checkout conversion” as a high-priority audit concern.

Not stored:
- Excluded today’s PageSpeed scores because they belong in the audit report.
- Excluded the staging preview URL because it is temporary.

Confidence: confirmed from user-provided context.

New Context Entry Summary

## New Context Entry Created

Client: Client Name (`client-slug`)
Site: Site Name (`site-slug`)

Stored:
- Canonical client and site names.
- Stable production domain.
- Platform and ecommerce constraints.
- Reusable page groups for future audits.

Next useful confirmation:
- Confirm whether lead generation or ecommerce conversion should carry the highest audit weighting.

Bundled References

Load references/context-templates.md when creating or updating actual workspace context files.

_Docs signed by 🤖 Copilot for LightSpeedWP – always fresh!_

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.