[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79CTPTTJN7923D4YN6QEQ43":3,"skill-same:01M79CTPTTJN7923D4YN6QEQ43":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M79CTPTTJN7923D4YN6QEQ43","jupyter-reproducible-research",null,"Establish production-grade reproducible research workflows in Jupyter notebooks, kernel environment lockfiles, notebook linting, nbconvert automated execution, parameterization with Papermill, and modularized code extraction. Trigger when creating Jupyter notebooks, setting up data science project structures, or building automated notebook pipelines.","hamzabellouch\u002Fagent-skills","hamzabellouch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F237856042?v=4","01M79BRYW7XAMK3YDWQEMTWGWS","Hamza Bellouch","01M79BRYWXQV3JK2TGVTX8GN2A",8,"MIT","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FMath\u002FStatistics_and_Exploratory_Data_Analysis\u002Fjupyter-reproducible-research\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: jupyter-reproducible-research\nmetadata:\n  category: Data Science and Exploratory Analysis\ndescription: Establish production-grade reproducible research workflows in Jupyter notebooks, kernel environment lockfiles, notebook linting, nbconvert automated execution, parameterization with Papermill, and modularized code extraction. Trigger when creating Jupyter notebooks, setting up data science project structures, or building automated notebook pipelines.\ncompatibility: Python 3.9+, JupyterLab 4.0+, Papermill, Jupytext, nbconvert, uv \u002F conda\n---\n\n# Jupyter Reproducible Research Skill Guide\n\nThis skill provides standards, directory layouts, environment lockfile workflows, parameterization patterns, and testing harnesses for building fully reproducible data science research pipelines using Jupyter.\n\n---\n\n## 1. Directory Structure Standard\n\nFollow the standardized **Cookiecutter Data Science** project layout:\n\n```text\nresearch-project\u002F\n├── README.md              # Project overview and reproduction instructions\n├── pyproject.toml         # Python project dependencies & tool configurations\n├── uv.lock                # Deterministic package environment lockfile\n├── .jupytext.toml         # Jupytext pairing configuration\n├── data\u002F\n│   ├── raw\u002F               # Read-only original data inputs\n│   ├── processed\u002F         # Cleaned, transformed intermediate datasets\n│   └── final\u002F             # Output datasets ready for modeling\n├── notebooks\u002F\n│   ├── 01_data_ingestion.ipynb\n│   ├── 02_exploratory_analysis.ipynb\n│   └── 03_model_evaluation.ipynb\n├── src\u002F\n│   ├── __init__.py\n│   ├── data\u002F              # Data processing scripts extracted from notebooks\n│   │   └── clean.py\n│   └── features\u002F          # Feature engineering logic\n│       └── build_features.py\n├── reports\u002F\n│   └── figures\u002F           # Generated charts, graphs, and artifacts\n└── tests\u002F\n    └── test_notebooks.py  # Automated notebook execution tests\n```\n\n---\n\n## 2. Jupytext Configuration (`.jupytext.toml`)\n\nNever store raw non-deterministic JSON `.ipynb` files in Git without pairing them with lightweight markdown (`.md`) or Python (`.py`) scripts:\n\n```toml\n# Pair all notebooks in notebooks\u002F with percent-format Python scripts\ndefault_jupytext_formats = \"ipynb,py:percent\"\n\n# Strip metadata on save to reduce git diff noise\nipynb_metadata_filter = \"-all\"\ncell_metadata_filter = \"-all\"\n```\n\n---\n\n## 3. Parameterizing Notebooks with Papermill\n\nMark a specific notebook cell with the `parameters` tag to allow automated execution with variable overrides.\n\n### A. Parameterized Notebook Cell (`notebooks\u002F02_exploratory_analysis.ipynb`)\n\n```python\n# Parameters cell (tagged with \"parameters\" in Jupyter metadata)\nREGION_NAME = \"NORTH_AMERICA\"\nSTART_DATE = \"2025-01-01\"\nOUTPUT_DIR = \"reports\u002Ffigures\u002F\"\n```\n\n### B. Execution Script using Papermill API (`src\u002Frun_pipeline.py`)\n\n```python\nimport papermill as pm\nfrom pathlib import Path\n\ndef run_parameterized_analysis(region: str, start_date: str):\n    output_dir = Path(\"reports\u002Fexec_logs\")\n    output_dir.mkdir(parents=True, exist_ok=True)\n\n    pm.execute_notebook(\n        input_path=\"notebooks\u002F02_exploratory_analysis.ipynb\",\n        output_path=f\"reports\u002Fexec_logs\u002Foutput_{region}.ipynb\",\n        parameters={\n            \"REGION_NAME\": region,\n            \"START_DATE\": start_date,\n            \"OUTPUT_DIR\": f\"reports\u002Ffigures\u002F{region}\u002F\",\n        },\n        kernel_name=\"python3\"\n    )\n\nif __name__ == \"__main__\":\n    run_parameterized_analysis(region=\"EMEA\", start_date=\"2025-06-01\")\n```\n\n---\n\n## 4. Environment Lockfile Reproducibility Commands\n\n```bash\n# 1. Initialize deterministic project environment using uv\nuv venv .venv\nsource .venv\u002Fbin\u002Factivate\n\n# 2. Install dependencies and lock exact build hashes\nuv add pandas polars jupyterlab papermill jupytext pytest nbconvert\nuv lock\n\n# 3. Register Jupyter kernel for current environment\npython -m ipykernel install --user --name=research-env --display-name \"Python (Research Env)\"\n\n# 4. Convert notebook to HTML report for sharing\njupyter nbconvert --to html notebooks\u002F02_exploratory_analysis.ipynb --output-dir=reports\u002F\n```\n\n---\n\n## 5. Automated Notebook Quality Gate & Testing\n\nValidate notebook execution from top-to-bottom without cached cell outputs in CI pipelines:\n\n```python\n# tests\u002Ftest_notebooks.py\nimport subprocess\nimport pytest\n\nNOTEBOOKS = [\n    \"notebooks\u002F01_data_ingestion.ipynb\",\n    \"notebooks\u002F02_exploratory_analysis.ipynb\",\n]\n\n@pytest.mark.parametrize(\"notebook_path\", NOTEBOOKS)\ndef test_notebook_executes_cleanly(notebook_path: str):\n    \"\"\"Execute notebook from top to bottom ensuring zero runtime exceptions.\"\"\"\n    cmd = [\n        \"jupyter\", \"nbconvert\",\n        \"--to\", \"notebook\",\n        \"--execute\",\n        \"--ExecutePreprocessor.timeout=600\",\n        \"--output\", \"\u002Ftmp\u002Fout.ipynb\",\n        notebook_path\n    ]\n    res = subprocess.run(cmd, capture_output=True, text=True)\n    assert res.returncode == 0, f\"Notebook {notebook_path} failed execution:\\n{res.stderr}\"\n```\n\n---\n\n## 6. Anti-Patterns & Best Practices\n\n| Anti-Pattern | Reproducibility Failure | Production Best Practice |\n| :--- | :--- | :--- |\n| **Out-of-order cell execution** | Notebook succeeds during live edit but crashes when rerun top-to-bottom. | Regularly execute `Kernel -> Restart & Run All` before committing. |\n| **Hardcoding absolute local paths (`\u002FUsers\u002Fdev\u002Fdata.csv`)** | Fails immediately when run by collaborators or on CI servers. | Use relative paths anchored to project root or `pathlib.Path(__file__)`. |\n| **Leaving heavy logic embedded in notebook cells** | Inhibits code reuse, unit testing, and static analysis. | Refactor reusable functions into `src\u002F` modules and import them into notebooks. |\n| **Committing raw `.ipynb` output blobs to Git** | Causes massive repository bloat and merge conflicts. | Pair notebooks with Jupytext (`.ipynb` + `.py:percent`) and filter metadata. |\n","# Jupyter Reproducible Research Skill Guide\n\nThis skill provides standards, directory layouts, environment lockfile workflows, parameterization patterns, and testing harnesses for building fully reproducible data science research pipelines using Jupyter.\n\n---\n\n## 1. Directory Structure Standard\n\nFollow the standardized **Cookiecutter Data Science** project layout:\n\n```text\nresearch-project\u002F\n├── README.md              # Project overview and reproduction instructions\n├── pyproject.toml         # Python project dependencies & tool configurations\n├── uv.lock                # Deterministic package environment lockfile\n├── .jupytext.toml         # Jupytext pairing configuration\n├── data\u002F\n│   ├── raw\u002F               # Read-only original data inputs\n│   ├── processed\u002F         # Cleaned, transformed intermediate datasets\n│   └── final\u002F             # Output datasets ready for modeling\n├── notebooks\u002F\n│   ├── 01_data_ingestion.ipynb\n│   ├── 02_exploratory_analysis.ipynb\n│   └── 03_model_evaluation.ipynb\n├── src\u002F\n│   ├── __init__.py\n│   ├── data\u002F              # Data processing scripts extracted from notebooks\n│   │   └── clean.py\n│   └── features\u002F          # Feature engineering logic\n│       └── build_features.py\n├── reports\u002F\n│   └── figures\u002F           # Generated charts, graphs, and artifacts\n└── tests\u002F\n    └── test_notebooks.py  # Automated notebook execution tests\n```\n\n---\n\n## 2. Jupytext Configuration (`.jupytext.toml`)\n\nNever store raw non-deterministic JSON `.ipynb` files in Git without pairing them with lightweight markdown (`.md`) or Python (`.py`) scripts:\n\n```toml\n# Pair all notebooks in notebooks\u002F with percent-format Python scripts\ndefault_jupytext_formats = \"ipynb,py:percent\"\n\n# Strip metadata on save to reduce git diff noise\nipynb_metadata_filter = \"-all\"\ncell_metadata_filter = \"-all\"\n```\n\n---\n\n## 3. Parameterizing Notebooks with Papermill\n\nMark a specific notebook cell with the `parameters` tag to allow automated execution with variable overrides.\n\n### A. Parameterized Notebook Cell (`notebooks\u002F02_exploratory_analysis.ipynb`)\n\n```python\n# Parameters cell (tagged with \"parameters\" in Jupyter metadata)\nREGION_NAME = \"NORTH_AMERICA\"\nSTART_DATE = \"2025-01-01\"\nOUTPUT_DIR = \"reports\u002Ffigures\u002F\"\n```\n\n### B. Execution Script using Papermill API (`src\u002Frun_pipeline.py`)\n\n```python\nimport papermill as pm\nfrom pathlib import Path\n\ndef run_parameterized_analysis(region: str, start_date: str):\n    output_dir = Path(\"reports\u002Fexec_logs\")\n    output_dir.mkdir(parents=True, exist_ok=True)\n\n    pm.execute_notebook(\n        input_path=\"notebooks\u002F02_exploratory_analysis.ipynb\",\n        output_path=f\"reports\u002Fexec_logs\u002Foutput_{region}.ipynb\",\n        parameters={\n            \"REGION_NAME\": region,\n            \"START_DATE\": start_date,\n            \"OUTPUT_DIR\": f\"reports\u002Ffigures\u002F{region}\u002F\",\n        },\n        kernel_name=\"python3\"\n    )\n\nif __name__ == \"__main__\":\n    run_parameterized_analysis(region=\"EMEA\", start_date=\"2025-06-01\")\n```\n\n---\n\n## 4. Environment Lockfile Reproducibility Commands\n\n```bash\n# 1. Initialize deterministic project environment using uv\nuv venv .venv\nsource .venv\u002Fbin\u002Factivate\n\n# 2. Install dependencies and lock exact build hashes\nuv add pandas polars jupyterlab papermill jupytext pytest nbconvert\nuv lock\n\n# 3. Register Jupyter kernel for current environment\npython -m ipykernel install --user --name=research-env --display-name \"Python (Research Env)\"\n\n# 4. Convert notebook to HTML report for sharing\njupyter nbconvert --to html notebooks\u002F02_exploratory_analysis.ipynb --output-dir=reports\u002F\n```\n\n---\n\n## 5. Automated Notebook Quality Gate & Testing\n\nValidate notebook execution from top-to-bottom without cached cell outputs in CI pipelines:\n\n```python\n# tests\u002Ftest_notebooks.py\nimport subprocess\nimport pytest\n\nNOTEBOOKS = [\n    \"notebooks\u002F01_data_ingestion.ipynb\",\n    \"notebooks\u002F02_exploratory_analysis.ipynb\",\n]\n\n@pytest.mark.parametrize(\"notebook_path\", NOTEBOOKS)\ndef test_notebook_executes_cleanly(notebook_path: str):\n    \"\"\"Execute notebook from top to bottom ensuring zero runtime exceptions.\"\"\"\n    cmd = [\n        \"jupyter\", \"nbconvert\",\n        \"--to\", \"notebook\",\n        \"--execute\",\n        \"--ExecutePreprocessor.timeout=600\",\n        \"--output\", \"\u002Ftmp\u002Fout.ipynb\",\n        notebook_path\n    ]\n    res = subprocess.run(cmd, capture_output=True, text=True)\n    assert res.returncode == 0, f\"Notebook {notebook_path} failed execution:\\n{res.stderr}\"\n```\n\n---\n\n## 6. Anti-Patterns & Best Practices\n\n| Anti-Pattern | Reproducibility Failure | Production Best Practice |\n| :--- | :--- | :--- |\n| **Out-of-order cell execution** | Notebook succeeds during live edit but crashes when rerun top-to-bottom. | Regularly execute `Kernel -> Restart & Run All` before committing. |\n| **Hardcoding absolute local paths (`\u002FUsers\u002Fdev\u002Fdata.csv`)** | Fails immediately when run by collaborators or on CI servers. | Use relative paths anchored to project root or `pathlib.Path(__file__)`. |\n| **Leaving heavy logic embedded in notebook cells** | Inhibits code reuse, unit testing, and static analysis. | Refactor reusable functions into `src\u002F` modules and import them into notebooks. |\n| **Committing raw `.ipynb` output blobs to Git** | Causes massive repository bloat and merge conflicts. | Pair notebooks with Jupytext (`.ipynb` + `.py:percent`) and filter metadata. |\n",{"name":5,"metadata":24,"description":7,"compatibility":26},{"category":25},"Data Science and Exploratory Analysis","Python 3.9+, JupyterLab 4.0+, Papermill, Jupytext, nbconvert, uv \u002F conda","main","e905af21e5f1e1c3ca605e9656c3a7930360a84e","Math\u002FStatistics_and_Exploratory_Data_Analysis\u002Fjupyter-reproducible-research",1,"https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills","https:\u002F\u002Fhamzabellouch.github.io\u002F","https:\u002F\u002Fgithub.com\u002Fhamzabellouch","hamzabellouch.github.io","CEO & Founder of @tknoglobal | Researcher in Technology & Applied Sciences.","2026-10-17 03:20:19",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add hamzabellouch\u002Fagent-skills --skill jupyter-reproducible-research",{"tool":43,"command":44},"bunx","bunx skills add hamzabellouch\u002Fagent-skills --skill jupyter-reproducible-research",{"tool":46,"command":47},"pnpm","pnpm dlx skills add hamzabellouch\u002Fagent-skills --skill jupyter-reproducible-research","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FMath\u002FStatistics_and_Exploratory_Data_Analysis\u002Fjupyter-reproducible-research\u002FSKILL.md",true,[],[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M79FHH2H815A9TAP6WNKH4Q8","security-audit","Comprehensive security guidance, source code audit, vulnerability assessment, and penetration test review for codebases, APIs, microservices, CLI tools, libraries, and LLM-backed applications. Triggers on requests to audit a codebase, conduct security reviews, find vulnerabilities or flaws, pen-test source code, or when the user asks in Arabic (فحص أمني، تدقيق الكود أمنياً، مراجعة الثغرات، فحص أمان المشروع). Supports Guidance mode (focused review) and Full Audit mode (deterministic 6-phase harness).","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FSecurity_Audit_and_Code_Review\u002Fsecurity-audit\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M79FHBGXVBY6VQ1X7ETAZMF1","malware-analysis-reversing","Production malware analysis workflows, reverse engineering methodologies, isolated sandbox triage, static\u002Fdynamic binary analysis, memory forensics, and YARA detection rule authoring.","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FOffensive_Security_and_Pentesting\u002Fmalware-analysis-reversing\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M79FH6EACDR801TZCE4R8SAC","application-security-pentesting","Production Application Security (AppSec) standards, OWASP Top 10 vulnerability remediation, SAST\u002FDAST pipeline integration, secure code review, threat modeling, and defensive security posture.","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FOffensive_Security_and_Pentesting\u002Fapplication-security-pentesting\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M79FH0VKVT44FK923K520ZQA","oauth2-oidc-security-flows","Implement enterprise OAuth 2.1 and OpenID Connect (OIDC) authorization code flow with Proof Key for Code Exchange (PKCE), state and nonce verification, refresh token rotation, token revocation, and centralized IdP federation (Keycloak, Auth0, Okta). Trigger when building secure authentication, single sign-on (SSO), or third-party delegated authorization.","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FIdentity_and_Access_Management_IAM\u002Foauth2-oidc-security-flows\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M79FGVVB3R4T88XXD8FRSV5B","jwt-session-management-hardening","Harden JWT-based authentication and session lifecycles using asymmetric signing (RS256\u002FEdDSA), JWKS rotation, strict claims validation, Redis-backed sliding window sessions, revocation lists, and secure HttpOnly cookie storage. Trigger when implementing token validation, session revocation, or hardening API authentication.","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FIdentity_and_Access_Management_IAM\u002Fjwt-session-management-hardening\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79FGNCPZ85CVEY0B3NE4H3B","soc2-compliance-automation","Best practices for implementing SOC 2 Type II compliance controls, continuous evidence collection, infrastructure policy-as-code, and automated security monitoring. Use when automating Trust Services Criteria (Security, Availability, Confidentiality, Processing Integrity, Privacy), audit logging, IAM least privilege, or CI\u002FCD security gates.","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FGovernance_Compliance_and_Legal_Tech\u002Fsoc2-compliance-automation\u002FSKILL.md",[],[]]