Organizational learning from CFN Loop execution - workflow codification and playbooks...
Version: 1.0.0 Purpose: Organizational learning from CFN Loop execution Status: Production Consolidates: workflow-codification, cfn-playbook Confidence: 7.0/10 (dual learning systems)
This mega-skill provides organizational learning:
knowledge-base/
āāā SKILL.md # This file
āāā execute.sh # Main entry point
āāā cli/
ā āāā knowledge-base.sh # Unified CLI interface
āāā lib/
ā āāā workflow/ # From workflow-codification
ā āāā playbook/ # From cfn-playbook
āāā data/ # Database files (created on init)
āāā workflows.db
āāā playbooks.db
āāā learnings.db
| Old Path | New Path |
|---|---|
| workflow-codification/ | knowledge-base/lib/workflow/ |
| cfn-playbook/ | knowledge-base/lib/playbook/ |
# Initialize databases
./execute.sh init
# Query for patterns
./execute.sh query 'authentication'
# Store new learning
./execute.sh store playbook '{"task_type": "auth", "pattern": "..."}'
# Show help
./execute.sh help
# Direct CLI access
./cli/knowledge-base.sh --help
# Query workflow patterns
./cli/knowledge-base.sh query-workflow --pattern 'auth'
# Query playbook entries
./cli/knowledge-base.sh query-playbook --task-type bugfix
# Store learning with metadata
./cli/knowledge-base.sh store-learning \
--type workflow \
--category edge-case \
--data '...' \
--confidence 0.85
A lightweight per-project learnings system complements the knowledge base. While the knowledge base stores structured workflow and playbook data in SQLite, the learnings system uses append-only JSONL files for fast, low-friction logging of patterns, pitfalls, and preferences discovered during agent work.
See LEARNINGS.md for the full specification, including storage format, subcommands (/learn), auto-logging hooks, and pruning rules.