safe-refactor
Refactor Code Without Changing Behavior
Structural code changes can introduce subtle regressions and expand scope. This skill defines behavior boundaries and brackets focused refactors with verification.
التثبيت باستخدام Agent لدي
انسخ هذا الطلب إلى Agent لديك. يتضمن صفحة Skill المعتمدة وملف manifest.
Review the Skillstore skill "safe-refactor" from https://skillstore.io/skills/juliusbrussee-safe-refactor.md and its manifest at https://skillstore.io/api/skills/juliusbrussee-safe-refactor/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.يجب أن يواصل Agent عرض خطته وطلب أي تأكيد تفرضه سياسة الأمان.
موارد مهيّأة لـ Agents
استخدم هذه الروابط عندما يحتاج AI Agent أو crawler أو script إلى سياق نظيف بدلًا من قراءة الصفحة كاملة.
اختبرها
جارٍ استخدام "safe-refactor". Move validation from the controller into the domain service without changing API behavior.
النتيجة المتوقعة:
- Boundary: preserve response status, error messages, validation order, and public service signatures.
- Sequence: characterize current behavior, move validation, keep the controller adapter, then remove duplication.
- Verification: run the same controller and service tests before and after each step.
جارٍ استخدام "safe-refactor". Consolidate duplicate cache invalidation logic used by two modules.
النتيجة المتوقعة:
- Boundary: preserve invalidation timing, key format, failure handling, and call order.
- Sequence: introduce one owner, migrate one caller, verify, then migrate the second caller.
- Stop condition: both callers use the shared owner and existing behavior remains proven.
التدقيق الأمني
آمنThe only static finding is a false positive caused by a normal refactoring constraint in SKILL.md. No malicious intent, unsafe system access, or prompt injection was found.
شارك واستشهد بهذا التقرير
شارك تقرير التقييم المرتبط بالإصدار والشارة المحايدة وبطاقة التضمين والاستشهادات. تعرض Skillstore الأدلة من دون أن تقرر ما إذا كانت هذه المهارة آمنة.
نسخ رابط التقرير
https://skillstore.io/skills/juliusbrussee-safe-refactor/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportشارة Markdown
[](https://skillstore.io/skills/juliusbrussee-safe-refactor?utm_source=security_passport_badge)شارة HTML
<a href="https://skillstore.io/skills/juliusbrussee-safe-refactor?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/juliusbrussee-safe-refactor/security.svg" alt="Skillstore security assessment" loading="lazy"></a>بطاقة قابلة للتضمين
<iframe src="https://skillstore.io/embed/skills/juliusbrussee-safe-refactor.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>الاستشهادات الأكاديمية (APA · BibTeX · CFF)
اقتباس APA
juliusbrussee. (2026). safe-refactor security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/juliusbrussee-safe-refactor/audits/1اقتباس BibTeX
@techreport{juliusbrussee-juliusbrussee-safe-refactor-2026,
author = {juliusbrussee},
title = {safe-refactor security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/juliusbrussee-safe-refactor/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "safe-refactor security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "juliusbrussee"
date-released: "2026-08-12"
url: "https://skillstore.io/skills/juliusbrussee-safe-refactor/audits/1"
identifiers:
- type: other
value: "skillstore:juliusbrussee-safe-refactor:audit:1"
description: "Skillstore immutable audit report identifier"
مقارنة المتغيرات
2 متغيرات قابلة للتثبيتتبقى مهارة كل مؤلف عنصراً مستقلاً قابلاً للتثبيت. يُرتب المتغير الموصى به وفق أدلة Skillstore.
سبب تصدر هذا المتغير
agentkitco-safe-refactor
2026-10-22
juliusbrussee-safe-refactor
2026-09-09
تقييم Skillstore
سبب هذا التقييم موثوقية الأدلة: متوسطما الذي يمكنك بناؤه
Extract a Shared Module
Plan a focused extraction while preserving callers, error behavior, and test results.
Move Component Ownership
Transfer one responsibility between packages while keeping public interfaces stable.
Review Maintenance Changes
Check whether a cleanup remains structural and includes equivalent verification.
جرّب هذه الموجّهات
Use safe-refactor to plan this cleanup. Identify preserved behavior, the smallest structural change, and verification before and after the edit.
Extract the repeated logic into one owner. Preserve interfaces, failures, ordering, and compatibility. Keep each intermediate state buildable and testable.
Move this responsibility from the current module to the target module. Separate feature changes and verify every affected public contract.
Design staged changes for this cross-package refactor. Define invariants, compatibility constraints, rollback points, and equivalent proof for every stage.
أفضل الممارسات
- Record observable behavior and verification commands before editing.
- Move one responsibility at a time and keep every state testable.
- Run the same proof after changes and stop when the requested structure is achieved.
تجنب
- Mixing new features with structural changes.
- Changing public contracts without explicit scope.
- Adding dependencies or configuration without a correctness need.
الأسئلة المتكررة
What counts as a safe refactor?
Does this skill write code?
Can I change an API during the refactor?
What verification should I use?
Can this skill add dependencies?
When should the refactor stop?
تفاصيل المطور
المؤلف
juliusbrusseeالترخيص
MIT
مراجعة Skillstore
r1
تنبيه الإصدار
لم يعلن المؤلف عن إصدار.
مرجع
9e5d158a7fd6576779833ff3529fe92b1a198150
حداثة الصيانة
١٣/٨/٢٠٢٦
الاستخدام
0 تنزيلات · 0 مشاهدات
بنية الملفات