Skip to content

Dianel555/DSkills / skills/agent-wiki

agent-wiki

Unverified

Incremental LLM-friendly wiki generator for Obsidian note vaults. Use when: (1) Building wiki from notes, (2) Ingesting notes to wiki, (3) Obsidian LLM wiki, (4) Incremental knowledge base management. Triggers: 'build wiki from notes', 'ingest notes to wiki', 'Obsidian LLM wiki', 'incremental knowledge base'.

FileKindSize
.env.exampleother408 B
README.mdmarkdown15.3 KB
SKILL.mdskill md23.3 KB
pyproject.tomlmanifest2.1 KB
references/cli-matrix.mdmarkdown5.9 KB
references/homepage.mdmarkdown6.1 KB
references/index-schema.mdmarkdown6.9 KB
references/site-export.mdmarkdown3.1 KB
references/topic-authoring.mdmarkdown5.1 KB
scripts/agent_wiki/__init__.pyscript103 B
scripts/agent_wiki/authors.pyscript3.9 KB
scripts/agent_wiki/bases.pyscript4.0 KB
scripts/agent_wiki/batch.pyscript3.7 KB
scripts/agent_wiki/boundary.pyscript55.8 KB
scripts/agent_wiki/cache.pyscript5.5 KB
scripts/agent_wiki/canvas.pyscript8.0 KB
scripts/agent_wiki/cleanup.pyscript2.4 KB
scripts/agent_wiki/cli.pyscript97 B
scripts/agent_wiki/commands.pyscript28.3 KB
scripts/agent_wiki/config.pyscript4.2 KB
scripts/agent_wiki/coverage.pyscript2.1 KB
scripts/agent_wiki/frontmatter.pyscript1.6 KB
scripts/agent_wiki/home.pyscript7.9 KB
scripts/agent_wiki/keywords.pyscript2.0 KB
scripts/agent_wiki/links.pyscript14.7 KB
scripts/agent_wiki/plugins.pyscript2.1 KB
scripts/agent_wiki/quality.pyscript7.6 KB
scripts/agent_wiki/scanner.pyscript6.7 KB
scripts/agent_wiki/site.pyscript39.2 KB
scripts/agent_wiki/source_type.pyscript3.2 KB
scripts/agent_wiki/wiki_index.pyscript17.4 KB
scripts/agent_wiki/worklist.pyscript5.7 KB
scripts/agent_wiki_cli.pyscript5.5 KB
templates/home/academic.mdmarkdown2.9 KB
templates/home/dashboard.mdmarkdown2.7 KB
templates/home/magazine.mdmarkdown2.5 KB
templates/query/research.mdmarkdown787 B
tests/conftest.pyscript177 B
tests/fixtures/sample_vault/attachments/image.pngbinary26 B
tests/fixtures/sample_vault/课程/双缝实验.mdmarkdown47 B
tests/fixtures/sample_vault/课程/量子力学.mdmarkdown75 B
tests/test_alias_resolution.pyscript7.5 KB
tests/test_authors.pyscript2.2 KB
tests/test_backlinks.pyscript7.0 KB
tests/test_bases.pyscript4.7 KB
tests/test_batch.pyscript3.0 KB
tests/test_benchmark_index.pyscript2.1 KB
tests/test_boundary_platform.pyscript695 B
tests/test_cache.pyscript2.1 KB
tests/test_cache_strict.pyscript2.1 KB
tests/test_canvas.pyscript8.3 KB
tests/test_capture.pyscript5.5 KB
tests/test_cleanup.pyscript1.2 KB
tests/test_cleanup_init_strict.pyscript2.1 KB
tests/test_cli.pyscript6.2 KB
tests/test_config.pyscript2.0 KB
tests/test_coverage.pyscript7.2 KB
tests/test_e2e.pyscript2.5 KB
tests/test_evaluate_enhancements.pyscript14.7 KB
tests/test_featured_base.pyscript4.3 KB
tests/test_final_security_review.pyscript6.6 KB
tests/test_frontmatter.pyscript1.1 KB
tests/test_gen_home.pyscript4.9 KB
tests/test_gen_site_cli.pyscript3.9 KB
tests/test_home.pyscript7.7 KB
tests/test_immutability.pyscript1.4 KB
tests/test_immutability_capture.pyscript2.4 KB
tests/test_index_capture.pyscript4.5 KB
tests/test_index_cli.pyscript5.4 KB
tests/test_index_extension.pyscript17.0 KB
tests/test_index_source_count.pyscript3.0 KB
tests/test_package_structure.pyscript3.4 KB
tests/test_plugins.pyscript3.1 KB
tests/test_quality.pyscript21.3 KB
tests/test_quality_cli.pyscript5.5 KB
tests/test_quality_prose_weight.pyscript3.8 KB
tests/test_quality_script_fairness.pyscript4.7 KB
tests/test_quality_tier_refactor.pyscript4.0 KB
tests/test_scanner.pyscript2.6 KB
tests/test_scanner_fast_path.pyscript3.5 KB
tests/test_scanner_strict.pyscript2.1 KB
tests/test_secure_temporary_writes.pyscript978 B
tests/test_site.pyscript20.2 KB
tests/test_site_import_isolation.pyscript3.9 KB
tests/test_site_slug_refactor.pyscript3.6 KB
tests/test_source_type.pyscript3.5 KB
tests/test_status_metrics.pyscript4.1 KB
tests/test_status_quality.pyscript5.3 KB
tests/test_status_worklist.pyscript3.0 KB
tests/test_structure.pyscript501 B
tests/test_topic_category.pyscript4.2 KB
tests/test_topic_path_boundary.pyscript2.2 KB
tests/test_vault_boundary.pyscript24.3 KB
tests/test_wiki_index.pyscript13.3 KB
tests/test_worklist.pyscript12.3 KB
tests/test_worklist_cli.pyscript1.9 KB

