Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

documentation-portfolio文档组合

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

517

周安装

22

GitHub Stars

6

下载量

181
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:documentation-portfolio(文档组合)
来源仓库:https://github.com/hack23/homepage
仓库路径:skills/documentation-portfolio
安装命令:
npx skills add https://github.com/hack23/homepage --skill documentation-portfolio
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/hack23/homepage --skill documentation-portfolio

简介

定义 Hack23 项目所需的完整架构文档集合,确保运营与规划的可视化。

  • 强制要求产出 C4 模型图、数据模型、流程图等八类核心说明文件。
  • 采用思维导图、状态图等多种可视化手段增强复杂系统的理解效率。
  • 所有文档必须反映当前真实状态,不得混淆已实现与计划中功能边界。
  • documentation-portfolio 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Documentation Portfolio Skill

Purpose

This skill defines the complete set of architecture documentation required for Hack23 projects. It ensures comprehensive documentation that supports both current operations and future planning, following best practices for technical documentation.

Rules

Required Documentation Files

MUST CREATE for each project:

Current State Documentation

  • ARCHITECTURE.md - C4 model diagrams (Context, Container, Component)
  • DATA_MODEL.md - Database schema, entity relationships
  • FLOWCHART.md - Process flows and workflows
  • STATEDIAGRAM.md - State machines and transitions
  • MINDMAP.md - System concepts and relationships
  • SWOT.md - Strengths, Weaknesses, Opportunities, Threats analysis

Future State Documentation

  • FUTURE_ARCHITECTURE.md - Planned architecture changes
  • FUTURE_DATA_MODEL.md - Planned data model evolution
  • FUTURE_FLOWCHART.md - Planned process improvements
  • FUTURE_STATEDIAGRAM.md - Planned state machine changes
  • FUTURE_MINDMAP.md - Future vision and concepts
  • FUTURE_SWOT.md - Future state SWOT analysis

Security Documentation

  • SECURITY_ARCHITECTURE.md - Security controls and architecture
  • FUTURE_SECURITY_ARCHITECTURE.md - Planned security improvements
  • THREAT_MODEL.md - Threat analysis and mitigations

Supplementary Documentation

  • README.md - Project overview, getting started
  • .github/SECURITY.md - Vulnerability reporting
  • CONTRIBUTING.md - Contribution guidelines
  • CLASSIFICATION.md - Data classification guidance (if applicable)
  • ADR/ directory - Architecture Decision Records

Documentation Standards

MUST:

  • Write in Markdown format
  • Use Mermaid for all diagrams
  • Include table of contents for documents > 500 lines
  • Add last updated date at top of document
  • Link related documents
  • Version documents (use git for versioning)
  • Keep diagrams up-to-date with code
  • Review documentation quarterly

MUST NOT:

  • Include sensitive information (secrets, credentials)
  • Create stale documentation (update or delete)
  • Duplicate information across documents (link instead)
  • Use proprietary diagram formats (use Mermaid)

ARCHITECTURE.md Structure

MUST INCLUDE:

  1. Overview - System purpose and scope
  2. System Context Diagram - C4 Level 1
  3. Container Diagram - C4 Level 2
  4. Component Diagrams - C4 Level 3 (for key containers)
  5. Technology Stack - Languages, frameworks, services
  6. Deployment Architecture - How system is deployed
  7. Integration Points - External systems and APIs
  8. Architecture Decision Records - Links to ADRs

DATA_MODEL.md Structure

MUST INCLUDE:

  1. Overview - Data model purpose
  2. Entity Relationship Diagram - Mermaid ER diagram
  3. Entity Descriptions - Each entity with attributes
  4. Relationships - Cardinality and constraints
  5. Indexes - Performance-critical indexes
  6. Data Classification - Sensitivity of each entity/attribute
  7. Data Retention - How long data is kept

FLOWCHART.md Structure

MUST INCLUDE:

  1. Overview - Processes documented
  2. Key Workflows - Main user/system flows
  3. Flowchart Diagrams - Mermaid flowcharts
  4. Decision Points - Logic branches explained
  5. Error Handling - Exception flows
  6. Performance Considerations - Bottlenecks, optimizations

STATEDIAGRAM.md Structure

