PageSpeed Audit Onboarding
When to use this skill
Use this skill only when the current request is for a PageSpeed audit and one or more required user-specific defaults in references/onboarding-contract.yaml are missing.
Do not use this skill when the current request already provides enough context to complete the audit, or when existing Memory already contains the required defaults.
Supporting Files
references/onboarding-contract.yaml— Read this first to determine when onboarding should run, which fields are required, which are optional, and how to store them in Memory.
Memory state
Use {{label:Memory,id:file_persistence,type:file_persistence}} as the backing store for the onboarding keys in references/onboarding-contract.yaml.
Persist those keys for the current runtime end user in a single compact state file named user-defaults.yaml, and read that file before asking the user to restate defaults.
Do not use Memory as a general transcript or scratchpad. Store only the durable defaults defined in the onboarding contract.
Preflight
- Read
references/onboarding-contract.yaml. - Read
user-defaults.yamlfrom Memory if it exists. - Compare the current request and available persisted state against the contract's
trigger_whenandrequired_statefields. - If the request does not require missing reusable defaults, skip this skill and continue the user's original request.
- If the current request already includes any contract-defined defaults that are missing from Memory, save those values into
user-defaults.yamlusing the contract'sstore_askeys. - Re-check the required state after saving any values supplied in the current request. If all required state is now present, skip user questions and continue the original request.
- If required state is still missing, ask only for the missing required fields.
Onboarding workflow
- Ask the current runtime end user one concise question at a time.
- Block only on required fields from
required_state, and keep the list to the smallest set needed to continue correctly. - Treat
optional_stateas best-effort preferences. Ask for them only when doing so would materially improve future audits and the current request naturally supports it. - If the user declines an optional preference, use the contract's default value and continue.
- Persist collected answers to
user-defaults.yamlusing the contract'sstore_askeys. - As soon as
completion_requiresis satisfied, stop onboarding and resume the user's original audit request immediately.
Output
Do not present onboarding as a separate task. Confirm only the defaults that matter for the current audit, then continue the audit workflow.
When resuming the original task, use the saved defaults to shape the audit depth, audience, and reusable client context, but let the current request override any saved preference.
_This page brought to you by the 🦄 Magic Automation Unicorns of LightSpeedWP._