mit einem Klick
data-integrity
// Prevent data loss and unsafe operations in data set and USS workflows, including cross-profile, cross-LPAR, and overwrites. Use when performing move, copy, upload, rename, or delete operations on z/OS resources.
// Prevent data loss and unsafe operations in data set and USS workflows, including cross-profile, cross-LPAR, and overwrites. Use when performing move, copy, upload, rename, or delete operations on z/OS resources.
Improve TypeScript code quality in CLI, SDK, and VS Code extension packages. Apply DRY, YAGNI, SRP principles to reduce duplication and complexity. Use when refactoring, deduplicating, simplifying, or improving code in packages/cli/ or packages/sdk/.
Review pull requests for the zowex codebase. Analyze C++ backend and middleware (ibm-clang), TypeScript clients (CLI, SDK, VS Code extension), and z/OS-specific concerns. Use when asked to review a PR, branch, or code changes.
Validate VS Code extensions and CLI plug-ins against Zowe V3 Conformance Criteria. Audit package.json, settings, commands, menus, profile usage, and API registration for conformance. Use when checking Zowe conformance, preparing for conformance submission, auditing an extension/plug-in against Zowe criteria, or when the user mentions conformance.
Use when writing, debugging, or maintaining tests for the native C/C++ and Metal C components in native/c/test/. Covers the custom ztest framework, test patterns, build system integration, and debugging test failures.
Guides users through creating new zowex commands across the Zowe Remote SSH stack (native C++, server, SDK). Use when the user wants to add a new command, implement a zowex command, or add functionality to the native backend.
Improve C++ code quality by identifying duplication, complexity, and design issues. Apply DRY, YAGNI, SRP principles. Use when refactoring, deduplicating, simplifying, or improving backend code in native/c/.
| name | data-integrity |
| description | Prevent data loss and unsafe operations in data set and USS workflows, including cross-profile, cross-LPAR, and overwrites. Use when performing move, copy, upload, rename, or delete operations on z/OS resources. |
Prevent data loss during z/OS data set and USS file operations.
Before any destructive operation:
Dataset operations:
copyDatasetOrMember with overwrite: truerenameDataset or renameMemberUSS operations:
moveFile (defaults force: true - source deleted on success)copyUss with force: truedeleteFile (irreversible)Two-phase operations:
1. Copy source → target (preserve source)
2. Verify target integrity
3. Only then remove source (if move)
Profile validation:
// Check if profiles might reference same system
if (sourceProfile.host === targetProfile.host &&
sourceProfile.user === targetProfile.user) {
// Same LPAR - extra caution needed
}
Stop and confirm with user if:
For moves/renames, verify target created before considering source removal:
const targetExists = await api.listFiles(targetPath);
if (!targetExists) throw new Error('Target verification failed');