Access Audit And Reviews
Skill Profile
(Select at least one profile to enable specific modules)
Overview
Access audits and periodic reviews ensure that users have appropriate access to systems and data. This is critical for:
- Compliance: SOC2, ISO 27001, HIPAA, PCI-DSS requirements
- Security: Detect unauthorized access and insider threats
- Least Privilege: Ensure users have only necessary access
- Accountability: Track who accessed what and when
Key Principle: Trust, but verify. Regularly audit access rights and usage.
Why This Matters
Core Concepts & Rules
1. Core Principles
- Follow established patterns and conventions
- Maintain consistency across codebase
- Document decisions and trade-offs
2. Implementation Guidelines
- Start with the simplest viable solution
- Iterate based on feedback and requirements
- Test thoroughly before deployment
Inputs / Outputs / Contracts
- Inputs:
- <e.g., env vars, request payload, file paths, schema>
- Entry Conditions:
- <Pre-requisites: e.g., Repo initialized, DB running, specific branch checked out>
- Outputs:
- <e.g., artifacts (PR diff, docs, tests, dashboard JSON)>
- Artifacts Required (Deliverables):
- <e.g., Code Diff, Unit Tests, Migration Script, API Docs>
- Acceptance Evidence:
- <e.g., Test Report (screenshot/log), Benchmark Result, Security Scan Report>
- Success Criteria:
- <e.g., p95 < 300ms, coverage ≥ 80%>
Skill Composition
- Depends on: None
- Compatible with: None
- Conflicts with: None
- Related Skills: None
Quick Start / Implementation Example
- Review requirements and constraints
- Set up development environment
- Implement core functionality following patterns
- Write tests for critical paths
- Run tests and fix issues
- Document any deviations or decisions
# Example implementation following best practices
def example_function():
# Your implementation here
pass
Assumptions / Constraints / Non-goals
- Assumptions:
- Development environment is properly configured
- Required dependencies are available
- Team has basic understanding of domain
- Constraints:
- Must follow existing codebase conventions
- Time and resource limitations
- Compatibility requirements
- Non-goals:
- This skill does not cover edge cases outside scope
- Not a replacement for formal training
Compatibility & Prerequisites
- Supported Versions:
- Python 3.8+
- Node.js 16+
- Modern browsers (Chrome, Firefox, Safari, Edge)
- Required AI Tools:
- Code editor (VS Code recommended)
- Testing framework appropriate for language
- Version control (Git)
- Dependencies:
- Language-specific package manager
- Build tools
- Testing libraries
- Environment Setup:
.env.example keys: API_KEY, DATABASE_URL (no values)
Test Scenario Matrix (QA Strategy)
| Type |
Focus Area |
Required Scenarios / Mocks |
| Unit |
Core Logic |
Must cover primary logic and at least 3 edge/error cases. Target minimum 80% coverage |
| Integration |
DB / API |
All external API calls or database connections must be mocked during unit tests |
| E2E |
User Journey |
Critical user flows to test |
| Performance |
Latency / Load |
Benchmark requirements |
| Security |
Vuln / Auth |
SAST/DAST or dependency audit |
| Frontend |
UX / A11y |
Accessibility checklist (WCAG), Performance Budget (Lighthouse score) |
Technical Guardrails & Security Threat Model
1. Security & Privacy (Threat Model)
- Top Threats: Injection attacks, authentication bypass, data exposure
2. Performance & Resources
3. Architecture & Scalability
4. Observability & Reliability
Agent Directives & Error Recovery
(ข้อกำหนดสำหรับ AI Agent ในการคิดและแก้ปัญหาเมื่อเกิดข้อผิดพลาด)
- Thinking Process: Analyze root cause before fixing. Do not brute-force.
- Fallback Strategy: Stop after 3 failed test attempts. Output root cause and ask for human intervention/clarification.
- Self-Review: Check against Guardrails & Anti-patterns before finalizing.
- Output Constraints: Output ONLY the modified code block. Do not explain unless asked.
Definition of Done (DoD) Checklist
Anti-patterns / Pitfalls
- ⛔ Don't: Log PII, catch-all exception, N+1 queries
- ⚠️ Watch out for: Common symptoms and quick fixes
- 💡 Instead: Use proper error handling, pagination, and logging
Reference Links & Examples
- Internal documentation and examples
- Official documentation and best practices
- Community resources and discussions
Versioning & Changelog
- Version: 1.0.0
- Changelog:
- 2026-02-22: Initial version with complete template structure
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: access-audit-and-reviews3description: Access audits and periodic reviews ensure that users have appropriate Use when this capability is needed.4---56# Access Audit And Reviews78## Skill Profile9*(Select at least one profile to enable specific modules)*10- [ ] **DevOps**11- [x] **Backend**12- [ ] **Frontend**13- [ ] **AI-RAG**14- [ ] **Security Critical**1516## Overview17Access audits and periodic reviews ensure that users have appropriate access to systems and data. This is critical for:1819- **Compliance**: SOC2, ISO 27001, HIPAA, PCI-DSS requirements20- **Security**: Detect unauthorized access and insider threats21- **Least Privilege**: Ensure users have only necessary access22- **Accountability**: Track who accessed what and when2324**Key Principle**: Trust, but verify. Regularly audit access rights and usage.2526## Why This Matters27- **<Benefit>**: <short explanation>28- **<Benefit>**: <short explanation>29- **<Benefit>**: <short explanation>3031## Core Concepts & Rules3233### 1. Core Principles34- Follow established patterns and conventions35- Maintain consistency across codebase36- Document decisions and trade-offs3738### 2. Implementation Guidelines39- Start with the simplest viable solution40- Iterate based on feedback and requirements41- Test thoroughly before deployment424344## Inputs / Outputs / Contracts45* **Inputs**:46 - <e.g., env vars, request payload, file paths, schema>47* **Entry Conditions**:48 - <Pre-requisites: e.g., Repo initialized, DB running, specific branch checked out>49* **Outputs**:50 - <e.g., artifacts (PR diff, docs, tests, dashboard JSON)>51* **Artifacts Required (Deliverables)**:52 - <e.g., Code Diff, Unit Tests, Migration Script, API Docs>53* **Acceptance Evidence**:54 - <e.g., Test Report (screenshot/log), Benchmark Result, Security Scan Report>55* **Success Criteria**:56 - <e.g., p95 < 300ms, coverage ≥ 80%>5758## Skill Composition59* **Depends on**: None60* **Compatible with**: None61* **Conflicts with**: None62* **Related Skills**: None6364## Quick Start / Implementation Example65661. Review requirements and constraints672. Set up development environment683. Implement core functionality following patterns694. Write tests for critical paths705. Run tests and fix issues716. Document any deviations or decisions7273```python74# Example implementation following best practices75def example_function():76 # Your implementation here77 pass78```798081## Assumptions / Constraints / Non-goals8283* **Assumptions**:84 - Development environment is properly configured85 - Required dependencies are available86 - Team has basic understanding of domain87* **Constraints**:88 - Must follow existing codebase conventions89 - Time and resource limitations90 - Compatibility requirements91* **Non-goals**:92 - This skill does not cover edge cases outside scope93 - Not a replacement for formal training949596## Compatibility & Prerequisites9798* **Supported Versions**:99 - Python 3.8+100 - Node.js 16+101 - Modern browsers (Chrome, Firefox, Safari, Edge)102* **Required AI Tools**:103 - Code editor (VS Code recommended)104 - Testing framework appropriate for language105 - Version control (Git)106* **Dependencies**:107 - Language-specific package manager108 - Build tools109 - Testing libraries110* **Environment Setup**:111 - `.env.example` keys: `API_KEY`, `DATABASE_URL` (no values)112113114## Test Scenario Matrix (QA Strategy)115116| Type | Focus Area | Required Scenarios / Mocks |117| :--- | :--- | :--- |118| **Unit** | Core Logic | Must cover primary logic and at least 3 edge/error cases. Target minimum 80% coverage |119| **Integration** | DB / API | All external API calls or database connections must be mocked during unit tests |120| **E2E** | User Journey | Critical user flows to test |121| **Performance** | Latency / Load | Benchmark requirements |122| **Security** | Vuln / Auth | SAST/DAST or dependency audit |123| **Frontend** | UX / A11y | Accessibility checklist (WCAG), Performance Budget (Lighthouse score) |124125126## Technical Guardrails & Security Threat Model127128### 1. Security & Privacy (Threat Model)129* **Top Threats**: Injection attacks, authentication bypass, data exposure130- [ ] **Data Handling**: Sanitize all user inputs to prevent Injection attacks. Never log raw PII131- [ ] **Secrets Management**: No hardcoded API keys. Use Env Vars/Secrets Manager132- [ ] **Authorization**: Validate user permissions before state changes133134### 2. Performance & Resources135- [ ] **Execution Efficiency**: Consider time complexity for algorithms136- [ ] **Memory Management**: Use streams/pagination for large data137- [ ] **Resource Cleanup**: Close DB connections/file handlers in finally blocks138139### 3. Architecture & Scalability140- [ ] **Design Pattern**: Follow SOLID principles, use Dependency Injection141- [ ] **Modularity**: Decouple logic from UI/Frameworks142143### 4. Observability & Reliability144- [ ] **Logging Standards**: Structured JSON, include trace IDs `request_id`145- [ ] **Metrics**: Track `error_rate`, `latency`, `queue_depth`146- [ ] **Error Handling**: Standardized error codes, no bare except147- [ ] **Observability Artifacts**:148 - **Log Fields**: timestamp, level, message, request_id149 - **Metrics**: request_count, error_count, response_time150 - **Dashboards/Alerts**: High Error Rate > 5%151152153## Agent Directives & Error Recovery154*(ข้อกำหนดสำหรับ AI Agent ในการคิดและแก้ปัญหาเมื่อเกิดข้อผิดพลาด)*155156- **Thinking Process**: Analyze root cause before fixing. Do not brute-force.157- **Fallback Strategy**: Stop after 3 failed test attempts. Output root cause and ask for human intervention/clarification.158- **Self-Review**: Check against Guardrails & Anti-patterns before finalizing.159- **Output Constraints**: Output ONLY the modified code block. Do not explain unless asked.160161162## Definition of Done (DoD) Checklist163164- [ ] Tests passed + coverage met165- [ ] Lint/Typecheck passed166- [ ] Logging/Metrics/Trace implemented167- [ ] Security checks passed168- [ ] Documentation/Changelog updated169- [ ] Accessibility/Performance requirements met (if frontend)170171172## Anti-patterns / Pitfalls173174* ⛔ **Don't**: Log PII, catch-all exception, N+1 queries175* ⚠️ **Watch out for**: Common symptoms and quick fixes176* 💡 **Instead**: Use proper error handling, pagination, and logging177178179## Reference Links & Examples180181* Internal documentation and examples182* Official documentation and best practices183* Community resources and discussions184185186## Versioning & Changelog187188* **Version**: 1.0.0189* **Changelog**:190 - 2026-02-22: Initial version with complete template structure191192---193> Converted and distributed by [TomeVault](https://tomevault.io/claim/amnadtaowsoam) — claim your Tome and manage your conversions.194<!-- tomevault:4.0:skill_md:2026-04-13 -->