Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
},
"plugins": [
{
"name": "humanize-ai",
"name": "humanizeai",
"displayName": "Humanize AI",
"source": "./",
"source": "./adapters/claude",
"description": "Finds AI-writing tells and rewrites text so it reads like a person wrote it, while keeping facts, names, numbers, quotes, and the writer's voice intact.",
"category": "writing",
"tags": [
Expand All @@ -19,7 +19,8 @@
"humanizer",
"ai-writing",
"content"
]
],
"version": "0.7.0"
}
]
}
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Names only, no values. Humanize AI needs no secrets.
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI

# Checks on every push and pull request. main is the only branch: adapters/claude is the text-only plugin
# that the Anthropic plugin directory tracks, and dev/ holds maintainer-only scripts that never ship.
on:
push:
branches: [main]
pull_request:

permissions:
contents: read

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

env:
PYTHONDONTWRITEBYTECODE: "1"
# Checker scripts (validator, secret scan, router check) live in the public aiaddon repo; pinned to a full commit SHA.
TOOLS_REF: 4364a0e0d80f08ae4b503c1a84818725e285122c

jobs:
checks:
name: Checks
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0 # full history for the secret scan
persist-credentials: false
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: syncwin/aiaddon
ref: ${{ env.TOOLS_REF }}
path: .checker-tools
persist-credentials: false
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.13"
- name: Validate the plugin for the directory (blocking)
run: python .checker-tools/dev/aiaddon-review/scripts/validate_extension.py adapters/claude --strict --target directory --require-meta author,company
- name: Check the router against its evals
run: python .checker-tools/dev/aiaddon-review/scripts/route_check.py adapters/claude
- name: Scan the tree and the full git history for secrets and private data (blocking)
run: python .checker-tools/dev/aiaddon-review/scripts/scan_secrets.py . --history
20 changes: 13 additions & 7 deletions .github/workflows/release-plugin.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Release plugin

# Builds humanize-ai.plugin from the plugin.json version and attaches it to the GitHub release.
# One-click download: https://github.com/syncwin/humanize-ai/releases/latest/download/humanize-ai.plugin
# Builds humanizeai.plugin from the plugin.json version and attaches it to the GitHub release.
# One-click download: https://github.com/syncwin/humanizeai/releases/latest/download/humanizeai.plugin
on:
push:
tags: ["v*"]
Expand All @@ -16,13 +16,13 @@ concurrency:

jobs:
release:
name: Build and attach humanize-ai.plugin
name: Build and attach humanizeai.plugin
runs-on: ubuntu-latest
timeout-minutes: 10
env:
NAME: "Humanize AI"
ASSET: humanize-ai.plugin
ROOT: .
ASSET: humanizeai.plugin
ROOT: adapters/claude
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
Expand All @@ -44,12 +44,18 @@ jobs:
for d, dirs, files in os.walk(root):
dirs[:] = sorted(x for x in dirs if x not in skip_dirs)
for f in sorted(files):
if f in skip_files or f.endswith(".pyc"):
if f in skip_files or f.endswith((".pyc", ".png")):
continue
p = os.path.join(d, f)
z.write(p, os.path.relpath(p, root).replace(os.sep, "/"))
text_ext = {".md", ".json", ".yaml", ".yml", ".txt"}
text_names = {"LICENSE", ".gitignore"}
with zipfile.ZipFile(out) as z:
assert ".claude-plugin/plugin.json" in z.namelist(), "plugin.json missing at zip root"
names = z.namelist()
assert ".claude-plugin/plugin.json" in names, "plugin.json missing at zip root"
bad = [n for n in names if os.path.splitext(n)[1].lower() not in text_ext and os.path.basename(n) not in text_names]
assert not bad, "non-text files must not ship: " + ", ".join(bad)
assert not [n for n in names if n.split("/")[0] in ("hooks", "scripts") or n == ".mcp.json"], "hooks, scripts and .mcp.json must not ship"
with open(os.environ.get("GITHUB_OUTPUT", os.devnull), "a") as g:
g.write("version=" + version + "\n")
print("built", out, "version", version)
Expand Down
36 changes: 33 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,43 @@ __MACOSX/
# Logs
*.log

# Personal customizations file (created by scripts/setup.sh from the tracked template)
skills/humanizeai/assets/user-customizations.md
# Personal customizations file (created from the tracked template by the customizations recipe)
adapters/claude/skills/humanizeai/assets/user-customizations.md

# Local eval results from `claude plugin eval`
evals/results/
adapters/claude/evals/results/