tests/test_quality_script_fairness.py

View on GitHub
"""Tests for CJK/EN script fairness in quality tier assignment."""

from agent_wiki import quality


def test_tier_script_fairness_basic_level():
    """Equivalent basic-tier content in CJK and Latin should tier equally."""
    # Basic tier: prose_weight >= 200 and prose_weight > 0

    # CJK: 20 chars × 10 = 200 weight
    body_cjk = "这是一个基本的测试内容用于验证基本层级的判定。"  # 20 CJK chars

    # Latin: 13 words × 16 = 208 weight (≈ same)
    body_latin = "This is a basic test content to verify basic tier assignment with words."  # 13 words

    tier_cjk = quality.compute_tier(body_cjk)
    tier_latin = quality.compute_tier(body_latin)

    assert tier_cjk == "basic"
    assert tier_latin == "basic"


def test_tier_script_fairness_standard_level():
    """Equivalent standard-tier content in CJK and Latin should tier equally."""
    # Standard tier: sections >= 2 AND effective_prose >= 600

    # CJK: 2 sections + exactly 60 chars × 10 = 600 weight
    cjk_prose = "标" * 60  # Exactly 60 identical CJK chars
    body_cjk = f"## 第一节\n\n{cjk_prose[:30]}\n\n## 第二节\n\n{cjk_prose[30:]}"

    # Latin: 2 sections + exactly 38 words × 16 = 608 weight
    body_latin = f"## First Section\n\n{' '.join(['word']*19)}\n\n## Second Section\n\n{' '.join(['word']*19)}"

    tier_cjk = quality.compute_tier(body_cjk)
    tier_latin = quality.compute_tier(body_latin)

    assert tier_cjk == "standard"
    assert tier_latin == "standard"


def test_tier_script_fairness_rich_level():
    """Equivalent rich-tier content in CJK and Latin should tier equally."""
    # Rich tier: sections >= 4 AND effective_prose >= 1500 AND (evidence_lines >= 1 OR has_image)

    # CJK: 4 sections + exactly 150 chars × 10 = 1500 weight + 1 evidence
    cjk_prose = "测" * 150
    body_cjk = f"""## 引言

{cjk_prose[:40]}

## 方法

> 证据

{cjk_prose[40:80]}

## 结果

{cjk_prose[80:120]}

## 讨论

{cjk_prose[120:]}"""

    # Latin: 4 sections + exactly 94 words × 16 = 1504 weight + 1 evidence
    body_latin = f"""## Introduction

{' '.join(['word']*24)}

## Methods

> Evidence

{' '.join(['word']*23)}

## Results

{' '.join(['word']*24)}

## Discussion

{' '.join(['word']*23)}"""

    tier_cjk = quality.compute_tier(body_cjk)
    tier_latin = quality.compute_tier(body_latin)

    assert tier_cjk == "rich"
    assert tier_latin == "rich"


def test_tier_script_fairness_premium_level():
    """Equivalent premium-tier content in CJK and Latin should tier equally."""
    # Premium tier: sections >= 6 AND effective_prose >= 3000 AND evidence_lines >= 3

    # CJK: 6 sections + exactly 300 chars × 10 = 3000 weight + 3 evidence
    cjk_prose = "研" * 300
    body_cjk = f"""## 背景

{cjk_prose[:50]}

## 文献综述

> 证据一
> 证据二
> 证据三

{cjk_prose[50:100]}

## 研究方法

{cjk_prose[100:150]}

## 数据分析

{cjk_prose[150:200]}

## 结果与发现

{cjk_prose[200:250]}

## 结论与展望

{cjk_prose[250:]}"""

    # Latin: 6 sections + exactly 188 words × 16 = 3008 weight + 3 evidence
    body_latin = f"""## Background

{' '.join(['word']*32)}

## Literature Review

> Evidence one
> Evidence two
> Evidence three

{' '.join(['word']*31)}

## Research Methods

{' '.join(['word']*31)}

## Data Analysis

{' '.join(['word']*31)}

## Results and Findings

{' '.join(['word']*31)}

## Conclusion and Outlook

{' '.join(['word']*32)}"""

    tier_cjk = quality.compute_tier(body_cjk)
    tier_latin = quality.compute_tier(body_latin)

    assert tier_cjk == "premium"
    assert tier_latin == "premium"


def test_tier_script_fairness_mixed_content():
    """Mixed CJK/Latin content uses combined weight."""
    # Mixed: enough content to reach 600+ weight + 2 sections = standard
    body_mixed = """## Introduction 介绍

这是一个混合语言的测试内容包含中文字符和英文单词需要足够的内容量。

## Methods 方法

This section contains English words and Chinese characters 以及更多的中文内容来达到标准层级的门槛要求这里还需要补充一些文字。"""

    tier_mixed = quality.compute_tier(body_mixed)

    # Should reach standard tier (sections >= 2, effective_prose >= 600)
    assert tier_mixed == "standard"


def test_tier_threshold_boundaries_cjk_vs_latin():
    """Verify threshold boundaries work equally for both scripts."""
    # Test at exactly 200 weight boundary (basic tier minimum with prose_weight > 0)

    # CJK: exactly 20 chars = 200 weight
    body_cjk_200 = "测" * 20  # Exactly 20 CJK chars

    # Latin: exactly 13 words = 208 weight
    body_latin_200 = " ".join(["word"] * 13)  # Exactly 13 words

    tier_cjk = quality.compute_tier(body_cjk_200)
    tier_latin = quality.compute_tier(body_latin_200)

    assert tier_cjk == "basic"
    assert tier_latin == "basic"
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall