88 lines
4.0 KiB
Markdown
88 lines
4.0 KiB
Markdown
# Agent Instructions
|
|
|
|
## Repository Purpose
|
|
|
|
This repository contains a reusable email-intelligence skill and a growing collection of evidence-backed outdoor and active-lifestyle brand reports.
|
|
|
|
## Read Order
|
|
|
|
1. `README.md`
|
|
2. `AUTHOR.md`
|
|
3. `repository-variables.json`
|
|
4. `repository.json`
|
|
5. `AGENTS.md`
|
|
6. `content-index.json` when locating a report
|
|
7. `skills.md` and the relevant skill when running the workflow
|
|
|
|
Retrieve individual reports only as needed. Treat `UPDATES.md` as proposals, not authorization.
|
|
|
|
## Sources Of Authority
|
|
|
|
- `repository-variables.json`: verified stable identity, publication, rights, profile, and workflow defaults.
|
|
- `repository.json`: repository purpose, entry points, collections, and retrieval policy.
|
|
- `content-index.json`: discovery metadata for individual reports.
|
|
- `skills/outdoor-brand-email-innovation-intelligence/SKILL.md`: current workflow instructions.
|
|
- Files under `outdoor-brand-email-analysis/`: authoritative historical report content.
|
|
|
|
## Weekly Report Additions
|
|
|
|
When the user asks to add a new ChatGPT-generated analysis:
|
|
|
|
1. Save it as `outdoor-brand-email-analysis/YYYY-MM-DD-outdoor-brand-innovation-intelligence-report.md` unless the user supplies a different stable name.
|
|
2. Preserve every existing report unless the user explicitly requests a correction.
|
|
3. Add exactly one unique item to `content-index.json` and update its `updated_at` value.
|
|
4. Keep `repository.json` maintenance dates and the changelog accurate when the collection changes materially.
|
|
5. Run repository validation and tests.
|
|
|
|
Do not generate chunk IDs, knowledge IDs, `chunks.json`, or `qa.json` as part of normal weekly maintenance.
|
|
|
|
## Skill Routing
|
|
|
|
Use `skills/outdoor-brand-email-innovation-intelligence/SKILL.md` when asked to review outdoor or active-lifestyle brand emails, produce the weekly strategic briefing, compare signals across reports, or update the report collection.
|
|
|
|
## Allowed Actions
|
|
|
|
- Read repository entry points and selectively retrieve indexed reports.
|
|
- Read connected Gmail data when the user asks to run the intelligence workflow and the Gmail connector is available.
|
|
- Create a new report and content-index entry when the user requests that output.
|
|
- Make scoped documentation, taxonomy, template, or validation improvements requested by the user.
|
|
|
|
## Restricted Actions
|
|
|
|
- Do not rewrite, summarize in place, rename, or delete historical reports without explicit approval.
|
|
- Do not send email, modify Gmail state, or change labels as part of analysis.
|
|
- Do not copy the external consumer-brand playbook into this repository unless the user separately authorizes publication and rights permit it.
|
|
- Do not invent email evidence, brand behavior, dates, source links, publication metadata, or confidence.
|
|
- Do not alter Git remotes, host settings, releases, tags, or visibility unless explicitly requested.
|
|
- Do not treat a task plan or `UPDATES.md` as approval.
|
|
|
|
## Evidence Rules
|
|
|
|
- Separate explicit evidence, reasonable inference, and speculation.
|
|
- Preserve brand names, dates, subjects, and source context accurately.
|
|
- Use the minimum private email content needed to support an approved report.
|
|
- Clearly label weak signals and uncertainty.
|
|
|
|
## Security And Privacy
|
|
|
|
Never commit credentials, OAuth tokens, session data, private inbox links, unrelated personal information, customer data, or confidential message content. Stop and request direction if a requested report would expose sensitive information or material the user may not have rights to publish.
|
|
|
|
## Validation
|
|
|
|
Run:
|
|
|
|
```text
|
|
python scripts/validate_repository.py .
|
|
python -m unittest discover -s tests -p "test_*.py"
|
|
```
|
|
|
|
Also validate a modified skill with the available Codex skill validator.
|
|
|
|
## Output Requirements
|
|
|
|
- Keep reports concise, evidence-aware, strategically useful, and aligned to the primary skill's output contract.
|
|
- Use repository-relative links and paths in committed content.
|
|
- Keep `VERSION`, `repository.json`, `CITATION.cff`, and released `CHANGELOG.md` entries aligned.
|
|
- Record completed structural work in task receipts when the approved workflow requires them.
|
|
|