Use the skill with an AI assistant
The demo zip contains a skill: an instruction file that teaches an AI assistant to connect your module to the Kixell Tag banner, building on the demo's code.
What the skill contains #
The skill is in the skills/kixelltag-module-consent/ folder of the zip: a SKILL.md file readable by any assistant. It gives the assistant:
- the rules of this section, never to be broken;
- an eight-step method: list what the module stores or collects, classify each processing operation, have the declaration approved, write the PHP side, write the page side, remove the old consent code, write the instructions for the merchant, check;
- code templates compatible with PHP 5.6 and the list of mistakes to reject in review.
The assistant uses the kixconsentdemo module as its reference example: keep the full module next to the skill.
Steps #
- Unzip
kixconsentdemo.zipand place thekixconsentdemofolder in your module's repository, for example invendor-docs/kixconsentdemo/. - Copy the
skills/kixelltag-module-consent/folder into.claude/skills/at the root of the project, or into~/.claude/skills/for all your projects. - Ask, for example: "Add Kixell Tag consent to this module with the kixelltag-module-consent skill."
- Unzip
kixconsentdemo.zipand place thekixconsentdemofolder in your module's repository, for example invendor-docs/kixconsentdemo/. - Give the assistant the
SKILL.mdfile and the demo'sdocs/folder, or add to its project instructions: "Before changing how this module handles cookies or consent, read vendor-docs/kixconsentdemo/skills/kixelltag-module-consent/SKILL.md and follow it." - Ask it to add Kixell Tag consent to the module.
Before writing any code, the assistant shows you a table: the key, the name, the privacy policy address and the purposes of each partner, with one line of justification per purpose.
Approving the declaration #
This is the step not to delegate. Review the proposed table:
- the legal basis of each processing operation: consent or legitimate interest;
- the purposes: purpose 1 as soon as a cookie or storage on the device is involved;
- the address of your real privacy policy. If you do not give one, the assistant must make it a module setting and declare nothing as long as it is empty, never make up an address.
A partner key is final: check it before the first published version.
Note
The skill is a technical guide, not legal advice. The decision on the legal basis is yours, or the merchant's.
Reviewing the assistant's work #
What to check in the generated code
- No collection when Kixell Tag is missing: no fallback such as
if (!Module::isEnabled('kixelltag')) { collect(); }. - No
$this->dependencies = ['kixelltag']. - No reading of
_kt_tokenor of any other Kixell Tag cookie. - No
hasVendorConsent()in the display hooks of a page that can be cached, nor in a payment notification. - Every
kixelltag/javascriptscript that processes data hasdata-kt-vendor. - No "refused" value is stored.
- The
actionKixellTagConsenthook reads$params['modules'], without callinghasVendorConsent(). - An upgrade script registers both hooks for shops that already have the module.
consent_uid, visitor identifiers and IP addresses appear in no log.
Then run the test scenarios, or ask the assistant for the list of what it could not test.
Missing or wrong information? Tell the support team