aisurface 1.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- aisurface-1.0.1/.gitattributes +22 -0
- aisurface-1.0.1/.github/ISSUE_TEMPLATE/bug_report.md +20 -0
- aisurface-1.0.1/.github/ISSUE_TEMPLATE/feature_request.md +13 -0
- aisurface-1.0.1/.github/ISSUE_TEMPLATE/question.md +10 -0
- aisurface-1.0.1/.github/PULL_REQUEST_TEMPLATE.md +11 -0
- aisurface-1.0.1/.github/workflows/ci.yml +25 -0
- aisurface-1.0.1/.gitignore +226 -0
- aisurface-1.0.1/CHANGELOG.md +108 -0
- aisurface-1.0.1/CLAUDE.md +49 -0
- aisurface-1.0.1/CODE_OF_CONDUCT.md +29 -0
- aisurface-1.0.1/CONTRIBUTING.en.md +34 -0
- aisurface-1.0.1/CONTRIBUTING.md +34 -0
- aisurface-1.0.1/LICENSE +21 -0
- aisurface-1.0.1/PKG-INFO +131 -0
- aisurface-1.0.1/README.en.md +101 -0
- aisurface-1.0.1/README.md +101 -0
- aisurface-1.0.1/ROADMAP.md +59 -0
- aisurface-1.0.1/SKILL.md +114 -0
- aisurface-1.0.1/case-studies/ziwei-after.json +103 -0
- aisurface-1.0.1/case-studies/ziwei-after.md +28 -0
- aisurface-1.0.1/case-studies/ziwei-before-after.md +41 -0
- aisurface-1.0.1/case-studies/ziwei-before.json +103 -0
- aisurface-1.0.1/case-studies/ziwei-before.md +30 -0
- aisurface-1.0.1/case-studies/ziwei-v100.md +79 -0
- aisurface-1.0.1/docs/screenshots/audit.png +0 -0
- aisurface-1.0.1/docs/screenshots/fix.png +0 -0
- aisurface-1.0.1/docs/screenshots/verify.png +0 -0
- aisurface-1.0.1/docs/superpowers/plans/2026-06-03-aisurface-skill-optimization-and-v1-bridge.md +1254 -0
- aisurface-1.0.1/evals/CLAUDE.md +19 -0
- aisurface-1.0.1/evals/expected/bad-readme-python-lib.json +105 -0
- aisurface-1.0.1/evals/expected/good-schema-nextjs-docs.json +105 -0
- aisurface-1.0.1/evals/expected/minimal-cli-tool.json +105 -0
- aisurface-1.0.1/evals/expected/perfect-readme-and-docs.json +105 -0
- aisurface-1.0.1/evals/expected_patches/bad-readme-python-lib/llms_txt.txt +12 -0
- aisurface-1.0.1/evals/expected_patches/bad-readme-python-lib/schema_org.json +31 -0
- aisurface-1.0.1/evals/fixtures/bad-readme-python-lib/README.md +13 -0
- aisurface-1.0.1/evals/fixtures/bad-readme-python-lib/pyproject.toml +4 -0
- aisurface-1.0.1/evals/fixtures/good-schema-nextjs-docs/.well-known/llms.txt +20 -0
- aisurface-1.0.1/evals/fixtures/good-schema-nextjs-docs/README.md +64 -0
- aisurface-1.0.1/evals/fixtures/good-schema-nextjs-docs/index.schema.json +9 -0
- aisurface-1.0.1/evals/fixtures/good-schema-nextjs-docs/package.json +5 -0
- aisurface-1.0.1/evals/fixtures/minimal-cli-tool/README.md +9 -0
- aisurface-1.0.1/evals/fixtures/minimal-cli-tool/package.json +1 -0
- aisurface-1.0.1/evals/fixtures/perfect-readme-and-docs/.well-known/llms.txt +17 -0
- aisurface-1.0.1/evals/fixtures/perfect-readme-and-docs/README.md +209 -0
- aisurface-1.0.1/evals/fixtures/perfect-readme-and-docs/docs/index.md +7 -0
- aisurface-1.0.1/evals/fixtures/perfect-readme-and-docs/index.schema.json +19 -0
- aisurface-1.0.1/evals/fixtures/perfect-readme-and-docs/package.json +18 -0
- aisurface-1.0.1/evals/fixtures/perfect-readme-and-docs/pyproject.toml +14 -0
- aisurface-1.0.1/evals/trigger_evals.json +20 -0
- aisurface-1.0.1/pyproject.toml +62 -0
- aisurface-1.0.1/references/CLAUDE.md +19 -0
- aisurface-1.0.1/references/ai-search-platforms.md +26 -0
- aisurface-1.0.1/references/citation-patterns.md +9 -0
- aisurface-1.0.1/references/llms-txt-spec.md +26 -0
- aisurface-1.0.1/references/readme-checklist.md +17 -0
- aisurface-1.0.1/references/schema-templates.md +21 -0
- aisurface-1.0.1/scripts/CLAUDE.md +37 -0
- aisurface-1.0.1/scripts/__init__.py +6 -0
- aisurface-1.0.1/scripts/_dev/render_screenshot.py +164 -0
- aisurface-1.0.1/scripts/_dev/verify_demo.py +58 -0
- aisurface-1.0.1/scripts/audit.py +289 -0
- aisurface-1.0.1/scripts/cli.py +72 -0
- aisurface-1.0.1/scripts/colors.py +67 -0
- aisurface-1.0.1/scripts/concepts.py +69 -0
- aisurface-1.0.1/scripts/critic.py +115 -0
- aisurface-1.0.1/scripts/distribution.py +75 -0
- aisurface-1.0.1/scripts/findings.py +26 -0
- aisurface-1.0.1/scripts/fix/__init__.py +92 -0
- aisurface-1.0.1/scripts/fix/faq.py +102 -0
- aisurface-1.0.1/scripts/fix/llms_txt.py +68 -0
- aisurface-1.0.1/scripts/fix/schema_org.py +44 -0
- aisurface-1.0.1/scripts/fix/when_to_use.py +79 -0
- aisurface-1.0.1/scripts/github_meta.py +88 -0
- aisurface-1.0.1/scripts/llms_txt.py +96 -0
- aisurface-1.0.1/scripts/report.py +263 -0
- aisurface-1.0.1/scripts/safe_check.py +54 -0
- aisurface-1.0.1/scripts/scanner.py +124 -0
- aisurface-1.0.1/scripts/schema_gen.py +135 -0
- aisurface-1.0.1/scripts/verify/__init__.py +124 -0
- aisurface-1.0.1/scripts/verify/baseline.py +57 -0
- aisurface-1.0.1/scripts/verify/perplexity.py +68 -0
- aisurface-1.0.1/scripts/verify/queries.py +88 -0
- aisurface-1.0.1/skills/CLAUDE.md +17 -0
- aisurface-1.0.1/skills/_deprecated/aisurface-llms-txt/SKILL.md +53 -0
- aisurface-1.0.1/skills/_deprecated/aisurface-readme/SKILL.md +53 -0
- aisurface-1.0.1/tests/CLAUDE.md +21 -0
- aisurface-1.0.1/tests/__init__.py +0 -0
- aisurface-1.0.1/tests/conftest.py +6 -0
- aisurface-1.0.1/tests/integration/__init__.py +0 -0
- aisurface-1.0.1/tests/integration/test_full_audit.py +87 -0
- aisurface-1.0.1/tests/integration/test_full_fix.py +108 -0
- aisurface-1.0.1/tests/integration/test_full_verify.py +54 -0
- aisurface-1.0.1/tests/unit/__init__.py +0 -0
- aisurface-1.0.1/tests/unit/test_cli_dispatch.py +47 -0
- aisurface-1.0.1/tests/unit/test_colors.py +33 -0
- aisurface-1.0.1/tests/unit/test_critic.py +55 -0
- aisurface-1.0.1/tests/unit/test_distribution.py +29 -0
- aisurface-1.0.1/tests/unit/test_fix_faq.py +44 -0
- aisurface-1.0.1/tests/unit/test_fix_llms_txt.py +30 -0
- aisurface-1.0.1/tests/unit/test_fix_schema_org.py +21 -0
- aisurface-1.0.1/tests/unit/test_fix_when_to_use.py +34 -0
- aisurface-1.0.1/tests/unit/test_github_meta.py +51 -0
- aisurface-1.0.1/tests/unit/test_llms_txt.py +59 -0
- aisurface-1.0.1/tests/unit/test_report.py +111 -0
- aisurface-1.0.1/tests/unit/test_safe_check.py +67 -0
- aisurface-1.0.1/tests/unit/test_scanner.py +159 -0
- aisurface-1.0.1/tests/unit/test_schema_gen.py +114 -0
- aisurface-1.0.1/tests/unit/test_smoke.py +12 -0
- aisurface-1.0.1/tests/unit/test_verify_baseline.py +49 -0
- aisurface-1.0.1/tests/unit/test_verify_perplexity.py +59 -0
- aisurface-1.0.1/tests/unit/test_verify_protocol.py +15 -0
- aisurface-1.0.1/tests/unit/test_verify_queries.py +23 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Normalize line endings to LF (cross-platform consistency)
|
|
2
|
+
* text=auto eol=lf
|
|
3
|
+
|
|
4
|
+
# Python source must use LF
|
|
5
|
+
*.py text eol=lf
|
|
6
|
+
*.pyi text eol=lf
|
|
7
|
+
|
|
8
|
+
# YAML, TOML, Markdown
|
|
9
|
+
*.yml text eol=lf
|
|
10
|
+
*.yaml text eol=lf
|
|
11
|
+
*.toml text eol=lf
|
|
12
|
+
*.md text eol=lf
|
|
13
|
+
|
|
14
|
+
# Shell scripts need LF (not CRLF on Windows)
|
|
15
|
+
*.sh text eol=lf
|
|
16
|
+
|
|
17
|
+
# Binary by default
|
|
18
|
+
*.png binary
|
|
19
|
+
*.jpg binary
|
|
20
|
+
*.gif binary
|
|
21
|
+
*.ico binary
|
|
22
|
+
*.pdf binary
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Something is broken
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
**Describe the bug**
|
|
7
|
+
<description>
|
|
8
|
+
|
|
9
|
+
**To reproduce**
|
|
10
|
+
```bash
|
|
11
|
+
<command>
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
**Expected behavior**
|
|
15
|
+
<expected>
|
|
16
|
+
|
|
17
|
+
**Environment**
|
|
18
|
+
- OS:
|
|
19
|
+
- Python version:
|
|
20
|
+
- aisurface version:
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [master, main]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
lint-and-test:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
- uses: actions/setup-python@v5
|
|
14
|
+
with:
|
|
15
|
+
python-version: "3.10"
|
|
16
|
+
- name: Install uv
|
|
17
|
+
run: pip install uv
|
|
18
|
+
- name: Install dependencies
|
|
19
|
+
run: uv pip install --system -e ".[dev]"
|
|
20
|
+
- name: Ruff
|
|
21
|
+
run: ruff check .
|
|
22
|
+
- name: Pytest (unit + integration, not eval)
|
|
23
|
+
run: pytest -m "not eval"
|
|
24
|
+
- name: Pytest (eval)
|
|
25
|
+
run: pytest -m eval
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py.cover
|
|
50
|
+
*.lcov
|
|
51
|
+
.hypothesis/
|
|
52
|
+
.pytest_cache/
|
|
53
|
+
cover/
|
|
54
|
+
|
|
55
|
+
# Translations
|
|
56
|
+
*.mo
|
|
57
|
+
*.pot
|
|
58
|
+
|
|
59
|
+
# Django stuff:
|
|
60
|
+
*.log
|
|
61
|
+
local_settings.py
|
|
62
|
+
db.sqlite3
|
|
63
|
+
db.sqlite3-journal
|
|
64
|
+
|
|
65
|
+
# Flask stuff:
|
|
66
|
+
instance/
|
|
67
|
+
.webassets-cache
|
|
68
|
+
|
|
69
|
+
# Scrapy stuff:
|
|
70
|
+
.scrapy
|
|
71
|
+
|
|
72
|
+
# Sphinx documentation
|
|
73
|
+
docs/_build/
|
|
74
|
+
|
|
75
|
+
# PyBuilder
|
|
76
|
+
.pybuilder/
|
|
77
|
+
target/
|
|
78
|
+
|
|
79
|
+
# Jupyter Notebook
|
|
80
|
+
.ipynb_checkpoints
|
|
81
|
+
|
|
82
|
+
# IPython
|
|
83
|
+
profile_default/
|
|
84
|
+
ipython_config.py
|
|
85
|
+
|
|
86
|
+
# pyenv
|
|
87
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
88
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
89
|
+
# .python-version
|
|
90
|
+
|
|
91
|
+
# pipenv
|
|
92
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
93
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
94
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
95
|
+
# install all needed dependencies.
|
|
96
|
+
# Pipfile.lock
|
|
97
|
+
|
|
98
|
+
# UV
|
|
99
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
100
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
101
|
+
# commonly ignored for libraries.
|
|
102
|
+
# uv.lock
|
|
103
|
+
|
|
104
|
+
# poetry
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
106
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
107
|
+
# commonly ignored for libraries.
|
|
108
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
109
|
+
# poetry.lock
|
|
110
|
+
# poetry.toml
|
|
111
|
+
|
|
112
|
+
# pdm
|
|
113
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
114
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
115
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
116
|
+
# pdm.lock
|
|
117
|
+
# pdm.toml
|
|
118
|
+
.pdm-python
|
|
119
|
+
.pdm-build/
|
|
120
|
+
|
|
121
|
+
# pixi
|
|
122
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
123
|
+
# pixi.lock
|
|
124
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
125
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
126
|
+
.pixi/*
|
|
127
|
+
!.pixi/config.toml
|
|
128
|
+
|
|
129
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
130
|
+
__pypackages__/
|
|
131
|
+
|
|
132
|
+
# Celery stuff
|
|
133
|
+
celerybeat-schedule*
|
|
134
|
+
celerybeat.pid
|
|
135
|
+
|
|
136
|
+
# Redis
|
|
137
|
+
*.rdb
|
|
138
|
+
*.aof
|
|
139
|
+
*.pid
|
|
140
|
+
|
|
141
|
+
# RabbitMQ
|
|
142
|
+
mnesia/
|
|
143
|
+
rabbitmq/
|
|
144
|
+
rabbitmq-data/
|
|
145
|
+
|
|
146
|
+
# ActiveMQ
|
|
147
|
+
activemq-data/
|
|
148
|
+
|
|
149
|
+
# SageMath parsed files
|
|
150
|
+
*.sage.py
|
|
151
|
+
|
|
152
|
+
# Environments
|
|
153
|
+
.env
|
|
154
|
+
.envrc
|
|
155
|
+
.venv
|
|
156
|
+
env/
|
|
157
|
+
venv/
|
|
158
|
+
ENV/
|
|
159
|
+
env.bak/
|
|
160
|
+
venv.bak/
|
|
161
|
+
|
|
162
|
+
# Spyder project settings
|
|
163
|
+
.spyderproject
|
|
164
|
+
.spyproject
|
|
165
|
+
|
|
166
|
+
# Rope project settings
|
|
167
|
+
.ropeproject
|
|
168
|
+
|
|
169
|
+
# mkdocs documentation
|
|
170
|
+
/site
|
|
171
|
+
|
|
172
|
+
# mypy
|
|
173
|
+
.mypy_cache/
|
|
174
|
+
.dmypy.json
|
|
175
|
+
dmypy.json
|
|
176
|
+
|
|
177
|
+
# Pyre type checker
|
|
178
|
+
.pyre/
|
|
179
|
+
|
|
180
|
+
# pytype static type analyzer
|
|
181
|
+
.pytype/
|
|
182
|
+
|
|
183
|
+
# Cython debug symbols
|
|
184
|
+
cython_debug/
|
|
185
|
+
|
|
186
|
+
# PyCharm
|
|
187
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
188
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
189
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
190
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
191
|
+
# .idea/
|
|
192
|
+
|
|
193
|
+
# Abstra
|
|
194
|
+
# Abstra is an AI-powered process automation framework.
|
|
195
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
196
|
+
# Learn more at https://abstra.io/docs
|
|
197
|
+
.abstra/
|
|
198
|
+
|
|
199
|
+
# Visual Studio Code
|
|
200
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
201
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
202
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
203
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
204
|
+
# .vscode/
|
|
205
|
+
# Temporary file for partial code execution
|
|
206
|
+
tempCodeRunnerFile.py
|
|
207
|
+
|
|
208
|
+
# Ruff stuff:
|
|
209
|
+
.ruff_cache/
|
|
210
|
+
|
|
211
|
+
# PyPI configuration file
|
|
212
|
+
.pypirc
|
|
213
|
+
|
|
214
|
+
# Marimo
|
|
215
|
+
marimo/_static/
|
|
216
|
+
marimo/_lsp/
|
|
217
|
+
__marimo__/
|
|
218
|
+
|
|
219
|
+
# Streamlit
|
|
220
|
+
.streamlit/secrets.toml
|
|
221
|
+
|
|
222
|
+
# Internal release handoff (kept local, not committed)
|
|
223
|
+
RELEASE_HANDOFF.md
|
|
224
|
+
|
|
225
|
+
# Git worktrees (per superpowers:using-git-worktrees)
|
|
226
|
+
.worktrees/
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [1.0.1] - 2026-06-03
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- **User-facing abstraction principle** (spec §11b): unified `SKILL.md` exposes capabilities in plain language; hides CLI flags, subcommand names, and storage paths from skill consumers
|
|
7
|
+
- 18 trigger-eval queries (`evals/trigger_evals.json`: 10 should-trigger, 8 should-not) for SKILL.md description optimization
|
|
8
|
+
- **GEB fractal documentation system**: L1 in `CLAUDE.md`, L2 in each module's `CLAUDE.md` (scripts/, skills/, references/, tests/, evals/), L3 `INPUT/OUTPUT/POS/PROTOCOL` file headers in all 23 `scripts/*.py`
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- `README.md` and `README.en.md` now lead with `npx skills add ruijayfeng/aisurface`; `pip install` reframed as an implementation detail invoked by the skill on first run
|
|
12
|
+
- `ROADMAP.md` aligned with the skill-first install story
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
- L3 file headers: `from __future__ import annotations` is now the first statement in all 23 `scripts/*.py` (was broken when L3 was a separate string preceding the original docstring, which Python rejected as a non-future import)
|
|
16
|
+
|
|
17
|
+
## [1.0.0] - 2026-06-02
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
- PyPI publish-ready: classifiers + project URLs (hatchling-built wheel, `packages = ["scripts"]`)
|
|
21
|
+
- 3-verb CLI documented in single root SKILL.md
|
|
22
|
+
- `case-studies/ziwei-v100.md`: real-world before/after using the full v1.0 loop
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
- Consolidated 3 SKILL.md files into 1 (`@readme` and `@llms-txt` moved to `skills/_deprecated/`)
|
|
26
|
+
- README rewritten with 3-verb opening + screenshots
|
|
27
|
+
|
|
28
|
+
### Removed
|
|
29
|
+
- `scripts/probe.py` stub (already gone in v0.1.3)
|
|
30
|
+
- The original "skill collection" decomposition: now 1 unified CLI + skill
|
|
31
|
+
|
|
32
|
+
### Deprecated
|
|
33
|
+
- `skills/_deprecated/aisurface-readme/SKILL.md` — use `aisurface fix .`
|
|
34
|
+
- `skills/_deprecated/aisurface-llms-txt/SKILL.md` — use `aisurface fix . --only=llms_txt`
|
|
35
|
+
- Both deprecated SKILL.md files will be removed in v1.1.
|
|
36
|
+
|
|
37
|
+
## [0.1.3] - 2026-06-02
|
|
38
|
+
|
|
39
|
+
### Added
|
|
40
|
+
- `aisurface verify` subcommand: probes AI platforms for citation rate
|
|
41
|
+
- PerplexityAdapter (real API client, mocked in tests)
|
|
42
|
+
- Query generator with per-project-type templates (10 queries default)
|
|
43
|
+
- Baseline store at `~/.aisurface/baselines/<hash>/<platform>.json`
|
|
44
|
+
- `--platforms`, `--baseline`, `--queries-file` flags
|
|
45
|
+
- Custom cache dir via `AISURFACE_CACHE_DIR` env var (mainly for testing)
|
|
46
|
+
- Actionable error when `PERPLEXITY_API_KEY` is missing
|
|
47
|
+
|
|
48
|
+
### Changed
|
|
49
|
+
- Removed legacy `scripts/probe.py` stub (replaced by `scripts/verify/` module)
|
|
50
|
+
|
|
51
|
+
### Tests
|
|
52
|
+
- 105 tests passing (up from 89 in v0.1.2)
|
|
53
|
+
|
|
54
|
+
## [0.1.2] - 2026-06-02
|
|
55
|
+
|
|
56
|
+
### Added
|
|
57
|
+
- `aisurface fix` subcommand: generates and applies patches for the 4 highest-impact must-fix items
|
|
58
|
+
- FAQ injection (templated 8 Q&A per project type, defaults to "generic")
|
|
59
|
+
- When-to-use stubs (both halves or just the missing one)
|
|
60
|
+
- `.well-known/llms.txt` (new file, per llmstxt.org spec)
|
|
61
|
+
- `index.schema.json` (SoftwareApplication + FAQPage)
|
|
62
|
+
- `fix` flags: `--dry-run`, `--yes`, `--only=faq,when_to_use,llms_txt,schema_org`
|
|
63
|
+
- Snapshot tests for patch output (`evals/expected_patches/`)
|
|
64
|
+
|
|
65
|
+
### Changed
|
|
66
|
+
- CLI now uses subparsers: `aisurface audit ./` (was `python -m scripts.cli ./`)
|
|
67
|
+
- Old direct invocation `python -m scripts.cli ./` requires `audit` subcommand
|
|
68
|
+
- `scripts/audit.py` split out from `scripts/cli.py` for separation of concerns
|
|
69
|
+
|
|
70
|
+
### Tests
|
|
71
|
+
- 89 tests passing (up from 67 in v0.1.1)
|
|
72
|
+
|
|
73
|
+
## [0.1.1] - 2026-06-02
|
|
74
|
+
|
|
75
|
+
### Added
|
|
76
|
+
- 4th eval fixture: `perfect-readme-and-docs` (sanity-check audit upper bound; hits 96/100 weighted, all 12 checks pass)
|
|
77
|
+
- `StructuralFinding(CheckResult)` typed subclass with `file_path` field for file-based structural checks (#5 schema.org, #6 llms.txt)
|
|
78
|
+
- `@safe_check` decorator skeleton (v0.3 interface; v0.1.1 staging — catch path exercised only in tests)
|
|
79
|
+
- Weighted health score (Citation-Friendliness 40 / Structure 30 / Readability 20 / Distribution 10) replacing the v0.1.0 equal-weight formula
|
|
80
|
+
- ANSI color output for the CLI (auto-detected, `--no-color` opt-out, `NO_COLOR` env var support)
|
|
81
|
+
- `--no-color` CLI flag (documented in SKILL.md)
|
|
82
|
+
|
|
83
|
+
### Changed
|
|
84
|
+
- `_compute_health_score` now takes a `categories: dict[str, list[CheckResult]]` and returns `(score, max_score=100)` instead of a flat sum/max ratio
|
|
85
|
+
- `AuditReport` gains `health_score: int` and `max_score: int` fields (defaults `0` and `100`)
|
|
86
|
+
- `render_report` now shows 4 sub-scores (one per category) instead of 2
|
|
87
|
+
- `CheckResult` gains `skipped: bool` and `error: str | None` fields (defaults `False` and `None`)
|
|
88
|
+
- `AuditReport` gains `skipped: list[CheckResult]` and `errors: list[str]` fields (v0.3 staging; empty in v0.1.1)
|
|
89
|
+
- `--json` output now includes `skipped` and `error` keys per result row
|
|
90
|
+
- Distribution check #11 threshold lowered from 6 to 5 (v0.1's `github_stars=0` stub made 6 unreachable; threshold matches the locally-observable max from registries + description)
|
|
91
|
+
- Distribution check #11 now reads real `has_npm`/`has_pypi` from the scanner (was hardcoded `False`); `RepoAssets` gains those two fields
|
|
92
|
+
- `offline_critique` removed arbitrary 9→10 sub-ceilings on `has_faq` and `has_code_examples` (unambiguous max signals)
|
|
93
|
+
- 4 eval fixtures' expected JSONs re-recorded (the 3 v0.1.0 fixtures plus the new 4th)
|
|
94
|
+
- CHANGELOG "Known gaps for v0.1.1" subsection under `[0.1.0]` removed (4 of 5 items delivered, remaining deferred to v0.1.2+)
|
|
95
|
+
|
|
96
|
+
### Tests
|
|
97
|
+
- 67 tests passing (up from 54 in v0.1.0)
|
|
98
|
+
|
|
99
|
+
## [0.1.0] - 2026-07-15
|
|
100
|
+
|
|
101
|
+
### Added
|
|
102
|
+
- `aisurface@audit` skill: 12-check GEO audit
|
|
103
|
+
- `aisurface@readme` skill: README optimization
|
|
104
|
+
- `aisurface@llms-txt` skill: generate `.well-known/llms.txt`
|
|
105
|
+
- Python scripts: scanner, schema_gen, llms_txt, github_meta, distribution, critic, report, cli
|
|
106
|
+
- 3 eval fixtures: bad-readme-python-lib, good-schema-nextjs-docs, minimal-cli-tool
|
|
107
|
+
- Bilingual README (zh + en)
|
|
108
|
+
- Case study: ruijayfeng/ziwei before/after
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# aisurface — Make your open-source project surface in AI search results
|
|
2
|
+
|
|
3
|
+
> L1 | Python 3.10+ + httpx + jsonschema + selectolax + pytest + ruff
|
|
4
|
+
|
|
5
|
+
## Current State
|
|
6
|
+
**Shipped**: v0.1.1 (tag pushed 2026-06-02). `audit` command works end-to-end (67 tests, 4 eval fixtures).
|
|
7
|
+
**In progress**: v1.0 — unify 3 skills into 1, add `fix` + `verify` verbs, publish to PyPI. See `ROADMAP.md` and `docs/superpowers/plans/2026-06-02-aisurface-v100.md`.
|
|
8
|
+
|
|
9
|
+
## Architecture Principles
|
|
10
|
+
- **Skill-first install.** The primary user entry point is `npx skills add ruijayfeng/aisurface`. `pip install aisurface` is an implementation detail handled by the skill at first invocation. See `docs/superpowers/specs/2026-06-02-aisurface-v100-design.md` §11b.
|
|
11
|
+
- **User-facing abstraction.** The `SKILL.md` exposes capabilities in plain language and hides CLI flags, subcommand names, and storage paths. See same spec §3 + §11b.
|
|
12
|
+
- **GEB fractal docs.** L1 here, L2 in each module's `CLAUDE.md`, L3 as file-header contracts in `scripts/*.py`. Every change touches its layer.
|
|
13
|
+
|
|
14
|
+
## Directory
|
|
15
|
+
```
|
|
16
|
+
aisurface/
|
|
17
|
+
├── SKILL.md - Unified skill definition (name: aisurface), single user-facing surface
|
|
18
|
+
├── scripts/ - Python implementation (cli, audit, report, fix/, verify/, scanner, ...)
|
|
19
|
+
├── skills/
|
|
20
|
+
│ └── _deprecated/ - v0.1.x sub-skills (aisurface-readme, aisurface-llms-txt) — will be removed in v1.1
|
|
21
|
+
├── tests/ - pytest suite (unit/ + integration/)
|
|
22
|
+
├── evals/ - Fixture-based eval suite + trigger_evals.json (for skill description optimization)
|
|
23
|
+
├── references/ - Knowledge base (AI platforms, schema templates, GEO checklist, llms.txt spec)
|
|
24
|
+
├── case-studies/ - Real-world before/after (ziwei is the canonical case)
|
|
25
|
+
├── docs/
|
|
26
|
+
│ ├── superpowers/
|
|
27
|
+
│ │ ├── plans/ - Implementation plans (this plan + the v1.0 plan)
|
|
28
|
+
│ │ └── specs/ - Specs (v1.0 design, etc.)
|
|
29
|
+
│ └── (user-facing docs land here)
|
|
30
|
+
├── .github/ - CI workflow + issue/PR templates
|
|
31
|
+
└── CLAUDE.md - This file (L1)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Config Files
|
|
35
|
+
- `pyproject.toml` — package metadata, deps, console script `aisurface = scripts.cli:main`, pytest/ruff config
|
|
36
|
+
- `ROADMAP.md` — release sequence (v0.1.0 → v1.0)
|
|
37
|
+
- `CHANGELOG.md` — release notes
|
|
38
|
+
- `README.md` / `README.en.md` — bilingual project README (lead with `npx skills add` + natural-language demo)
|
|
39
|
+
- `SKILL.md` — root skill descriptor (unified `aisurface`)
|
|
40
|
+
|
|
41
|
+
## Active Specs & Plans
|
|
42
|
+
- **v1.0 design**: `docs/superpowers/specs/2026-06-02-aisurface-v100-design.md` (or sibling-repo mirror)
|
|
43
|
+
- **v1.0 plan**: `docs/superpowers/plans/2026-06-02-aisurface-v100.md` (or sibling-repo mirror)
|
|
44
|
+
- **Skill optimization plan** (this one): `docs/superpowers/plans/2026-06-03-aisurface-skill-optimization-and-v1-bridge.md`
|
|
45
|
+
|
|
46
|
+
## Rule
|
|
47
|
+
Minimal · stable · navigation. Update on any architecture-level change (new module, file move, responsibility shift, skill structure change, install story change).
|
|
48
|
+
|
|
49
|
+
[PROTOCOL]: Update this header when changed, then check all L2 CLAUDE.md files and the L3 file headers in scripts/.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
We pledge to make participation in our project a welcoming and inclusive experience for everyone.
|
|
6
|
+
|
|
7
|
+
## Our Standards
|
|
8
|
+
|
|
9
|
+
Examples of behavior that contributes to a positive environment:
|
|
10
|
+
- Using welcoming and inclusive language
|
|
11
|
+
- Being respectful of differing viewpoints
|
|
12
|
+
- Gracefully accepting constructive criticism
|
|
13
|
+
- Focusing on what is best for the community
|
|
14
|
+
- Showing empathy towards other community members
|
|
15
|
+
|
|
16
|
+
Examples of unacceptable behavior:
|
|
17
|
+
- The use of sexualized language or imagery
|
|
18
|
+
- Trolling, insulting/derogatory comments, and personal or political attacks
|
|
19
|
+
- Public or private harassment
|
|
20
|
+
- Publishing others' private information without explicit permission
|
|
21
|
+
- Other conduct that could reasonably be considered inappropriate
|
|
22
|
+
|
|
23
|
+
## Enforcement
|
|
24
|
+
|
|
25
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at `conduct@ruijayfeng.com` or via [GitHub Issues](https://github.com/ruijayfeng/aisurface/issues). All complaints will be reviewed and investigated.
|
|
26
|
+
|
|
27
|
+
## Attribution
|
|
28
|
+
|
|
29
|
+
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.0.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Welcome to contribute to aisurface!
|
|
4
|
+
|
|
5
|
+
## Issues
|
|
6
|
+
|
|
7
|
+
- **Bug**: use the `Bug report` template
|
|
8
|
+
- **Feature request**: use the `Feature request` template
|
|
9
|
+
- **Question**: use the `Question` template
|
|
10
|
+
|
|
11
|
+
## Pull Requests
|
|
12
|
+
|
|
13
|
+
1. Fork → change → PR
|
|
14
|
+
2. One PR per change
|
|
15
|
+
3. All PRs must pass CI (ruff + pytest)
|
|
16
|
+
4. Add tests covering your change
|
|
17
|
+
|
|
18
|
+
## Dev environment
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
git clone https://github.com/ruijayfeng/aisurface.git
|
|
22
|
+
cd aisurface
|
|
23
|
+
pip install -e ".[dev]"
|
|
24
|
+
pytest
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Adding a new GEO check
|
|
28
|
+
|
|
29
|
+
`scripts/scanner.py` + `scripts/cli.py` are the main extension points.
|
|
30
|
+
|
|
31
|
+
Each check must:
|
|
32
|
+
- Run without crashing on 2 eval fixtures
|
|
33
|
+
- Add a fixture in `tests/integration/test_full_audit.py`
|
|
34
|
+
- Update `references/readme-checklist.md`
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# 贡献指南
|
|
2
|
+
|
|
3
|
+
欢迎为 aisurface 贡献!
|
|
4
|
+
|
|
5
|
+
## 提 issue
|
|
6
|
+
|
|
7
|
+
- **Bug**: 用 `Bug report` 模板
|
|
8
|
+
- **功能建议**: 用 `Feature request` 模板
|
|
9
|
+
- **问题咨询**: 用 `Question` 模板
|
|
10
|
+
|
|
11
|
+
## 提 PR
|
|
12
|
+
|
|
13
|
+
1. Fork → 改 → PR
|
|
14
|
+
2. 一个 PR 一个改动
|
|
15
|
+
3. 所有 PR 必须过 CI(ruff + pytest)
|
|
16
|
+
4. 添加测试覆盖你的改动
|
|
17
|
+
|
|
18
|
+
## 开发环境
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
git clone https://github.com/ruijayfeng/aisurface.git
|
|
22
|
+
cd aisurface
|
|
23
|
+
pip install -e ".[dev]"
|
|
24
|
+
pytest
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## 添加新的 GEO 检查
|
|
28
|
+
|
|
29
|
+
`scripts/scanner.py` + `scripts/cli.py` 是主要扩展点。
|
|
30
|
+
|
|
31
|
+
每个检查必须:
|
|
32
|
+
- 跑在 2 个 eval fixture 上不 crash
|
|
33
|
+
- 在 `tests/integration/test_full_audit.py` 添加 fixture
|
|
34
|
+
- 更新 `references/readme-checklist.md`
|
aisurface-1.0.1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Jay Feng
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|