MUST INCLUDE:

  1. Overview - State machines in system
  2. State Diagrams - Mermaid state diagrams
  3. States - Description of each state
  4. Transitions - Events that trigger transitions
  5. State Invariants - What must be true in each state
  6. Terminal States - End states and cleanup

MINDMAP.md Structure

MUST INCLUDE:

  1. Overview - Purpose of mindmap
  2. Core Concepts - Central ideas
  3. Mindmap Diagram - Mermaid mindmap
  4. Concept Descriptions - Explanation of each node
  5. Relationships - How concepts connect
  6. Use Cases - How mindmap aids understanding

SWOT.md Structure

MUST INCLUDE:

  1. Overview - Context for SWOT analysis
  2. Strengths - Internal positive attributes
  3. Weaknesses - Internal limitations
  4. Opportunities - External favorable factors
  5. Threats - External risks
  6. Strategy Matrix - How to leverage/address SWOT
  7. Action Items - Concrete next steps

Examples

Example 1: DATA_MODEL.md Structure

# Data Model - Hack23 CIA Platform

**Last Updated:** 2025-01-24

## Overview

This document describes the data model for the Citizen Intelligence Agency platform, which stores political data including politicians, parties, votes, and documents.

## Entity Relationship Diagram

erDiagram POLITICIAN ||--o{ POLITICIAN_ROLE : has POLITICIAN ||--o{ VOTE : casts POLITICIAN }|--|| PARTY : "member of"

PARTY ||--o{ VOTE : "party line" PARTY ||--o{ DOCUMENT : publishes

BALLOT ||--o{ VOTE : contains BALLOT }|--|| COMMITTEE : "voted in"

DOCUMENT }|--o| POLITICIAN : authored DOCUMENT }|--o| PARTY : published

POLITICIAN { uuid id PK string personId UK "Unique ID from Riksdagen" string firstName string lastName date birthDate string gender timestamp createdAt timestamp updatedAt }

PARTY { uuid id PK string partyId UK string name string abbreviation string website timestamp createdAt }

POLITICIAN_ROLE { uuid id PK uuid politicianId FK string roleType "MP, Minister, etc" date fromDate date toDate string details }

VOTE { uuid id PK uuid ballotId FK uuid politicianId FK string voteOption "Yes, No, Abstain, Absent" timestamp voteTime }

BALLOT { uuid id PK string ballotId UK string title string description date voteDate uuid committeeId FK timestamp createdAt }

DOCUMENT { uuid id PK string documentId UK string title string documentType string status date publishedDate uuid authorId FK uuid partyId FK }

COMMITTEE { uuid id PK string committeeId UK string name string abbreviation }


## Entity Descriptions

### POLITICIAN

Stores information about Swedish politicians.

| Attribute | Type | Classification | Description |
| --- | --- | --- | --- |
| id | UUID | INTERNAL | Primary key |
| personId | String | PUBLIC | Unique ID from Riksdagen API |
| firstName | String | PUBLIC | First name |
| lastName | String | PUBLIC | Last name |
| birthDate | Date | PUBLIC | Date of birth |
| gender | String | PUBLIC | Gender (M/F) |
| createdAt | Timestamp | INTERNAL | Record creation time |
| updatedAt | Timestamp | INTERNAL | Last update time |

**Indexes:**

- `idx_politician_person_id` (UNIQUE) on `personId`
- `idx_politician_name` on `lastName, firstName`

**Data Retention:** Indefinite (historical political data)

### VOTE

Records individual votes cast by politicians.

| Attribute | Type | Classification | Description |
| --- | --- | --- | --- |
| id | UUID | INTERNAL | Primary key |
| ballotId | UUID | INTERNAL | Foreign key to BALLOT |
| politicianId | UUID | INTERNAL | Foreign key to POLITICIAN |
| voteOption | String | PUBLIC | Yes/No/Abstain/Absent |
| voteTime | Timestamp | PUBLIC | When vote was cast |

**Indexes:**

- `idx_vote_ballot` on `ballotId`
- `idx_vote_politician` on `politicianId`
- `idx_vote_time` on `voteTime`

**Data Retention:** Indefinite (historical voting records)

## Relationships

- **POLITICIAN to PARTY**: Many-to-One (politician belongs to one party at a time)
- **POLITICIAN to VOTE**: One-to-Many (politician casts many votes)
- **BALLOT to VOTE**: One-to-Many (ballot contains many votes)
- **POLITICIAN to POLITICIAN_ROLE**: One-to-Many (politician has multiple roles over time)

## Data Classification Summary

- **PUBLIC**: Politician names, votes, documents (public record)
- **INTERNAL**: System IDs, timestamps, technical metadata
- **CONFIDENTIAL**: None
- **RESTRICTED**: None

## Performance Considerations

- Votes table will grow large (millions of records), requires partitioning by year
- Full-text search on DOCUMENT requires Elasticsearch integration
- POLITICIAN queries often join with PARTY, consider denormalization for read performance

## Migration Strategy

See `FUTURE_DATA_MODEL.md` for planned schema changes.

Example 2: FLOWCHART.md Structure

# Flowcharts - Hack23 Homepage Deployment

**Last Updated:** 2025-01-24

## Overview

This document describes the key workflows and processes for the Hack23 Homepage, focusing on content updates, deployment, and monitoring.

## Content Update Workflow

flowchart TD Start([Developer creates PR]) --> Validate{Validation checks pass?}

Validate -->|No| Fix[Fix errors] Fix --> Start

Validate -->|Yes| Review[Code review] Review --> Approved{Approved?}

Approved -->|No| RequestChanges[Request changes] RequestChanges --> Start

Approved -->|Yes| Merge[Merge to main] Merge --> Build[Build & Minify]

Build --> Security[Security scan - ZAP] Security --> SecurityPass{Vulnerabilities found?}

SecurityPass -->|Yes| Alert[Create security issue] Alert --> Block[Block deployment] Block --> End1([End - Deployment blocked])

SecurityPass -->|No| Lighthouse[Lighthouse audit] Lighthouse --> LighthousePass{Meets budget?}

LighthousePass -->|No| Warning[Warning - below threshold] Warning --> DeployAnyway{Deploy anyway?}

DeployAnyway -->|No| End2([End - Deployment cancelled]) DeployAnyway -->|Yes| Deploy[Deploy to S3]

LighthousePass -->|Yes| Deploy Deploy --> Invalidate[Invalidate CloudFront cache] Invalidate --> Verify[Verify deployment]

Verify --> Success{Deployment successful?} Success -->|Yes| Notify[Notify team - Success] Success -->|No| Rollback[Rollback deployment]

Rollback --> NotifyFail[Notify team - Failure] NotifyFail --> End3([End - Rolled back])

Notify --> End4([End - Deployed successfully])


## Translation Workflow

flowchart TD Start([New content in English]) --> Detect[Detect languages to translate] Detect --> Generate[Generate translations]

Generate --> Review{Translation quality check} Review -->|Low quality| Manual[Manual translation] Manual --> Validate

Review -->|Good quality| Validate[Validate HTML structure] Validate --> ValidPass{Valid HTML?}

ValidPass -->|No| Fix[Fix validation errors] Fix --> Validate

ValidPass -->|Yes| Hreflang[Update hreflang tags] Hreflang --> Sitemap[Update sitemap.xml] Sitemap --> Test[Test translated pages]

Test --> TestPass{All tests pass?} TestPass -->|No| Debug[Debug issues] Debug --> Fix

TestPass -->|Yes| Commit[Commit translations] Commit --> End([End - Translations complete])


## Security Incident Response

flowchart TD Start([Security incident detected]) --> Assess[Assess severity]

Assess --> Critical{Critical incident?}

Critical -->|Yes| Immediate[Immediate response team] Immediate --> Block[Block attack vector] Block --> Contain[Contain incident]

Critical -->|No| Standard[Standard response] Standard --> Investigate[Investigate incident]

Contain --> Investigate Investigate --> Determine{Cause identified?}

Determine -->|No| Escalate[Escalate to security team] Escalate --> Investigate

Determine -->|Yes| Remediate[Implement fix] Remediate --> Test[Test remediation]

Test --> TestPass{Incident resolved?} TestPass -->|No| Remediate

TestPass -->|Yes| Deploy[Deploy fix] Deploy --> Monitor[Monitor for recurrence]

Monitor --> Document[Document incident] Document --> Review[Post-incident review] Review --> Improve[Improve security controls]

Improve --> End([End - Incident resolved])


## Decision Points

### Validation Checks

- HTML validation
- CSS validation
- JavaScript linting
- Accessibility checks (WCAG 2.1 AA)
- Link validation
- Security header validation

### Security Scan Thresholds

- **Block deployment**: Critical vulnerabilities
- **Warning**: High vulnerabilities (review required)
- **Pass**: Medium or lower vulnerabilities

### Lighthouse Budget

- Performance: ≥ 90
- Accessibility: ≥ 95
- Best Practices: ≥ 95
- SEO: ≥ 95

## Error Handling

All workflows include error handling:

1. **Detect error** - Automated checks or manual report
2. **Log error** - CloudWatch, GitHub Actions logs
3. **Notify** - Slack/email notification
4. **Rollback** (if deployed) - Revert to previous version
5. **Fix** - Implement correction
6. **Verify** - Test fix before re-deploying

## Performance Considerations

- **Parallel processing**: Run security scan and Lighthouse audit in parallel
- **Caching**: Cache CloudFront invalidation to avoid rate limits
- **Incremental builds**: Only process changed files

Example 3: SWOT.md Template

# SWOT Analysis - Hack23 Homepage

**Last Updated:** 2025-01-24
**Context:** Strategic planning for homepage evolution (2025-2026)

## Overview

This SWOT analysis evaluates the current state of the Hack23 Homepage and identifies strategic opportunities for improvement.

## Strengths (Internal Positive Factors)

### Technical Excellence
- ✅ **100% static** - No server-side processing, ultra-fast load times
- ✅ **Highly secure** - Minimal attack surface, no backend vulnerabilities
- ✅ **Excellent performance** - Lighthouse scores consistently above 90
- ✅ **Global CDN** - CloudFront provides worldwide low-latency access
- ✅ **Automated CI/CD** - GitHub Actions provides reliable deployment

### Content & Messaging
- ✅ **Clear value proposition** - Security-focused, transparent approach
- ✅ **Multilingual** - 14 languages supported (English + 13 translations)
- ✅ **Accessibility** - WCAG 2.1 AA compliant
- ✅ **Open-source** - Builds trust, demonstrates transparency
- ✅ **Public ISMS** - Unique differentiator in market

### Cost Efficiency
- ✅ **Low operational cost** - S3 + CloudFront = minimal hosting fees
- ✅ **No maintenance** - Static site requires minimal upkeep
- ✅ **Free CI/CD** - GitHub Actions free tier sufficient

## Weaknesses (Internal Negative Factors)

### Technical Limitations
- ❌ **No dynamic content** - Can't personalize for users
- ❌ **No user accounts** - No way to track returning visitors
- ❌ **No analytics** - Privacy-first means no visitor insights
- ❌ **Manual translations** - Time-consuming, potential quality issues
- ❌ **No search** - Difficult to find specific content

### Content Gaps
- ❌ **Limited interactivity** - No contact forms, no demos
- ❌ **No case studies** - Lack of customer success stories
- ❌ **Few examples** - Need more concrete use cases
- ❌ **Static blog** - No comment system, limited engagement

### Marketing & Growth
- ❌ **Low SEO maturity** - Needs optimization
- ❌ **No lead capture** - Can't build email list
- ❌ **Limited conversion tracking** - Hard to measure effectiveness

## Opportunities (External Positive Factors)

### Market Trends
- 📈 **Growing cybersecurity demand** - Increased awareness post-breaches
- 📈 **Compliance requirements** - NIS2, GDPR driving demand
- 📈 **Open-source adoption** - More companies embracing transparency
- 📈 **Remote work security** - Distributed teams need better security
- 📈 **AI/LLM security** - Emerging need for AI security consulting

### Technology Evolution
- 📈 **Jamstack maturity** - Static sites with dynamic features via APIs
- 📈 **Serverless functions** - Add backend functionality without servers
- 📈 **Web3 integration** - Potential for blockchain-based transparency
- 📈 **Progressive Web Apps** - Enhanced mobile experience

### Business Opportunities
- 📈 **Strategic partnerships** - Integrate with complementary services
- 📈 **Content marketing** - Leverage blog for SEO and thought leadership
- 📈 **Community building** - Open-source projects attract contributors
- 📈 **Training & certification** - Offer security training programs

## Threats (External Negative Factors)

### Competition
- ⚠️ **Established players** - Large consultancies have brand recognition
- ⚠️ **Price competition** - Offshore providers offer lower rates
- ⚠️ **Feature parity** - Competitors may copy open-source approach
- ⚠️ **Commoditization** - Risk of security consulting becoming commodity

### Technology Risks
- ⚠️ **Browser changes** - Could break existing functionality
- ⚠️ **CDN outages** - Dependence on CloudFront availability
- ⚠️ **Security vulnerabilities** - Supply chain attacks on dependencies
- ⚠️ **Algorithm changes** - SEO rankings could drop suddenly

### Regulatory & Market
- ⚠️ **Changing regulations** - New compliance requirements add complexity
- ⚠️ **Economic downturn** - Budget cuts in security spending
- ⚠️ **Privacy regulations** - Stricter rules may limit marketing

## Strategy Matrix

### Strengths × Opportunities (Maximize)

| Strength | Opportunity | Strategy |
|----------|-------------|----------|
| Technical excellence | Growing security demand | Position as premium, high-trust provider |
| Open-source ISMS | Open-source adoption | Create community around ISMS templates |
| Multilingual | Global market | Target international markets (EU, Asia) |
| Low cost | Price competition | Offer competitive pricing with high margins |

### Strengths × Threats (Leverage)

| Strength | Threat | Strategy |
|----------|--------|----------|
| Security focus | Established players | Differentiate through transparency & innovation |
| Automated CI/CD | Security vulnerabilities | Maintain fast patching, demonstrate resilience |
| Public ISMS | Compliance changes | Quickly update ISMS, show adaptability |

### Weaknesses × Opportunities (Improve)

| Weakness | Opportunity | Strategy |
|----------|-------------|----------|
| No dynamic content | Jamstack maturity | Implement serverless functions for forms |
| No analytics | Content marketing | Add privacy-preserving analytics (Plausible) |
| No lead capture | Community building | Create newsletter via static form + Netlify |
| Manual translations | AI/LLM evolution | Explore AI-assisted translation with human review |

### Weaknesses × Threats (Monitor)

| Weakness | Threat | Strategy |
|----------|--------|----------|
| Limited interactivity | Commoditization | Maintain focus on quality and service |
| No case studies | Established players | Develop customer testimonials, success stories |
| Low SEO maturity | Algorithm changes | Invest in SEO, diversify traffic sources |

## Action Items

### Q1 2025 (Immediate)
1. Implement privacy-preserving analytics (Plausible or similar)
2. Create 3 case studies from existing customers
3. Optimize SEO (meta descriptions, structured data improvements)
4. Add simple contact form via serverless function

### Q2 2025 (Near-term)
5. Launch newsletter signup (static form + automation)
6. Create comprehensive FAQ page
7. Develop security assessment tool/quiz
8. Expand blog with weekly posts

### H2 2025 (Medium-term)
9. Build community forum for ISMS discussions
10. Launch security training module (paid)
11. Develop interactive demos for CIA/Compliance Manager
12. Partner with complementary services (penetration testing, etc.)

### 2026 (Long-term)
13. Expand to additional languages (Chinese, Portuguese)
14. Create certification program
15. Launch SaaS version of compliance tools
16. Explore strategic acquisitions or partnerships

## Review Schedule

- **Quarterly review**: Reassess SWOT based on market changes
- **Annual deep dive**: Full strategic planning session
- **Ad-hoc**: Major market events or competitive moves

**Next Review:** 2025-04-24

Related ISMS Policies

Related Documentation

Documentation Tools

  • Mermaid Live Editor: https://mermaid.live/
  • Markdown Preview: VS Code with Markdown Preview Enhanced
  • Diagram Validation: GitHub's native Mermaid rendering

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.35%
按下载量换算66

Claude

30.62%
按下载量换算55

Cursor

19.08%
按下载量换算35

Gemini CLI

9.88%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/hack23/homepage --skill documentation-portfolio 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills