- Introduced new commands and skills for workspace memory curation, professional communication, and status reporting. - Updated existing commands to utilize new skills and improve clarity in instructions. - Created a new workspace context command to load reusable core and active project profile. - Enhanced Mattermost inbox integration with support for generic environment variables. - Established a clear separation between project-independent core logic and project-specific profiles. - Improved documentation across various files to reflect changes in workflow and command usage. - Added operational memory management rules to ensure accurate context promotion and correction. - Updated README and workflow documents to guide users in utilizing the new structure effectively.
66 lines
1.7 KiB
Markdown
66 lines
1.7 KiB
Markdown
# Scripts
|
|
|
|
This directory contains helpers that automate:
|
|
|
|
- context aggregation
|
|
- standup generation
|
|
- manager update drafting
|
|
- Mattermost-ready message formatting
|
|
- historical Slack import
|
|
|
|
The default workspace Mattermost extractor now lives in:
|
|
|
|
- `scripts/mattermost/`
|
|
|
|
Recommended default command:
|
|
|
|
```bash
|
|
bash scripts/mattermost/sync.sh
|
|
```
|
|
|
|
Bootstrap command:
|
|
|
|
```bash
|
|
bash scripts/mattermost/bootstrap.sh
|
|
```
|
|
|
|
The current Mattermost extractor is stdlib-only and does not require installing `requests`.
|
|
It also supports readable channel names in `.env`, not only channel IDs.
|
|
|
|
If you still want to override it with another script, expose that to OpenCode with:
|
|
|
|
- `AIW_MATTERMOST_SYNC_CMD`
|
|
- `FIDELITY_MATTERMOST_SYNC_CMD`
|
|
|
|
Example:
|
|
|
|
```bash
|
|
export AIW_MATTERMOST_SYNC_CMD="/absolute/path/to/your-mattermost-sync-script"
|
|
```
|
|
|
|
Expected behavior:
|
|
|
|
- print the latest relevant Mattermost context to stdout
|
|
- avoid interactive prompts
|
|
- return a non-zero exit code on failure
|
|
|
|
OpenCode can then use that output to refresh `ai/inbox/mattermost-latest.md` proactively.
|
|
|
|
Historical Slack exports can also be imported through:
|
|
|
|
- `python3 scripts/slack/import_slack_export.py ...`
|
|
- `/archive-import ...`
|
|
- `/slack-import ...`
|
|
|
|
Recommended raw archive location:
|
|
|
|
- `archives/slack/export/`
|
|
|
|
The importer can auto-detect channels using `AIW_CHANNEL_PREFIX` and auto-tune message selection for very large exports. It defaults to `fidelity` for this project profile.
|
|
|
|
The Mattermost extractor can also fetch the latest prior day with channel activity for standups. It starts from the previous calendar day and expands backward automatically when there is no activity, which covers Mondays, weekends, holidays, and OOO gaps.
|
|
|
|
```bash
|
|
bash scripts/mattermost/sync.sh --previous-workday
|
|
```
|