Commit Graph
627 Commits
Author SHA1 Message Date
Timothy Kassis b80fcda721 Enhance skill environment management and documentation
- Updated AGENTS.md and CONTRIBUTING.md to clarify the use of isolated environments for each skill, addressing dependency conflicts and ensuring proper testing setups.
- Modified tests/run_all.py to implement the `--isolated` flag, allowing for the creation of throwaway environments per skill based on `tests/skill-requirements.toml`.
- Improved handling of unavailable packages and added detailed instructions for contributors on managing skill dependencies.
2026-07-26 13:58:18 -07:00
Timothy Kassis cd879d8052 Enhance security scanning documentation and update dependencies
- Updated AGENTS.md to clarify the use of the Cisco AI Defense Skill Scanner for security scanning of new or changed skills, including details on rule IDs and CLI usage.
- Adjusted pyproject.toml to pin the cisco-ai-skill-scanner dependency to version 2.0.12, ensuring the latest features and fixes are utilized.
2026-07-26 10:15:02 -07:00
Alex LiberzonandTimothy Kassis dde19062f3 Add OpenPIV skill under skills/openpiv (#216)
* add OpenPIV skill under skills/openpiv

* Fix spec violations and unverified APIs in the OpenPIV skill

Verified everything against openpiv 0.25.4 in a clean venv; all 14 SKILL.md
snippets and both reference snippets now execute, and runner.py/run_example.py
run end to end on OpenPIV's bundled test1 pair.

Spec adherence:
- metadata was a JSON flow mapping, which strictyaml rejects outright -- the
  skill failed `skills-ref validate` and would not have registered at all.
  Converted to a block mapping.
- compatibility claimed Python 3.8+; openpiv 0.25.4 requires >=3.10.
- Added allowed-tools and a version-pinned install line.

APIs that do not exist and now do:
- `openpiv.masking` -> `openpiv.preprocess.dynamic_masking`, which returns
  (image, mask). method="shirai" is not a method; it is "edges" or "intensity".
  The masked image is returned already zeroed, so multiplying the frame by the
  mask is wrong -- for "edges" the mask is uint8 0/255 and rescales by 255.
- `pyprocess.iterative_warping_piv` -> `openpiv.windef.simple_multipass`.
- `openpiv.smooth.smooth` -> `openpiv.smoothn.smoothn`.
- `global_val(u, v, u_threshold=, v_threshold=)` -> positional (min, max) tuples
  as u_thresholds/v_thresholds.
- `local_median_val(u, v)` -> u_threshold and v_threshold are required.
- `replace_outliers(method="disc")` -> "disk"; an unknown method is not
  rejected, it silently yields an all-zero kernel.
- Combining flags with np.maximum -> boolean OR; validators return bool arrays
  where True marks a spurious vector.

references/advanced_algorithms.md described algorithms that do not exist in
OpenPIV ("epi-div_div", "pritzmd_piv", EDD, PrTrZMD) alongside invented
throughput and memory figures. Replaced with the real correlation, subpixel,
s2n, multi-pass, 3D, and phase-separation APIs plus the full PIVSettings table.

Two units traps found while testing and now documented:
- windef ignores settings.dt and settings.scaling_factor -- first_pass calls
  extended_search_area_piv without dt, so the chain returns px/frame.
- global_val/local_median_val thresholds are in the units of u and v. After
  extended_search_area_piv(dt=0.02) that is px/s, so the conventional (-30, 30)
  px/frame limit rejects the entire field.

Scripts:
- runner.py: dropped --algorithm and --threads, which were accepted and never
  used (--algorithm even offered a nonexistent "synthetic_aperture"), and
  --mask static, which nothing implemented. --mask dynamic silently did nothing
  because it caught the ImportError from the nonexistent module. Selects
  correlation_method="linear" when search_area > window_size, since the default
  "circular" aliases via FFT wrap-around. Validates argument ranges, pins the
  Agg backend before pyplot, and no longer NaNs out the vectors it just
  interpolated -- that is now opt-in via --drop_invalid.
- analyze.py: class was named PypivAnalyzer and documented as "using pivpy"
  while importing neither. Renamed to PIVAnalyzer, added compute_strain and
  compute_statistics to match what SKILL.md advertises, and derived the physical
  grid spacing from the saved coordinates so the gradients are per unit length.
- run_example.py: was a subprocess wrapper around a hardcoded relative path.
  Rewritten as a self-contained smoke test on OpenPIV's bundled image pair.

Security scan: SAFE, 0 findings.

---------

Co-authored-by: Timothy Kassis <timothy.kassis@k-dense.ai>
2026-07-26 10:08:21 -07:00
Timothy Kassis 2f2022de18 Update documentation and improve test structure for autoskill
- Enhanced AGENTS.md to clarify skill scope and directory structure, providing clearer guidelines for skill creation and updates.
- Updated CONTRIBUTING.md to emphasize the separation of tests from skill directories, ensuring better organization and clarity for contributors.
- Revised .gitignore to include .pytest_cache, improving project cleanliness.
- Adjusted pyproject.toml to configure pytest for better test path management.
- Incremented version number in SKILL.md for autoskill to reflect recent updates.
2026-07-26 09:54:14 -07:00
Timothy Kassis 8cb0f52a35 Add initial test suite for autoskill functionality
- Introduced a comprehensive test suite for the autoskill project, including tests for backends, CLI commands, and various skill functionalities.
- Added smoke tests for LM Studio integration to validate real-time interactions.
- Implemented tests for session clustering and event fetching to ensure accurate data handling.
- Established a framework for skill description loading and matching, enhancing the robustness of skill management.
- Included redaction tests to verify sensitive information is properly handled in outputs.
- Created end-to-end tests to simulate the full autoskill pipeline, ensuring all components work together seamlessly.
2026-07-26 09:54:05 -07:00
Timothy Kassis b085e116c5 Update skill metadata formatting and improve .gitignore entries
- Revised the metadata format in multiple SKILL.md files to use block mapping instead of single-line JSON, enhancing YAML compatibility.
- Added a new entry for local agent tooling in .gitignore to exclude the .claude directory, improving project cleanliness.
- Removed outdated entries for AGENTS.md and CLAUDE.md from .gitignore, streamlining ignored files.
2026-07-26 09:29:16 -07:00
Timothy Kassis cb83780242 Update security report and enhance subprocess environment handling
- Generated a new security scan report with detailed findings, including 888 total findings and 33 critical issues.
- Revised the `soffice.py` scripts across multiple skills to implement a secure environment variable forwarding mechanism, minimizing the risk of exposing sensitive information to subprocesses.
- Enhanced documentation in `SKILL.md` and related files to clarify the implications of using `trust_remote_code=True` and the importance of user consent when executing code from external repositories.
- Improved the command submission process in `run_pacsomatic.py` to ensure safer execution of scripts across different executors.
2026-07-26 08:48:30 -07:00
Timothy Kassis 489de4ce4c Update security documentation and scanning process
- Clarified the security scan report generation process in README.md, emphasizing the publication of results.
- Revised `scan_skills.py` documentation to reflect changes in report generation and the removal of the validate_report.py script.
- Updated SECURITY.md to specify the scope of vulnerabilities and improved clarity on the report's purpose and limitations.
- Adjusted the security scan workflow to remove the validation step, streamlining the process while ensuring accurate reporting.
2026-07-26 08:16:14 -07:00
Timothy Kassis b01cff4cda Remove validate_report.py script as it is no longer needed for the security scan process. This change simplifies the codebase and eliminates redundancy in validation checks, streamlining the overall workflow. 2026-07-26 08:16:07 -07:00
Timothy Kassis a1b84fb223 feat(docx): enhance DOCX skill and comment script functionality
- Updated the skill description to include support for Word templates (.dotx) alongside .docx files, broadening the skill's applicability.
- Improved the comment script to accept both unpacked directories and .docx/.dotx files directly, streamlining the user experience.
- Added automatic comment ID assignment and XML escaping for comment text, enhancing robustness and usability.
- Removed the obsolete pack.py and unpack.py scripts, consolidating functionality into existing scripts for better maintainability.
- Enhanced validation and error handling in the validate.py script, ensuring better feedback for users.
2026-07-25 20:37:05 -07:00
Timothy Kassis f5a0bbcf6c feat(citation-management): enhance metadata handling and subprocess environment
- Added guidance on treating metadata as untrusted in SKILL.md, emphasizing safe command construction.
- Updated extract_metadata.py to sanitize the year field, ensuring only digits are retained for filenames and shell arguments.
- Introduced a build_subprocess_env function in multiple scripts to securely forward necessary environment variables to subprocesses, minimizing exposure of unrelated secrets.
- Improved documentation on where credentials are sent in SKILL.md, clarifying the purpose of each environment variable used.
2026-07-25 20:19:57 -07:00
Timothy Kassis 665663cac1 perf(security-scan): scan concurrently and reuse unchanged results
Scans were sequential at ~29s per skill: 72 minutes for 150 skills against a
120-minute workflow timeout. Each scan is blocked on LLM network I/O rather
than local CPU, so the work parallelizes.

- Run skills through a thread pool (SKILL_SCAN_WORKERS, default 8), building
  one scanner per worker thread rather than sharing one, since the analyzers
  carry mutable per-scan state. Rate-limit retry with backoff already exists
  inside cisco-ai-skill-scanner, so concurrency is bounded, not retried here.
- Reuse findings for skills whose package contents are unchanged, keyed on a
  SHA-256 over file paths and bytes. Invalidate on scanner version change,
  model change, --full, or a 30-day backstop from the last full scan.
- Record per-skill content_hash and last_scanned in the JSON report, and
  disclose carried-forward findings in the markdown header, so a reused
  finding always shows when it was actually produced.
- Sort report entries by skill name so worker completion order does not churn
  the committed JSON.
- Lower the workflow timeout to 60 minutes; add a full_scan dispatch input.

Also fixes skills/genomic-intelligence/SKILL.md, whose unquoted description
contained a colon-space that made its YAML frontmatter invalid. The loader had
been rejecting it silently, so every scan covered 149 of 150 skills.
2026-07-25 15:11:47 -07:00
Timothy Kassis d77f819637 Update security scanning process and documentation
- Enhanced the README to clarify the publication of security scan results to a dedicated markdown file.
- Modified `scan_skills.py` to generate both a human-readable report and a machine-readable JSON report, ensuring consistency checks before CI publishing.
- Updated the GitHub Actions workflow to validate the scan report and commit the new reports, replacing the previous SECURITY.md approach with separate report files.

This change improves the clarity and accessibility of security information for users and contributors.
2026-07-25 14:55:40 -07:00
Timothy Kassis bf383691e2 Merge pull request #215 from K-Dense-AI/feat/citation-management-zotero
feat(citation-management): document Zotero integration via pyzotero skill
2026-07-25 14:26:19 -07:00
Timothy KassisandYaroslav Halchenko 38ce7e260c feat(citation-management): document Zotero integration via pyzotero skill
citation-management had no mention of Zotero despite a full pyzotero
skill existing in the repo, so agents had no path from a Zotero library
to a validated bibliography.

Adds an 'Integration with Zotero (pyzotero Skill)' section mirroring the
existing literature-review integration: pyzotero owns the library and the
BibTeX export, citation-management validates and formats, corrections
optionally written back.

Requested in #170.

Co-authored-by: Yaroslav Halchenko <debian@onerussian.com>
2026-07-25 14:25:58 -07:00
Timothy Kassis f3dda7d525 Merge pull request #214 from K-Dense-AI/fix/idc-typo
fix(imaging-data-commons): correct 'questons' typo
2026-07-25 13:52:58 -07:00
Timothy KassisandYaroslav Halchenko 23f85110a7 fix(imaging-data-commons): correct 'questons' typo
Found by the codespell config proposed in #123. The codespell CI check
itself was declined (52 hits on a clean checkout, only this one genuine),
but the typo it surfaced is real.

Co-authored-by: Yaroslav Halchenko <debian@onerussian.com>
2026-07-25 13:52:39 -07:00
Timothy Kassis edefe50783 Update default LLM model in security scan workflow to "claude-sonnet-5" 2026-07-25 13:46:10 -07:00
Timothy Kassis 37f2064f89 Update default LLM model in SkillScanner to "anthropic/claude-sonnet-5" 2026-07-25 13:45:50 -07:00
Timothy Kassis e3ef98a1be Merge pull request #213 from K-Dense-AI/fix/rdkit-api-corrections
fix(rdkit): correct FractionCsp3 call and MolToSmarts parameter name
2026-07-25 13:43:41 -07:00
Timothy Kassisandjiaodu1307 94151f68f6 fix(rdkit): correct FractionCsp3 call and MolToSmarts parameter name
Descriptors.FractionCsp3 does not exist in RDKit (verified against
2026.03.3) and raised AttributeError, causing molecular_properties.py
to fail for every input molecule. Use Lipinski.FractionCSP3, which is
already imported.

Also correct the MolToSmarts keyword in the API reference: the real
parameter is isomericSmiles, not isomericSmarts.

Both changes originate from PRs #97 and #95, which could not be merged
directly because they target the pre-rename scientific-skills/ path.

Co-authored-by: jiaodu1307 <1148451736@qq.com>
2026-07-25 13:39:16 -07:00
Timothy Kassis fdee3698c2 Merge pull request #210 from not-stbenjam/fix/markdown-mermaid-writing-broken-links
fix(markdown-mermaid-writing): fix broken links in references
2026-07-25 13:36:41 -07:00
Timothy KassisandCursor 757b63b1c0 Correct README release details
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-24 11:01:57 -07:00
Timothy KassisandCursor bb87fa13e8 Bump version to 2.55.0
Co-authored-by: Cursor <cursoragent@cursor.com>
v2.55.0
2026-07-24 10:58:47 -07:00
Timothy KassisandCursor 9319f43f9c Synchronize repository documentation
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-24 10:57:01 -07:00
Timothy Kassis 96e7a495c1 Merge remote-tracking branch 'origin/main' 2026-07-24 10:25:58 -07:00
Timothy KassisandCursor d2d8e87cf9 Clean refreshed skill formatting
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-24 10:20:26 -07:00
Timothy KassisandCursor 3441b926ed Redesign scientific writing safeguards
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-24 10:16:23 -07:00
Timothy Kassis caf3a2fd5b Merge pull request #212 from genomicintelligence/add-genomic-intelligence
Add genomic-intelligence skill
2026-07-24 09:59:56 -07:00
Timothy KassisandCursor 866c1dfba9 Redesign PPTX poster generation
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-24 09:48:06 -07:00
Timothy KassisandCursor d518a317af Update MATLAB R2026a workflows
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-24 01:49:38 -07:00
Timothy KassisandCursor f375cf76b1 Redesign hypothesis generation workflow
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-24 01:18:07 -07:00
Timothy KassisandCursor 5d68dbf89c Update ISO 13485 evidence workflows
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-24 00:43:06 -07:00
Timothy KassisandCursor b295e73b0b Redesign scholar evaluation safeguards
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-24 00:11:19 -07:00
Timothy KassisandCursor 818cb877c7 Redesign treatment plan safety
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-23 23:39:58 -07:00
Timothy KassisandCursor 8fc3325930 Redesign peer review confidentiality
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-23 23:15:07 -07:00
Timothy KassisandCursor ebc0ccea0e Update market research evidence workflows
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-23 22:46:30 -07:00
Timothy KassisandCursor cc223d5ef1 Redesign clinical reports safety
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-23 22:21:28 -07:00
Timothy KassisandCursor 820bcb8ee3 Redesign clinical decision support safety
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-23 21:49:14 -07:00
Timothy KassisandCursor f7b918d694 Update QuTiP skill for version 5.3
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-23 21:16:49 -07:00
Timothy KassisandCursor 10781b230d Update GeoPandas spatial workflows
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-23 20:52:07 -07:00
Timothy KassisandCursor 0ece03a0c1 Update pymatgen for current packages
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-23 20:18:48 -07:00
Timothy KassisandCursor 5c3389ef4a Update pydicom privacy workflows
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-23 19:41:24 -07:00
Timothy KassisandCursor ee24204705 Update FluidSim numerical workflows
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-23 19:08:10 -07:00
Timothy KassisandCursor cadf380493 Update exploratory data analysis workflows
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-23 18:40:33 -07:00
Timothy KassisandCursor 025a3a627c Update Gtars skill for current APIs
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-23 18:09:02 -07:00
Timothy KassisandCursor dd952bd124 Update Geniml skill for current APIs
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-23 17:41:28 -07:00
Alexander Boldakov aa04310650 Correct MCP tool signatures against the live server
fetch_ensembl_sequence takes gene (fetch_region handles coordinates),
load_demo_sequence requires name, and find_genes /
find_genes_and_predict_expression take a sequence handle rather than a region.
The annotation task is find_genes; there is no predict_annotation and no
load_local_fasta on the hosted server. Also drop dangling references/errors.md
pointers, add the 422 validation_failed case, and state the 9,198 bp window
consistently.
2026-07-24 00:35:24 +00:00
Timothy KassisandCursor f515922468 Update PufferLib versioned workflows
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-23 17:10:07 -07:00
Timothy KassisandCursor 27ea7f4d63 Update HypoGeniC safety workflows
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-23 16:46:04 -07:00