@maccesar/aiskills 1.12.0 → 1.16.0

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.
Files changed (68) hide show
  1. package/README.md +89 -9
  2. package/lib/cleanup.js +29 -0
  3. package/lib/commands/skills.js +110 -9
  4. package/lib/config.js +18 -9
  5. package/lib/installer.js +5 -3
  6. package/lib/symlink.js +45 -3
  7. package/lib/utils.js +41 -0
  8. package/package.json +2 -2
  9. package/skills/audit-codebase/SKILL.md +70 -0
  10. package/skills/audit-codebase/agents/openai.yaml +4 -0
  11. package/skills/audit-codebase/references/comprehensive-audit.md +220 -0
  12. package/skills/audit-codebase/references/report-format.md +119 -0
  13. package/skills/humaniza/SKILL.md +55 -4
  14. package/skills/humaniza/references/ai-patterns-es.md +40 -0
  15. package/skills/humaniza/references/checklist.md +9 -0
  16. package/skills/humaniza/references/examples.md +16 -0
  17. package/skills/humaniza/references/lexicon-es-mx.md +18 -0
  18. package/skills/humaniza/references/structures-es.md +132 -0
  19. package/skills/humaniza/scripts/check_ai_patterns.py +216 -0
  20. package/skills/refactoring-ui/SKILL.md +65 -29
  21. package/skills/refactoring-ui/references/05-motion.md +124 -0
  22. package/skills/refactoring-ui/references/06-dark-mode.md +117 -0
  23. package/skills/refactoring-ui/references/07-component-patterns.md +181 -0
  24. package/skills/session-log/SKILL.md +524 -0
  25. package/skills/session-log/evals/README.md +79 -0
  26. package/skills/session-log/evals/ab-ronda-1.md +115 -0
  27. package/skills/session-log/evals/ab-ronda-2.md +174 -0
  28. package/skills/session-log/evals/defecto-experimento.md +12 -0
  29. package/skills/session-log/evals/evals.json +147 -0
  30. package/skills/session-log/evals/trigger-eval.json +23 -0
  31. package/skills/session-log/references/file-layout.md +336 -0
  32. package/skills/session-log/references/verification.md +173 -0
  33. package/skills/stitch-showcase/SKILL.md +24 -232
  34. package/skills/stitch-showcase/references/07-theme-system.md +12 -0
  35. package/skills/stitch-showcase/references/08-type-detection.md +9 -1
  36. package/skills/stitch-showcase/references/10-component-standardization.md +25 -0
  37. package/skills/stitch-showcase/references/12-video-embedding.md +113 -0
  38. package/skills/stitch-showcase/references/13-language-detection.md +82 -0
  39. package/skills/stitch-showcase/references/14-troubleshooting-known-issues.md +122 -0
  40. package/skills/stitch-showcase/references/15-build-flags.md +71 -0
  41. package/skills/stitch-showcase/references/16-design-md-format.md +107 -0
  42. package/skills/stitch-showcase/references/index.html +25 -19
  43. package/skills/stitch-showcase/references/viewer.html +24 -12
  44. package/skills/stitch-showcase/scripts/__pycache__/build_showcase.cpython-314.pyc +0 -0
  45. package/skills/stitch-showcase/scripts/__pycache__/component_utils.cpython-314.pyc +0 -0
  46. package/skills/stitch-showcase/scripts/__pycache__/detect_components.cpython-314.pyc +0 -0
  47. package/skills/stitch-showcase/scripts/__pycache__/extract_catalog.cpython-314.pyc +0 -0
  48. package/skills/stitch-showcase/scripts/__pycache__/extract_text.cpython-314.pyc +0 -0
  49. package/skills/stitch-showcase/scripts/__pycache__/extract_zips.cpython-314.pyc +0 -0
  50. package/skills/stitch-showcase/scripts/__pycache__/parse_design_md.cpython-314.pyc +0 -0
  51. package/skills/stitch-showcase/scripts/__pycache__/slug_demangle.cpython-314.pyc +0 -0
  52. package/skills/stitch-showcase/scripts/build_showcase.py +150 -10
  53. package/skills/stitch-showcase/scripts/parse_design_md.py +145 -12
  54. package/skills/stitch-showcase/scripts/slug_demangle.py +209 -0
  55. package/skills/vscode-extension-dev/SKILL.md +90 -41
  56. package/skills/vscode-extension-dev/references/api-additional.md +168 -0
  57. package/skills/vscode-extension-dev/references/api-progress.md +55 -0
  58. package/skills/vscode-extension-dev/references/api-quickpick.md +75 -0
  59. package/skills/vscode-extension-dev/references/api-secretstorage.md +57 -0
  60. package/skills/vscode-extension-dev/references/api-statusbar.md +38 -0
  61. package/skills/vscode-extension-dev/references/api-treeview.md +78 -0
  62. package/skills/vscode-extension-dev/references/api-webview.md +149 -0
  63. package/skills/vscode-extension-dev/references/architecture.md +67 -0
  64. package/skills/vscode-extension-dev/references/debugger.md +179 -0
  65. package/skills/vscode-extension-dev/references/lsp.md +175 -0
  66. package/skills/vscode-extension-dev/references/notebooks.md +208 -0
  67. package/skills/vscode-extension-dev/references/testing.md +208 -0
  68. package/skills/vscode-extension-dev/references/api-patterns.md +0 -625