# Build output: release packages go on GitHub Releases, never in the repo
dist/
*.zip
*.plugin

*.pyc
__pycache__/

# --- public-safety preset: private data never reaches git ---
.env
.env.*
!.env.example
*.pem
*.key
*.p12
*.pfx
id_rsa*
id_ed25519*
credentials*.json
service-account*.json
secrets.*
*.log
logs/
memory/
.claude/memory/
.claude/progress/
progress*.md
*.local.md
.claude/settings.local.json
.npmrc
.pypirc
.netrc
private/
# --- end public-safety preset ---
13 changes: 13 additions & 0 deletions .public-safety-allow
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# False positives for scan_secrets.py. Only exact, intentional values, each tied to the file that holds it.
# Format: <rule>:<path-glob>[:<value-substring>]
# The plugin's public support address (it is the published contact, not personal data):
email:README.md:support@syncwin.com
email:SECURITY.md:support@syncwin.com
email:CONTRIBUTING.md:support@syncwin.com
email:.claude-plugin/marketplace.json:support@syncwin.com
email:adapters/claude/.claude-plugin/plugin.json:support@syncwin.com
email:.public-safety-allow:support@syncwin.com
# Git history only (old commits, no history rewrite; a folder path and the public contact, no credential involved):
drive-path:AGENTS.md:A:\Automation
drive-path:AGENTS.md:D:\SyncWin
email:.claude-plugin/plugin.json:support@syncwin.com
15 changes: 9 additions & 6 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
# humanize-ai agent guide
# humanizeai agent guide

Humanize AI Claude plugin: detect AI-writing tells, rewrite, and audit while keeping facts, names, numbers and quotes intact.

**Structure:** `skills/` (`humanizeai`, `ai-pattern-detector`, `ai-pattern-remover`, `humanize-ai-auditor`), `knowledge/` (patterns by source), `scripts/setup.sh`, `evals/`.
**Structure:** the shipped plugin is `adapters/claude/` (`skills/` with `humanizeai`, `humanizeai-detect`, `humanizeai-rewrite`, `humanizeai-audit`; `knowledge/` patterns by source; `evals/`; `prompts/`). `dev/` holds maintainer-only scripts (not shipped). Root: marketplace, docs, CI.

