Install
openclaw skills install @alazabdev/alazab-global-contextShared production context, operational paths, orchestration policies, agent routing, approvals, deployment and execution standards for all Alazab Portal AI agents, models, sessions and nodes.
openclaw skills install @alazabdev/alazab-global-contextThis file defines the shared operational skills loaded by default for all agents, models, runtimes, sessions, projects, and execution nodes in the Alazab AI Portal.
Canonical global context:
/etc/portal-ai/shared/alazab-portal-ai-global-context.json
The same file must be used by both production servers:
portal-ai.alazab.com
portal-ai.alazab.cloud
scope: global
auto_attach: true
applies_to:
agents: ["*"]
models: ["*"]
runtimes: ["*"]
sessions: ["*"]
projects: ["*"]
nodes: ["*"]
Every agent or model must load context in this order:
Later layers may override earlier layers only within their permitted scope.
Convert a user request into:
No execution starts before the target environment, node, paths, and success criteria are known.
Select the correct agent, model, or runtime based on:
Supported execution targets include:
Support:
Agents must not duplicate work unless parallel comparison is explicitly requested.
Every active project should maintain:
PROJECT.md
ARCHITECTURE.md
DECISIONS.md
CURRENT_STATE.md
KNOWN_ISSUES.md
SERVICE_MAP.md
EXECUTION_PLAN.md
TASKS/
REPORTS/
RUNS/
ARTIFACTS/
BACKUPS/
Agents must update project state after material changes.
/var/www/core/portal-ai
/etc/portal-ai/core
/var/lib/portal-ai/core
/var/log/portal-ai/core
/var/backups/portal-ai/core
/var/www/apps/portal-ai
/etc/portal-ai/cloud
/var/lib/portal-ai/cloud
/var/log/portal-ai/cloud
/var/backups/portal-ai/cloud
/etc/portal-ai/shared
/etc/portal-ai/shared/skills
/etc/portal-ai/shared/policies
/etc/portal-ai/shared/schemas
/etc/portal-ai/shared/templates
Agents must never invent production paths when the global context already defines them.
Before changing production systems:
Non-destructive, reversible operations may proceed automatically.
Destructive or irreversible operations require explicit owner approval.
Approval is required for operations including:
DROP DATABASE
DROP SCHEMA
rm -rf
pg_dropcluster
initdb on existing data
pg_resetwal
force push
DNS deletion
firewall flush
secret rotation
Approval requests must state:
Agents must:
All Core-to-Cloud communication must use authenticated internal APIs over the private network.
Default internal endpoints:
Core: http://10.77.0.1:8200
Cloud: http://10.77.0.2:8100
Required request identity:
Authorization: Bearer <service-token>
X-Alazab-Node: <node-id>
X-Alazab-Timestamp: <timestamp>
X-Alazab-Signature: <hmac-signature>
Execution nodes must not write directly to the Core database.
Codex execution must support:
Default Codex paths:
/var/lib/portal-ai/cloud/workspaces/codex
/var/lib/portal-ai/cloud/sessions/codex
/var/log/portal-ai/cloud/codex
Use the smallest model that can complete the task reliably.
Recommended routing:
az-model-coreaz-model-maintaz-model-financeaz-models-textaz-modelspeechaz-model-voicedeepseek-coder-v2:16bllama3.2-vision:11bdeepseek-ocr:latestNo task is complete until the result is checked against:
High-impact tasks require independent review by a different agent or model.
Every execution event should include:
timestamp
node_id
project_id
mission_id
task_id
agent_id
session_id
event_type
status
message
Logs must be structured as JSONL where supported.
When an operation fails:
Secrets must be resolved from Infisical at runtime.
Production secret manager:
https://env.alazab.com
Rules:
Production deployment uses release directories and an atomic current symlink.
Core:
/var/www/core/portal-ai/releases/<release-id>
/var/www/core/portal-ai/current
Cloud:
/var/www/apps/portal-ai/releases/<release-id>
/var/www/apps/portal-ai/current
Required deployment checks:
Application rollback:
Switch current symlink to the previous verified release.
Restart affected services.
Run health and smoke tests.
Database rollback must use an approved recovery plan and a verified backup.
Agent responses must be:
Operational reports must clearly separate:
PORTAL_AI_NODE_ID
PORTAL_AI_NODE_ROLE
PORTAL_AI_ENVIRONMENT
PORTAL_AI_GLOBAL_CONTEXT
PORTAL_AI_SERVICE_TOKEN
PORTAL_AI_HMAC_SECRET
PORTAL_AI_DATABASE_URL
PORTAL_AI_REDIS_URL
PORTAL_AI_INFISICAL_PROJECT
/etc/portal-ai/shared/skills/alazab-global-context/SKILLS.md
Repository development path:
skills/alazab-global-context/SKILLS.md
The global context file is the source of truth for infrastructure, paths, nodes, services, agents, models, and production rules.
This skills file defines how every agent and model must use that context during planning, execution, review, and reporting.