@@ -0,0 +1,70 @@
1
+ ---
2
+ name: audit-codebase
3
+ description: 'Audit a whole codebase, app, backend, or API as one unit and prepare or (once approved) implement an evidence-based correction plan, preserving legitimate use cases and avoiding disproportionate security controls. One sweep across security, production-readiness, architecture, dependencies, compatibility, performance, maintainability, and tests, in any language. Use even when the user just says "audit this project", "go through the whole app end to end", "is it safe to ship to prod / run on the public internet?", "do a real security review of my API", "find real problems before we launch", "what''s actually broken vs. just ugly?", "audit it and implement the fixes", or "implement the audit plan / decision matrix we already approved". Do NOT use for narrow work — a single bug, one regex or snippet, a small PR/diff, or tests for one module — nor for non-code audits like cloud bills or resumes.'
4
+ allowed-tools: Read, Grep, Glob, Bash, Edit, Write, AskUserQuestion
5
+ ---
6
+
7
+ # Audit Codebase
8
+
9
+ Act as a senior software, security, and architecture auditor. Review the whole project end to end before drawing any conclusions.
10
+
11
+ The work has two stages separated by an explicit user authorization. The separation exists because the value of an audit depends on a neutral diagnosis: if you edit while you audit, you contaminate the evidence and take away the user's decision about what to change. The first deliverable is always diagnosis and plan; code is only touched after the user approves the decision matrix.
12
+
13
+ Respond in the user's language. This skill is written in English for portability, but the audit report should match whatever language the user is writing in.
14
+
15
+ ## How the user invokes this
16
+
17
+ - **Audit only** ("audit this", "is it production-ready?", "security review") — run stage 1 and stop at the decision matrix + plan. Don't touch code.
18
+ - **Audit and fix** ("audit and implement the fixes", "find problems and fix them", "clean this up before we ship") — run stage 1, then present the decision matrix and stop for a single go/no-go before stage 2. Even when the user asks up front to fix everything, show the matrix first: it takes seconds to approve and it's the checkpoint that lets you change code on their own repo without guessing which product tradeoffs are acceptable. Once they approve (a plain "yes, go" is enough), implement the full matrix.
19
+ - **Implement a prior plan** ("implement the audit plan we approved") — skip discovery, go straight to stage 2 against the approved matrix.
20
+
21
+ If the user explicitly says to skip the checkpoint ("just fix everything, don't ask"), honor it — but still surface any finding whose fix would break a documented use case before applying that specific change, because that's a product decision you can't infer.
22
+
23
+ ## Before you start
24
+
25
+ Read `references/comprehensive-audit.md`. It holds the mandatory principles, the full technical scope (24 areas), the phased method, the severity classification, and the recommendation rules. Don't audit from memory: the file exists so the review is systematic and doesn't depend on which areas you happen to recall in the moment.
26
+
27
+ Before writing any deliverable (diagnosis, decision matrix, or implementation report), read `references/report-format.md` and use those exact structures. A stable format lets audits be compared across projects and guarantees that no finding is left without a disposition.
28
+
29
+ ## Stage 1 — Audit (no modifications)
30
+
31
+ Do not modify the project during this stage. This covers the whole project tree, not just source files: don't leave build output, compiled bytecode (`__pycache__`, `.pyc`), caches, lockfiles, `node_modules`, coverage reports, or any generated artifact behind. Verification tools often write into the tree as a side effect — `python -m py_compile` drops `__pycache__`, test runners and bundlers create caches, `npm install` writes `node_modules`. When you need to run such a tool, run it so its output lands outside the project (e.g. set `PYTHONPYCACHEPREFIX` to a temp dir, use a flag that disables writes, or copy the file elsewhere first); if you can't, skip it and record the check as unverified with the reason. A clean read-only pass is what lets the user trust that the diagnosis changed nothing.
32
+
33
+ If a critical finding needs immediate attention, report it first, but continue the full audit — don't stop at the first serious problem.
34
+
35
+ 1. **Discovery** — Identify the stack and real versions. Inventory entrypoints, routes, models, migrations, services, and commands. Read README, CHANGELOG, configuration, tests, and examples to understand the project's intent.
36
+ 2. **Existing use cases** — Build the list of real capabilities and actors (anonymous visitor, authenticated user, resource owner, admin, API client, internal processes) **before** recommending any change. This list is the yardstick every restrictive recommendation is measured against.
37
+ 3. **Evidence** — Run available tests, lint, static analysis, and dependency audits. Verify authorization with at least two users/tenants when it applies. Confirm every claim before reporting it.
38
+ 4. **Findings** — Document each problem with concrete evidence (file, line, configuration, reproducible behavior) and a status: **Confirmed**, **Conditional risk**, or **Unverified**.
39
+ 5. **Decision matrix** — Every confirmed finding, medium and low included, gets an explicit proposed disposition. None is silently discarded.
40
+ 6. **Correction plan** — Organized by implementation phase, with compatibility, tests, and rollback. Stop here and wait for the user's approval.
41
+
42
+ ### Stage 1 critical rules
43
+
44
+ - **Evidence before patterns.** Don't flag something as vulnerable just because it resembles a known pattern. A finding without evidence is noise that erodes trust in the real findings.
45
+ - **Proportional security, not absolute.** Before recommending mandatory auth, allowlists, or route blocking, identify which legitimate use cases would break and evaluate the least-restrictive alternative (signatures, opaque tokens, ownership, rate limiting, expiration).
46
+ - **Severity is not scope.** Severity signals risk; the disposition (fix now, later phase, accept, won't fix) is a separate decision that every finding must receive explicitly.
47
+ - **Don't turn product decisions into technical assumptions.** Ask only what cannot be inferred from the repository.
48
+
49
+ ## Stage 2 — Authorized implementation
50
+
51
+ Start only when the user approves the decision matrix.
52
+
53
+ 1. Implement the **full** approved matrix, not just the critical and high findings.
54
+ 2. If a change contradicts an existing use case discovered in stage 1, stop and present it before applying the restriction.
55
+ 3. Keep or add regression tests for every affected behavior.
56
+ 4. Update configuration, documentation, examples, and CHANGELOG when a public contract changes.
57
+ 5. Re-run all verifications and review the full diff: every changed line must trace back to an approved finding. No cosmetic cleanup, no unrelated features.
58
+ 6. Explicitly list any finding you did not implement and the approved reason it was left pending.
59
+
60
+ ## Closing condition
61
+
62
+ The audit or implementation is complete only when:
63
+
64
+ 1. Every finding has evidence and a status.
65
+ 2. Every confirmed finding has an explicit disposition.
66
+ 3. Existing capabilities and legitimate use cases are documented.
67
+ 4. The plan (or final report) includes compatibility, tests, and rollback.
68
+ 5. In stage 1, no code was modified.
69
+
70
+ Do not declare the work "complete" if any finding is left without an explicit disposition.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "Audit Codebase"
3
+ short_description: "End-to-end technical audit and evidence-based correction plan"
4
+ default_prompt: "Run a comprehensive technical audit of this project: architecture, security, compatibility, performance, maintainability, and tests. Deliver a diagnosis, decision matrix, and correction plan without modifying code."
@@ -0,0 +1,220 @@
1
+ # Comprehensive technical audit — full method
2
+
3
+ Detailed guidance for stage 1 (audit) and the rules that govern both stages. The exact deliverable formats live in `report-format.md`.
4
+
5
+ ## Objective
6
+
7
+ Detect real, verifiable problems in:
8
+
9
+ 1. Implementation and functional logic.
10
+ 2. Architecture and separation of responsibilities.
11
+ 3. Security, authentication, and authorization.
12
+ 4. Input validation and trust boundaries.
13
+ 5. Database, integrity, and performance.
14
+ 6. Files, uploads, paths, and storage.
15
+ 7. Error handling, logs, and sensitive data.
16
+ 8. Dependencies, configuration, and deployment.
17
+ 9. Frontend, mobile client, or external integrations.
18
+ 10. Tests, compatibility, and maintainability.
19
+
20
+ The result must let the user decide what to fix, what to keep, what to consciously postpone, and how to implement the changes without breaking valid use cases.
21
+
22
+ ## Mandatory principles
23
+
24
+ ### 1. Evidence before patterns
25
+
26
+ - Don't invent problems.
27
+ - Don't flag something as vulnerable just because it resembles a known pattern.
28
+ - Every finding must include concrete evidence: file, line, configuration, dependency, reproducible behavior, or tool output.
29
+ - If it can't be verified, mark it **Unverified**.
30
+ - Distinguish clearly between:
31
+ - **Confirmed**: demonstrated in code or execution.
32
+ - **Conditional risk**: depends on specific configuration or infrastructure.
33
+ - **Unverified**: not enough data to conclude.
34
+
35
+ ### 2. Proportional security, not absolute security
36
+
37
+ - "Secure by default" does not mean "forbid by default" without analyzing the product.
38
+ - Before recommending authentication, strict authorization, allowlists, tokens, route blocking, or removing compatibility, identify the current use cases that could break.
39
+ - Explicitly consider public, anonymous, multi-user, admin, API, temporary, and embedded flows when they exist in the project or its documentation.
40
+ - Don't impose registration/login if the product legitimately supports anonymous visitors.
41
+ - Prefer controls at the real boundary: signatures, opaque tokens, anonymous sessions, rate limiting, ownership, expiration, scopes, and context validation.
42
+ - Don't duplicate controls without justifying the benefit. If a signature already guarantees integrity, don't also add a mandatory manual record unless it mitigates a distinct, demonstrated risk.
43
+ - Every restrictive recommendation must include:
44
+ 1. The concrete risk it mitigates.
45
+ 2. The affected use cases.
46
+ 3. The least-restrictive alternative evaluated.
47
+ 4. A safe opt-in/opt-out mechanism, if applicable.
48
+ 5. The migration and compatibility impact.
49
+
50
+ ### 3. Compatibility and existing behavior
51
+
52
+ - Review README, CHANGELOG, configuration, tests, examples, and recent history to identify public contracts and intentional behaviors.
53
+ - Build a list of existing capabilities before recommending changes.
54
+ - Don't silently remove or change a documented capability.
55
+ - Classify each change as:
56
+ - Compatible.
57
+ - Justified breaking change.
58
+ - Avoidable breaking change.
59
+ - If a fix could break consumers, include a transition strategy, configuration, deprecation, or migration guide.
60
+ - Verify the real support matrix of the language, framework, database, and runtime versions.
61
+
62
+ ### 4. Severity is not scope
63
+
64
+ - Severity indicates risk; it does not automatically decide whether something is implemented or ignored.
65
+ - Every confirmed finding — mediums and lows included — must receive an explicit disposition:
66
+ - **Fix now**.
67
+ - **Fix in a later phase**, with a reason and a follow-up condition.
68
+ - **Consciously accept**, with technical justification.
69
+ - **Won't fix**, because it isn't a real problem or the cost/risk outweighs the benefit.
70
+ - Don't use "optional", "tech debt", or "medium improvement" as a synonym for "won't be done".
71
+ - If the user asks to implement the full plan, include every finding whose fix is appropriate and proportionate, not just criticals and highs.
72
+ - Refactors are evaluated by benefit, risk, and available coverage; they are neither done automatically nor discarded automatically.
73
+
74
+ ### 5. Minimal, complete, verifiable changes
75
+
76
+ - Prioritize small, safe changes, but don't leave a functional fix half done.
77
+ - Don't propose full rewrites without a demonstrated need.
78
+ - Don't add features unrelated to the problems found.
79
+ - Don't introduce abstractions without a concrete problem they solve.
80
+ - Don't do cosmetic cleanup during the fix phase unless it's needed to implement or verify the change.
81
+ - Every recommendation must state how to check that it works and that it caused no regressions.
82
+
83
+ ## Technical scope
84
+
85
+ Review at minimum:
86
+
87
+ 1. General architecture and folder structure.
88
+ 2. Separation of responsibilities and coupling.
89
+ 3. Modern framework conventions.
90
+ 4. Main configuration and default values.
91
+ 5. Direct, transitive, outdated, or vulnerable dependencies.
92
+ 6. Public, private, web, API, and callback routes.
93
+ 7. Authentication, sessions, tokens, and expiration.
94
+ 8. Authorization, ownership, roles, policies, gates, and isolation between users.
95
+ 9. Input validation, coercion, limits, and error messages.
96
+ 10. Models, mass assignment, casts, relations, and events.
97
+ 11. Migrations, indexes, cascades, constraints, and referential integrity.
98
+ 12. Queries, N+1, transactions, concurrency, and partial operations.
99
+ 13. Controllers, services, jobs, commands, and middleware.
100
+ 14. Uploads, MIME, extensions, names, paths, disks, permissions, and cleanup.
101
+ 15. Image/document processing and CPU/memory consumption.
102
+ 16. Sensitive data in responses, logs, exceptions, and caches.
103
+ 17. CSRF, CORS, rate limiting, headers, and signed URLs.
104
+ 18. Frontend, CDN dependencies, CSP, integrity, and client-side error handling.
105
+ 19. Build scripts, published assets, and install/update commands.
106
+ 20. Production configuration and behavior behind proxies/CDNs.
107
+ 21. Existing tests, practical coverage, and compatibility matrix.
108
+ 22. Outdated documentation, examples, and public contracts.
109
+ 23. Duplicated code, dead code, and accidental complexity.
110
+ 24. Deployment, upgrade, and rollback risks.
111
+
112
+ Adapt the list to the real stack: a CLI has no CSRF, a library has no routes. Explicitly mark the areas that don't apply instead of silently omitting them, so the reader knows they were considered.
113
+
114
+ ## Working method
115
+
116
+ ### Phase 1: discovery
117
+
118
+ 1. Identify the stack and real versions.
119
+ 2. Review the repository instructions and Git state.
120
+ 3. Inventory entrypoints, routes, models, migrations, services, views, and commands.
121
+ 4. Read configuration, README, CHANGELOG, and examples to understand intent and compatibility.
122
+ 5. Identify real actors and flows:
123
+ - Anonymous visitor.
124
+ - Authenticated user.
125
+ - Resource owner.
126
+ - Administrator.
127
+ - API client or external service.
128
+ - Internal processes and CLI.
129
+ 6. Trace the critical flows end to end.
130
+
131
+ ### Phase 2: verification
132
+
133
+ 1. Run available tests, lint, static analysis, and audits.
134
+ 2. Use dependency tools to verify real advisories.
135
+ 3. Reproduce important bugs when it's safe.
136
+ 4. Verify authorization with at least two users/tenants when it applies.
137
+ 5. Verify positive and negative paths.
138
+ 6. Review concurrency, rollback, and cleanup in operations that touch DB + filesystem.
139
+ 7. Check every claim against evidence before reporting it.
140
+
141
+ ### Phase 3: diagnosis, no modifications
142
+
143
+ - The first deliverable is diagnosis and plan only.
144
+ - Don't modify the project tree during this phase — not just source files, but any generated artifact (compiled bytecode/`__pycache__`, caches, `node_modules`, lockfiles, coverage output). Verification tools that write into the tree as a side effect (`py_compile`, test runners, bundlers, `npm install`) must be run with their output redirected outside the project, or skipped and recorded as unverified with the reason.
145
+ - If a critical finding needs immediate attention, report it first, but continue the full audit.
146
+ - Don't stop the analysis after finding critical problems.
147
+
148
+ ### Phase 4: decide before implementing
149
+
150
+ Before modifying code, present a **decision matrix** with all confirmed findings (format in `report-format.md`).
151
+
152
+ Don't start changes until the decisions are clear for anything that alters public behavior, authentication, compatibility, schema, dependencies, or API.
153
+
154
+ Ask only about product decisions that can't be inferred from the repository. Don't ask for data that can be investigated locally.
155
+
156
+ ### Phase 5: authorized implementation
157
+
158
+ When the user authorizes implementation:
159
+
160
+ 1. Implement the full approved matrix, not just the highest-severity findings.
161
+ 2. If a contradiction with an existing use case appears, stop and present it before applying a restriction.
162
+ 3. Keep or add regression tests for every affected behavior.
163
+ 4. Update configuration, documentation, examples, and CHANGELOG when a contract changes.
164
+ 5. Run all verifications again.
165
+ 6. Review the full diff and confirm there are no out-of-scope changes.
166
+ 7. Explicitly list any finding not implemented and the approved reason for leaving it pending.
167
+
168
+ ## Severity classification
169
+
170
+ ### Critical
171
+
172
+ - Provable unauthorized access, modification, or deletion.
173
+ - Direct exposure of secrets or highly sensitive data.
174
+ - Code execution, server or database compromise.
175
+ - Data loss or breakage of an essential flow.
176
+
177
+ ### High
178
+
179
+ - Serious permissions, validation, integrity, or logic problem.
180
+ - Can cause partial data loss, inconsistencies, or major failures.
181
+ - Vulnerable dependency exploitable in the project's real context.
182
+ - Must be resolved before production unless explicitly and justifiably accepted.
183
+
184
+ ### Medium
185
+
186
+ - Real performance, maintainability, compatibility, or incomplete-validation problem.
187
+ - Faulty build, migration, cache, or operational process with a workaround available.
188
+ - Must receive an explicit decision and is normally included in stabilization.
189
+
190
+ ### Low
191
+
192
+ - Confirmed minor inconsistency or defect.
193
+ - Its fix is small or can be grouped with related work.
194
+ - Must not be ignored automatically; weigh cost against benefit.
195
+
196
+ ### Informational
197
+
198
+ - Verified correct behavior.
199
+ - Unconfirmed risk or preventive recommendation with no current defect.
200
+ - Requires no change unless a conscious decision is made.
201
+
202
+ ## Rules for recommendations
203
+
204
+ - Be actionable and specific.
205
+ - Include the file and the suggested change when possible.
206
+ - Recommend one concrete option, but explain the real tradeoffs.
207
+ - Don't present a restrictive policy as the only solution if a safer, more flexible alternative exists.
208
+ - Don't turn product decisions into technical assumptions.
209
+ - Don't recommend allowlists, mandatory authentication, or endpoint removal without demonstrating why signatures, scopes, tokens, ownership, or rate limiting aren't enough.
210
+ - If a fix is breaking, include migration and compatibility.
211
+ - If you decide not to fix something, justify why and what future signal would force a reconsideration.
212
+
213
+ ## Communication rules
214
+
215
+ - Be direct, no filler.
216
+ - Don't explain basic framework concepts.
217
+ - Don't list irrelevant theoretical possibilities.
218
+ - Separate facts, inferences, and decisions.
219
+ - Acknowledge uncertainty and contradictions.
220
+ - Don't declare the audit or implementation "complete" if any findings lack an explicit disposition.
@@ -0,0 +1,119 @@
1
+ # Deliverable formats
2
+
3
+ Exact structures for the deliverables of both stages. Always use these templates: a stable format lets audits be compared across projects and guarantees that no finding is left without a disposition.
4
+
5
+ ## Stage 1 deliverable: diagnosis
6
+
7
+ ### 1. Executive summary
8
+
9
+ - Overall state.
10
+ - Overall risk: Low / Medium / High / Critical.
11
+ - Top five priorities.
12
+ - Existing capabilities that must be preserved.
13
+ - What is well implemented.
14
+ - What blocks production.
15
+ - What could not be verified.
16
+
17
+ ### 2. Findings table
18
+
19
+ Each finding includes:
20
+
21
+ - ID (stable, e.g. `F-01`; the matrix and plan reference it).
22
+ - Status: Confirmed / Conditional risk / Unverified.
23
+ - Severity: Critical / High / Medium / Low / Informational.
24
+ - Area (security, DB, files, performance, etc.).
25
+ - File and line.
26
+ - Problem.
27
+ - Evidence.
28
+ - Real impact.
29
+ - Affected actors and use cases.
30
+ - Concrete recommendation.
31
+ - Least-restrictive alternative evaluated.
32
+ - Compatibility and regression risk.
33
+ - Acceptance test.
34
+ - Proposed disposition.
35
+
36
+ With few findings, a wide table works; with many, use a summary table (ID, severity, area, problem, disposition) followed by one card per finding with the remaining fields.
37
+
38
+ ### 3. Special sections
39
+
40
+ Include separate sections for:
41
+
42
+ - Security.
43
+ - Database.
44
+ - Files and storage.
45
+ - Performance.
46
+ - Code quality.
47
+ - Frontend/build/assets.
48
+ - Dependencies and compatibility.
49
+ - Tests.
50
+ - Production and deployment.
51
+
52
+ If an area doesn't apply to the stack (e.g. database in a pure library), state it in one line instead of omitting the section.
53
+
54
+ ### 4. Decision matrix
55
+
56
+ Include **all** confirmed findings, regardless of severity. None may be implicitly discarded.
57
+
58
+ | ID | Finding | Severity | Proposed disposition | Compatibility | Affected cases | Justification |
59
+ | --- | ------- | -------- | -------------------- | ------------- | -------------- | ------------- |
60
+
61
+ Valid dispositions:
62
+
63
+ - **Fix now**.
64
+ - **Fix in a later phase** — with a reason and a follow-up condition.
65
+ - **Consciously accept** — with technical justification.
66
+ - **Won't fix** — because it isn't a real problem or the cost/risk outweighs the benefit.
67
+
68
+ Compatibility column: Compatible / Justified breaking / Avoidable breaking.
69
+
70
+ ### 5. Recommended correction plan
71
+
72
+ Organize by implementation phase, not just by severity:
73
+
74
+ 1. Immediate protection without breaking legitimate capabilities.
75
+ 2. Integrity and functional errors.
76
+ 3. Compatibility, migrations, and dependencies.
77
+ 4. Performance, caching, and operations.
78
+ 5. Maintainability and justified refactors.
79
+ 6. Tests, documentation, rollout, and rollback.
80
+
81
+ For each phase state:
82
+
83
+ - Exact changes.
84
+ - Files or subsystems.
85
+ - Dependencies between changes.
86
+ - Risks and mitigations.
87
+ - Use cases that must keep working.
88
+ - Required tests.
89
+ - Acceptance criteria.
90
+
91
+ Close the diagnosis by stating that no code was modified and that you await the user's decision on the matrix.
92
+
93
+ ## Stage 2 deliverable: implementation report
94
+
95
+ When the authorized implementation is done, deliver:
96
+
97
+ ### 1. Change summary
98
+
99
+ - Implemented findings (by ID), with the files touched by each.
100
+ - Final compatibility classification of each change (Compatible / Justified breaking) and, for breaking ones, the migration strategy applied.
101
+
102
+ ### 2. Verification
103
+
104
+ - Verification commands run (tests, lint, static analysis) and their literal output.
105
+ - Regression tests added or updated, mapped to the finding they cover.
106
+ - Confirmation of the full-diff review: every changed line traces back to an approved finding.
107
+
108
+ ### 3. Pending items
109
+
110
+ Table of matrix findings that were not implemented:
111
+
112
+ | ID | Finding | Approved disposition | Reason left pending | Follow-up condition |
113
+ | --- | ------- | -------------------- | ------------------- | ------------------- |
114
+
115
+ If empty, say so explicitly ("the approved matrix was implemented in full").
116
+
117
+ ### 4. Updated documentation
118
+
119
+ - List of documents touched (README, CHANGELOG, examples, configuration) and which contract changed each one.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: humaniza
3
- description: Humaniza textos en español (especialmente es-MX) eliminando patrones típicos de IA y devolviendo una versión natural y clara. Úsalo al editar emails, documentación, marketing, soporte o textos técnicos en español cuando el usuario pida "humanizar", "hacerlo más natural", "quitar tono IA" o "hacerlo sonar humano".
4
- allowed-tools: Read, Write, Edit, Grep, Glob, AskUserQuestion
3
+ description: 'Úsalo cuando humanices textos en español (especialmente es-MX) — editando emails, documentación, marketing, soporte o textos técnicos, eliminando patrones típicos de IA y devolviendo una versión natural y clara. Triggers: "humanizar", "hacerlo más natural", "quitar tono IA", "hacerlo sonar humano".'
4
+ allowed-tools: Read, Write, Edit, Grep, Glob, Bash, AskUserQuestion
5
5
  ---
6
6
 
7
7
  # Humaniza
@@ -16,15 +16,66 @@ Editor de estilo para español de México. El objetivo es quitar tics de IA sin
16
16
  - Preferir es-MX: evitar "vosotros", "ordenador", "móvil", "coche" cuando el texto sea neutro.
17
17
  - No inventar fuentes ni datos.
18
18
 
19
+ ## Reglas clave (adaptadas de Stop Slop)
20
+
21
+ 1. **Corta los abridores.** Elimina frases que anuncian lo que sigue. "La verdad es que", "Déjame ser claro", "Aquí está la cosa". Di el contenido directo.
22
+
23
+ 2. **Rompe estructuras formulaicas.** Evita contrastes binarios ("No porque X, sino porque Y"), listados negativos ("No es X, no es Y, es Z"), fragmentación dramática ("[Sustantivo]. Eso es todo."), setups retóricos ("¿Qué tal si...?"), agencia falsa ("la decisión emerge").
24
+
25
+ 3. **Usa voz activa.** Cada oración necesita un sujeto humano haciendo algo. No le hables a objetos inanimados como si actuaran solos. Los datos no "dicen" nada; alguien los lee.
26
+
27
+ 4. **Sé concreto.** Sin vaguedades. "Las implicaciones son significativas" → nombra la implicación específica. "Las razones son estructurales" → di cuál es la razón.
28
+
29
+ 5. **Pon al lector en la escena.** "Tú" gana a "la gente". Lo específico gana a lo abstracto. Sin narrador desde la distancia ("La gente tiende a...", "Esto pasa porque...").
30
+
31
+ 6. **Varía el ritmo.** Mezcla largos y cortos. Dos elementos ganan a tres. No termines todos los párrafos igual. Elimina las rayas (—) en prosa narrativa.
32
+
33
+ 7. **Confía en el lector.** Afirma los hechos directo. Sin suavizar, justificar, ni dar permiso ("y eso está bien").
34
+
35
+ 8. **Corta lo citable.** Si suena a frase de caja de motivación, reescríbela.
36
+
19
37
  ## Flujo
20
38
 
21
39
  1. Detectar tono y audiencia a partir del texto.
22
40
  2. Si el usuario pide un modo (marketing, técnico, soporte, etc.), priorizarlo.
23
- 3. Identificar tics de IA con `references/ai-patterns-es.md` y `references/lexicon-es-mx.md`.
41
+ 3. Identificar tics de IA con `references/ai-patterns-es.md`, `references/lexicon-es-mx.md`, y `references/structures-es.md`.
24
42
  4. Reescribir: cortar relleno, concretar, variar ritmo, usar "ser/estar" cuando sea más claro.
25
43
  5. Ajustar el tono según `references/modes-es-mx.md` si aplica.
26
44
  6. Añadir voz humana cuando aplique con `references/voice-es-mx.md`.
27
- 7. Pasar QA final con `references/checklist.md`.
45
+ 7. Verificar el resultado con el escáner determinístico — ver "Verificación con script" abajo — y después pasar el QA visual con `references/checklist.md`.
46
+
47
+ ## Verificación rápida (antes de entregar)
48
+
49
+ - ¿Hay adverbios -mente? Redúcelos o elimínalos.
50
+ - ¿Voz pasiva sin sujeto visible? Encuentra al actor, ponlo de sujeto.
51
+ - ¿Objeto inanimado haciendo algo humano ("la decisión emerge")? Nombra a la persona.
52
+ - ¿Oración empieza con pronombre o adverbio interrogativo (qué, cuándo, dónde, cómo)? Reestructura.
53
+ - ¿Abre con "he aquí", "la verdad es", "déjame"? Corta al punto.
54
+ - ¿Tres oraciones consecutivas del mismo largo? Rompe una.
55
+ - ¿Párrafo termina con frase corta de impacto? Varía.
56
+ - ¿Raya (—) en prosa narrativa? Elimínala o usa coma.
57
+ - ¿Declaración vaga ("las implicaciones son graves")? Nombra la implicación concreta.
58
+ - ¿Comentario meta ("el resto de este artículo...")? Bórralo.
59
+ - ¿Falso contraste ("no es X, es Y")? Afirma Y directo.
60
+ - ¿Son a cita de LinkedIn? Reescribe sonando a humano.
61
+
62
+ ## Verificación con script
63
+
64
+ Antes de entregar el texto, ejecuta el escáner para detectar tics que se hayan colado en la reescritura:
65
+
66
+ ```bash
67
+ python <SKILL_DIR>/scripts/check_ai_patterns.py texto_editado.txt
68
+ # o vía stdin:
69
+ echo "$texto" | python <SKILL_DIR>/scripts/check_ai_patterns.py
70
+ ```
71
+
72
+ Reemplaza `<SKILL_DIR>` por la "Base directory for this skill" que aparece en el system message al cargar el skill (la ruta cambia entre instalación plugin y standalone).
73
+
74
+ El script lee `references/lexicon-es-mx.md` y reporta cada hit con línea, columna, categoría y sugerencia cuando existe. Para cada hit:
75
+
76
+ - Si es un tic real → corrige el texto y vuelve a ejecutar el escáner
77
+ - Si es una cita, marca o ejemplo legítimo → déjalo y anótalo en la entrega
78
+ - El script NO sustituye al checklist visual — solo elimina la fase mecánica de búsqueda léxica
28
79
 
29
80
  ## Modos (si el usuario lo pide)
30
81
 
@@ -49,3 +49,43 @@ Después: Finalmente lanzaremos la actualización.
49
49
  ## 12. Cierres vacíos
50
50
  Antes: En conclusión, este avance es clave para el futuro.
51
51
  Después: Este avance reduce el tiempo de carga.
52
+
53
+ ## 13. Abridores (throat-clearing)
54
+ Antes: La verdad es que necesitamos mejorar el proceso.
55
+ Después: Necesitamos mejorar el proceso.
56
+
57
+ ## 14. Muletas de énfasis
58
+ Antes: Punto. Esto cambia todo. Que quede claro.
59
+ Después: (elimínalas — el contenido se sostiene solo)
60
+
61
+ ## 15. Agencia falsa
62
+ Antes: La plataforma permite a los equipos colaborar de forma eficiente.
63
+ Después: Los equipos colaboran más rápido con esta plataforma.
64
+ Antes: Los datos nos dicen que el usuario prefiere X.
65
+ Después: Según los datos, el usuario prefiere X.
66
+ Antes: La decisión emerge tras varias iteraciones.
67
+ Después: El equipo decide tras iterar varias veces.
68
+
69
+ ## 16. Narrador desde la distancia
70
+ Antes: La gente tiende a subestimar el tiempo de implementación.
71
+ Después: Casi siempre subestimas el tiempo de implementación (o "los equipos subestiman...").
72
+
73
+ ## 17. Comentario meta (auto-referencial)
74
+ Antes: El resto de este artículo explica las diferencias.
75
+ Después: (elimínalo — deja que el artículo fluya solo)
76
+
77
+ ## 18. Vagos declarativos
78
+ Antes: Las implicaciones de este cambio son profundas.
79
+ Después: Este cambio reduce los costos en un 15%.
80
+ Antes: Las razones son estructurales.
81
+ Después: La razón principal es que el equipo no tiene acceso a los datos.
82
+
83
+ ## 19. Adverbiomanía (-mente)
84
+ Antes: Realmente necesitamos reconsiderar el enfoque.
85
+ Después: Necesitamos reconsiderar el enfoque.
86
+ Antes: Es simplemente cuestión de prioridades.
87
+ Después: Es cuestión de prioridades.
88
+
89
+ ## 20. Falsa intimidad / sinceridad manufacturada
90
+ Antes: Te prometo que esto funciona.
91
+ Después: Esto funciona.
@@ -3,7 +3,16 @@
3
3
  - El significado se mantuvo intacto.
4
4
  - No se inventaron datos ni fuentes.
5
5
  - Se redujeron muletillas y conectores repetidos.
6
+ - No hay abridores ("la verdad es que", "déjame ser claro").
7
+ - No hay muletas de énfasis ("punto", "que quede claro").
8
+ - No hay contrastes binarios ("no porque X, sino porque Y").
9
+ - No hay listado negativo ("no es X, no es Y, es Z").
10
+ - No hay fragmentación dramática ("[sustantivo]. Eso es todo.").
11
+ - No hay agencia falsa ("los datos nos dicen").
12
+ - No hay adverbios -mente de relleno.
13
+ - No hay voz pasiva sin sujeto visible.
6
14
  - El ritmo es natural y variado.
7
15
  - Se mantuvo el registro (tú/usted) y el tono.
8
16
  - La puntuación y los párrafos son claros.
9
17
  - El vocabulario es consistente con es-MX.
18
+ - Si suena a cita de LinkedIn o frase de caja motivacional, reescribir.
@@ -15,3 +15,19 @@ Después: Tu solicitud ya se procesó. En breve recibirás una actualización.
15
15
  ## Marketing
16
16
  Antes: Una experiencia única e inolvidable que transforma la manera en que trabajas.
17
17
  Después: Una experiencia pensada para que trabajes más rápido y con menos fricción.
18
+
19
+ ## Abridor + falso contraste
20
+ Antes: La verdad es que no se trata de trabajar más horas, sino de trabajar mejor.
21
+ Después: Trabaja mejor, no más horas.
22
+
23
+ ## Énfasis vacío + fragmentación
24
+ Antes: Punto. Rapidez. Precisión. Confianza. Eso es lo que importa.
25
+ Después: Lo que importa es la rapidez, la precisión y la confianza.
26
+
27
+ ## Agencia falsa
28
+ Antes: La plataforma permite a los equipos comunicarse de forma fluida, eliminando la fricción y facilitando la colaboración.
29
+ Después: Los equipos se comunican sin fricción, colaboran más rápido.
30
+
31
+ ## Abridor vago
32
+ Antes: Las implicaciones de esta actualización son profundas y marcan un antes y un después en la plataforma.
33
+ Después: Esta actualización reduce el tiempo de carga 40% y añade búsqueda por voz.
@@ -27,6 +27,24 @@ según expertos, diversos estudios, algunos analistas, observadores señalan, se
27
27
  - a nivel de -> en / respecto a (si no son niveles reales)
28
28
  - en términos de -> respecto a / sobre
29
29
 
30
+ ## Abridores (throat-clearing) — elimínalos, di el punto directo
31
+ la verdad es que, déjame ser claro, voy a ser honesto, he aquí, la cosa es que, el problema es que, lo interesante es que, lo curioso es que, lo que quiero decir es, resulta que, el asunto es que, la realidad es que, el punto es que, lo importante es que, déjame explicarte, para ser honesto, honestamente hablando.
32
+
33
+ ## Muletas de énfasis — no añaden significado
34
+ punto, punto final, que quede claro, esto importa porque, sin lugar a dudas, no te quepa duda, y eso es todo, esto cambia todo, hagamos una pausa para reflexionar, haz que eso cale.
35
+
36
+ ## Adverbios -mente inflados — se cuelan como relleno
37
+ realmente, simplemente, literalmente, genuinamente, honestamente, profundamente, verdaderamente, fundamentalmente, inevitablemente, interesantemente, crucialmente, básicamente, esencialmente, prácticamente, claramente, obviamente, ciertamente, definitivamente, absolutamente, precisamente, notablemente, particularmente, especialmente, típicamente, actualmente (meaning "currently" — preferir "ahora", "hoy").
38
+
39
+ ## Comentario meta (auto-referenciales)
40
+ el resto de este artículo, como veremos más adelante, en esta sección hablaremos de, quiero explorar, en las siguientes líneas, a continuación analizaremos, vale la pena mencionar que, es importante señalar que, cabe mencionar que.
41
+
42
+ ## Agencia falsa — verbos humanos a objetos
43
+ los datos nos dicen, la plataforma permite, la herramienta facilita, el sistema detecta, la solución ofrece, el mercado recompensa, la cultura exige, la tecnología transforma, la decisión emerge, los resultados reflejan, la experiencia brinda.
44
+
45
+ ## Vagos declarativos — anuncian importancia sin nombrar qué
46
+ las implicaciones son significativas, las razones son estructurales, el problema es profundo, las consecuencias son reales, lo que está en juego es alto, el impacto es considerable, el cambio es sustancial, las posibilidades son infinitas.
47
+
30
48
  ## Preferencias es-MX (si el texto es neutro)
31
49
  ordenador -> computadora
32
50
  móvil -> celular