## Commands
- First clone: `bash scripts/setup.sh` (creates the git-ignored personal customizations file); `scripts/update.sh` to update.
- Validate: `claude plugin validate . --strict`
- Evals (real model calls): `claude plugin eval . --trust-plugin --ablation none --scaffold --allow-tools Read Glob Grep Skill -j 4 --no-publish`. Rebuild cases with `python A:\Automation\plugin-evals\regen_evals.py <plugin> <router> <fixture ids>`. Write results outside the repo (`D:\SyncWin\AI Outputs\<plugin>\eval-results`); the packager includes repo files.
- First clone: follow `adapters/claude/skills/humanizeai/references/customizations-setup.md` (personal customizations file; update steps); `dev/scripts/setup.sh` and `update.sh` are the maintainer originals.
- Validate: `claude plugin validate adapters/claude --strict` and `claude plugin validate . --strict`
- Directory gate: `python <aiaddon>/dev/aiaddon-review/scripts/validate_extension.py adapters/claude --strict --target directory --require-meta author,company`; router: `route_check.py adapters/claude`; secrets: `scan_secrets.py . --history` (false positives only in `.public-safety-allow`)
- Evals (real model calls): `claude plugin eval adapters/claude --trust-plugin --ablation none --scaffold --allow-tools Read Glob Grep Skill -j 4 --no-publish`. Rebuild cases with `python <owner-tools>/plugin-evals/regen_evals.py <plugin> <router> <fixture ids>` (owner's local tools folder, not in this repo). Write results outside the repo (`<owner-outputs>/<plugin>/eval-results`, a local folder outside the repo); the packager includes repo files.

## Workflow
1. Read the skill or script you change, plus its neighbours.
2. Make the smallest change; run the closest check, then the full gate.
3. Update `CHANGELOG.md` for behavior changes; log ideas in `IMPROVEMENTS.md`.

## Rules
- **Directory compliance:** the shipped plugin has no hooks, no scripts or other non-text files, and text-only frontmatter. Script-like features are recipes in `skills/*/references/`; `dev/` is maintainer tooling only.
- **Never publish secrets or private data** (keys, tokens, personal contact data, client names, internal URLs, local paths); the secret and public-safety scans block every commit and release.
- Run the closest check and the full gate before committing. Never delete or weaken tests or evals. Report failed, skipped or timed-out runs honestly; NOT RUN is never a pass.
- Follow neighbouring files. Keep each `SKILL.md` under 500 lines; move detail into `references/`.
- On release, bump `version` in `.claude-plugin/plugin.json` and every skill's `metadata.version` together; add a `CHANGELOG.md` entry per behavior change.
- On release, bump `version` in `adapters/claude/.claude-plugin/plugin.json` and `.claude-plugin/marketplace.json` together (skills carry no `metadata` block: directory policy wants text-only frontmatter); add a `CHANGELOG.md` entry per behavior change.
- No commits, pushes or PRs unless asked. Work on a branch and open a PR; never push to main.
- No new dependencies without asking (scripts stay on the Python standard library).
- Never commit secrets. Never pick names or slugs without user confirmation.
Expand Down
15 changes: 13 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
# Changelog: Humanize AI (humanize-ai)
# Changelog: Humanize AI (humanizeai)

## 0.7.0: Directory layout

**Changed**
- Directory layout: the shipped plugin moved to `adapters/claude/` (plugin.json, skills, knowledge, assets, evals, prompts). The repository root keeps `marketplace.json` (source `./adapters/claude`), docs, CI and `dev/`.
- Renamed the plugin `humanize-ai` to `humanizeai` and the stage skills `ai-pattern-detector` to `humanizeai-detect`, `ai-pattern-remover` to `humanizeai-rewrite`, `humanize-ai-auditor` to `humanizeai-audit`. All references updated; repository is `syncwin/humanizeai`; the release file is `humanizeai.plugin`.
- Scripts to recipe: `setup.sh` and `update.sh` moved unchanged to `dev/scripts/` (maintainer only); the shipped plugin gets `skills/humanizeai/references/customizations-setup.md`, a Markdown recipe with the same setup and update steps and messages.
- Frontmatter: removed the nested `metadata:` maps (text-only frontmatter) and rewrote each description to start with "Use when" or "Use for" within 120 characters. Dropped the image field from plugin.json.
- The router now has a routing table with exact slugs, tie-breaks, a default question and Skill-tool loading, checked by `evals/router/cases.json`.
- Reworded the "Opinions that sound human" guidance so it is a code-block example, not an instruction to the model.
- Public safety: `PUBLIC-SAFETY.md`, `.public-safety-allow`, `.env.example`, `.gitignore` preset; CI validates and scans from `adapters/claude`; the root AGENTS.md no longer contains a local drive path.

## Unreleased

**Added**
- GitHub Actions workflow `release-plugin.yml` builds `humanize-ai.plugin` and attaches it to each release for a one-click download link (README).
- GitHub Actions workflow `release-plugin.yml` builds `humanizeai.plugin` and attaches it to each release for a one-click download link (README).

## 0.6.0: Update

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Thanks for helping. Humanize AI is in public beta, so bug reports from real draf

## Report a problem

Open an issue at https://github.com/syncwin/humanize-ai/issues with:
Open an issue at https://github.com/syncwin/humanizeai/issues with:

- the Humanize AI version (in `.claude-plugin/plugin.json` or the plugin details screen) and where you ran it (claude.ai, Cowork, or Claude Code);
- the prompt you used and a short excerpt of the text, with private details removed;
Expand Down
25 changes: 25 additions & 0 deletions PUBLIC-SAFETY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Public Safety

This repository is public. Only what is listed under "May be public" is published.

## May be public
- Source code, skills, hook and script sources, and Markdown docs
- Documentation, README, CHANGELOG, LICENSE
- Generic examples with placeholder values, `.env.example` (variable names only)
- Public connector addresses (for example the Composio MCP URL), which carry no key

## Never published
- Secrets: API keys, tokens, passwords, private keys, `.env` files, credentials
- Personal data: personal e-mails, phone numbers, addresses
- Client names and data; internal URLs and hosts
- Local absolute user paths; private notes, logs, memory or progress files

## Where private values live instead
- None: the plugin needs no secrets and has no options that hold private values. Optional personal rules live in a git-ignored local file (`user-customizations.md`) that is never committed.

## Checks
- `python dev/aiaddon-review/scripts/scan_secrets.py . --history` (working tree plus full git history, run with the aiaddon checker scripts) before every release
- Allowed false positives: `.public-safety-allow`, entries for the public support address and one old history hit (a folder path, not a credential)

## If something leaks
Rotate the credential first, then remove it from history. Never force-push without the owner's explicit OK.
Loading