원클릭으로
audit-log-integrator
Use when adding audit log entries for any mutation or security event
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use when adding audit log entries for any mutation or security event
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Record browser-based feature demos as GIFs via Playwright and optionally document them in docs/features/index.md. Trigger with "Demo <feature>" or "Demo and Document <feature>".
Use when creating service modules in apps/api/skillhub/services/
Use when writing API tests in apps/api/tests/
Use when implementing division-based access control on any endpoint
Use when adding services to docker-compose.yml or creating Dockerfiles
Use when implementing error handling across the API, frontend, or MCP server
| name | audit-log-integrator |
| description | Use when adding audit log entries for any mutation or security event |
Audit log is append-only. No UPDATE or DELETE from application code. PostgreSQL trigger enforces this.
from libs.db.skillhub_db.models.audit import AuditLog
def audit_log(db, event_type, actor_id, target_type, target_id, metadata=None, ip=None):
entry = AuditLog(
event_type=event_type,
actor_id=actor_id,
target_type=target_type,
target_id=target_id,
metadata=metadata or {},
ip_address=ip,
)
db.add(entry)
{domain}.{action} — examples:
skill.installed, skill.uninstalled, skill.forkedskill.favorited, skill.unfavoritedreview.created, review.updatedsubmission.created, submission.gate1_passedadmin.skill_featured, admin.skill_removedaccess.denied, access.requested, access.grantedInclude context needed for audit trail:
{"version": "2.3.1", "method": "mcp", "division": "engineering-org"}
@router.get("/api/v1/admin/audit-log")
def get_audit_log(event_type: str = None, target_type: str = None, ...):
query = db.query(AuditLog).order_by(AuditLog.created_at.desc())
if event_type: query = query.filter(AuditLog.event_type == event_type)
libs/db/skillhub_db/models/audit.pyapps/api/skillhub/routers/admin.pyapps/api/skillhub/services/social.py